diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index e55ac02d53..945df6e5c6 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -27,6 +27,7 @@ on: - "source-jira-native/**" - "source-mixpanel-native/**" - "source-impact-native/**" + - "source-github/**" pull_request: branches: [main] @@ -57,6 +58,7 @@ on: - "source-jira-native/**" - "source-mixpanel-native/**" - "source-impact-native/**" + - "source-github/**" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -160,6 +162,10 @@ jobs: type: capture version: v2 usage_rate: "1.0" + - name: source-github + type: capture + version: v2 + usage_rate: "1.0" steps: - uses: actions/checkout@v4 diff --git a/source-github/acmeCo/flow.yaml b/source-github/acmeCo/flow.yaml new file mode 100644 index 0000000000..38cb34fdb4 --- /dev/null +++ b/source-github/acmeCo/flow.yaml @@ -0,0 +1,755 @@ +--- +collections: + acmeCo/assignees: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/branches: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - name + properties: + name: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /name + acmeCo/collaborators: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/comments: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/commit_comment_reactions: + schema: + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/commit_comments: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/commits: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - sha + properties: + sha: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /sha + acmeCo/contributor_activity: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + title: Contributor Activity + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/deployments: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/events: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/issue_comment_reactions: + schema: + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/issue_events: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/issue_labels: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/issue_milestones: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/issue_reactions: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/issue_timeline_events: + schema: + $schema: "http://json-schema.org/draft-07/schema#" + type: object + required: + - issue_number + additionalProperties: true + properties: + issue_number: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /issue_number + acmeCo/issues: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + additionalProperties: true + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/organizations: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/project_cards: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/project_columns: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/projects: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/projects_v2: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/pull_request_comment_reactions: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/pull_request_commits: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - sha + properties: + sha: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /sha + acmeCo/pull_request_stats: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/pull_requests: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/releases: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/repositories: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/review_comments: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/reviews: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/stargazers: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - user_id + - starred_at + properties: + user_id: + type: integer + starred_at: + type: string + format: date-time + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /user_id + acmeCo/tags: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - name + properties: + name: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /name + acmeCo/team_members: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + - team_slug + properties: + id: + type: integer + team_slug: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + - /team_slug + acmeCo/team_memberships: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - url + properties: + url: + type: string + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /url + acmeCo/teams: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/users: + schema: + $schema: "https://json-schema.org/draft-07/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/workflow_jobs: + schema: + $schema: "https://json-schema.org/draft-04/schema#" + type: object + required: + - id + - run_id + properties: + id: + type: integer + run_id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/workflow_runs: + schema: + $schema: "https://json-schema.org/draft-04/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id + acmeCo/workflows: + schema: + $schema: "https://json-schema.org/draft-04/schema#" + type: object + required: + - id + properties: + id: + type: integer + _meta: + type: object + properties: + row_id: + type: integer + required: + - row_id + x-infer-schema: true + key: + - /id diff --git a/source-github/config.yaml b/source-github/config.yaml new file mode 100644 index 0000000000..524435a31a --- /dev/null +++ b/source-github/config.yaml @@ -0,0 +1,18 @@ +credentials: + personal_access_token_sops: ENC[AES256_GCM,data:O7dbgDJWpUAjnTOOebQThqcTITBVrExxBDxyw4mOqeuDhFkNQtHv5rdnCyaBHwsvnU1It0Tl2FiOWxgMaOCoUCLQetdskK4TxuDq+aLWGVQ/MuVgPevT8mKgCpDI,iv:POUbLQxwwxvfYj/jlMfzzlCTcygj7JkEzyp2xRP9wXE=,tag:awthKs+bUhnBii6/OvVDlg==,type:str] +start_date: "2024-01-01T00:00:00Z" +repository: sourcegithub1/testsource +sops: + kms: [] + gcp_kms: + - resource_id: projects/estuary-theatre/locations/us-central1/keyRings/connector-keyring/cryptoKeys/connector-repository + created_at: "2024-04-26T04:45:29Z" + enc: CiQAdmEdwudPOEt7x+8y74GJv9UvCToUF+wi9qfC9qa61NSEH38SSQCSobQj8OBPCaHRXmpINEkq85nIGo9vNxFlDIWnjIZYE3XPqiq8eYPS8OLIZDMnJfjhut+pwJ0FH+PLW1KR26+ej0BLq2hDoDQ= + azure_kv: [] + hc_vault: [] + age: [] + lastmodified: "2024-04-26T04:51:41Z" + mac: ENC[AES256_GCM,data:JnfAIXSy9NaYoi2k3/RrQF0K//PMnp/GjlJSjJQkZDOHkxGP35/6A679qCogP51Dzf2VZ2iYT8nY/pdldsqHIA/UYVaksigYOsnVTIjYZED7alft/S6TDa3MhINUuk4O8s8Yj0tJ7PdgElxkV2nrg0tbp7iDeKY6OKaX/jRZlb0=,iv:HtS/NYW925lp7pcN21Vdy0Loi+AivzdGQufrVex573I=,tag:6cV7hFsmHzMsoEd3H9dgWg==,type:str] + pgp: [] + encrypted_suffix: _sops + version: 3.8.1 diff --git a/source-github/poetry.lock b/source-github/poetry.lock new file mode 100644 index 0000000000..9aef695e63 --- /dev/null +++ b/source-github/poetry.lock @@ -0,0 +1,1927 @@ +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. + +[[package]] +name = "aiodns" +version = "3.2.0" +description = "Simple DNS resolver for asyncio" +optional = false +python-versions = "*" +files = [ + {file = "aiodns-3.2.0-py3-none-any.whl", hash = "sha256:e443c0c27b07da3174a109fd9e736d69058d808f144d3c9d56dbd1776964c5f5"}, + {file = "aiodns-3.2.0.tar.gz", hash = "sha256:62869b23409349c21b072883ec8998316b234c9a9e36675756e8e317e8768f72"}, +] + +[package.dependencies] +pycares = ">=4.0.0" + +[[package]] +name = "aiohttp" +version = "3.9.5" +description = "Async http client/server framework (asyncio)" +optional = false +python-versions = ">=3.8" +files = [ + {file = "aiohttp-3.9.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:fcde4c397f673fdec23e6b05ebf8d4751314fa7c24f93334bf1f1364c1c69ac7"}, + {file = "aiohttp-3.9.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5d6b3f1fabe465e819aed2c421a6743d8debbde79b6a8600739300630a01bf2c"}, + {file = "aiohttp-3.9.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6ae79c1bc12c34082d92bf9422764f799aee4746fd7a392db46b7fd357d4a17a"}, + {file = "aiohttp-3.9.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4d3ebb9e1316ec74277d19c5f482f98cc65a73ccd5430540d6d11682cd857430"}, + {file = "aiohttp-3.9.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84dabd95154f43a2ea80deffec9cb44d2e301e38a0c9d331cc4aa0166fe28ae3"}, + {file = "aiohttp-3.9.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c8a02fbeca6f63cb1f0475c799679057fc9268b77075ab7cf3f1c600e81dd46b"}, + {file = "aiohttp-3.9.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c26959ca7b75ff768e2776d8055bf9582a6267e24556bb7f7bd29e677932be72"}, + {file = "aiohttp-3.9.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:714d4e5231fed4ba2762ed489b4aec07b2b9953cf4ee31e9871caac895a839c0"}, + {file = "aiohttp-3.9.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e7a6a8354f1b62e15d48e04350f13e726fa08b62c3d7b8401c0a1314f02e3558"}, + {file = "aiohttp-3.9.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:c413016880e03e69d166efb5a1a95d40f83d5a3a648d16486592c49ffb76d0db"}, + {file = "aiohttp-3.9.5-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:ff84aeb864e0fac81f676be9f4685f0527b660f1efdc40dcede3c251ef1e867f"}, + {file = "aiohttp-3.9.5-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ad7f2919d7dac062f24d6f5fe95d401597fbb015a25771f85e692d043c9d7832"}, + {file = "aiohttp-3.9.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:702e2c7c187c1a498a4e2b03155d52658fdd6fda882d3d7fbb891a5cf108bb10"}, + {file = "aiohttp-3.9.5-cp310-cp310-win32.whl", hash = "sha256:67c3119f5ddc7261d47163ed86d760ddf0e625cd6246b4ed852e82159617b5fb"}, + {file = "aiohttp-3.9.5-cp310-cp310-win_amd64.whl", hash = "sha256:471f0ef53ccedec9995287f02caf0c068732f026455f07db3f01a46e49d76bbb"}, + {file = "aiohttp-3.9.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e0ae53e33ee7476dd3d1132f932eeb39bf6125083820049d06edcdca4381f342"}, + {file = "aiohttp-3.9.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c088c4d70d21f8ca5c0b8b5403fe84a7bc8e024161febdd4ef04575ef35d474d"}, + {file = "aiohttp-3.9.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:639d0042b7670222f33b0028de6b4e2fad6451462ce7df2af8aee37dcac55424"}, + {file = "aiohttp-3.9.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f26383adb94da5e7fb388d441bf09c61e5e35f455a3217bfd790c6b6bc64b2ee"}, + {file = "aiohttp-3.9.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:66331d00fb28dc90aa606d9a54304af76b335ae204d1836f65797d6fe27f1ca2"}, + {file = "aiohttp-3.9.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4ff550491f5492ab5ed3533e76b8567f4b37bd2995e780a1f46bca2024223233"}, + {file = "aiohttp-3.9.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f22eb3a6c1080d862befa0a89c380b4dafce29dc6cd56083f630073d102eb595"}, + {file = "aiohttp-3.9.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a81b1143d42b66ffc40a441379387076243ef7b51019204fd3ec36b9f69e77d6"}, + {file = "aiohttp-3.9.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f64fd07515dad67f24b6ea4a66ae2876c01031de91c93075b8093f07c0a2d93d"}, + {file = "aiohttp-3.9.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:93e22add827447d2e26d67c9ac0161756007f152fdc5210277d00a85f6c92323"}, + {file = "aiohttp-3.9.5-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:55b39c8684a46e56ef8c8d24faf02de4a2b2ac60d26cee93bc595651ff545de9"}, + {file = "aiohttp-3.9.5-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4715a9b778f4293b9f8ae7a0a7cef9829f02ff8d6277a39d7f40565c737d3771"}, + {file = "aiohttp-3.9.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:afc52b8d969eff14e069a710057d15ab9ac17cd4b6753042c407dcea0e40bf75"}, + {file = "aiohttp-3.9.5-cp311-cp311-win32.whl", hash = "sha256:b3df71da99c98534be076196791adca8819761f0bf6e08e07fd7da25127150d6"}, + {file = "aiohttp-3.9.5-cp311-cp311-win_amd64.whl", hash = "sha256:88e311d98cc0bf45b62fc46c66753a83445f5ab20038bcc1b8a1cc05666f428a"}, + {file = "aiohttp-3.9.5-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:c7a4b7a6cf5b6eb11e109a9755fd4fda7d57395f8c575e166d363b9fc3ec4678"}, + {file = "aiohttp-3.9.5-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:0a158704edf0abcac8ac371fbb54044f3270bdbc93e254a82b6c82be1ef08f3c"}, + {file = "aiohttp-3.9.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d153f652a687a8e95ad367a86a61e8d53d528b0530ef382ec5aaf533140ed00f"}, + {file = "aiohttp-3.9.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:82a6a97d9771cb48ae16979c3a3a9a18b600a8505b1115cfe354dfb2054468b4"}, + {file = "aiohttp-3.9.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:60cdbd56f4cad9f69c35eaac0fbbdf1f77b0ff9456cebd4902f3dd1cf096464c"}, + {file = "aiohttp-3.9.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8676e8fd73141ded15ea586de0b7cda1542960a7b9ad89b2b06428e97125d4fa"}, + {file = "aiohttp-3.9.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:da00da442a0e31f1c69d26d224e1efd3a1ca5bcbf210978a2ca7426dfcae9f58"}, + {file = "aiohttp-3.9.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:18f634d540dd099c262e9f887c8bbacc959847cfe5da7a0e2e1cf3f14dbf2daf"}, + {file = "aiohttp-3.9.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:320e8618eda64e19d11bdb3bd04ccc0a816c17eaecb7e4945d01deee2a22f95f"}, + {file = "aiohttp-3.9.5-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:2faa61a904b83142747fc6a6d7ad8fccff898c849123030f8e75d5d967fd4a81"}, + {file = "aiohttp-3.9.5-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:8c64a6dc3fe5db7b1b4d2b5cb84c4f677768bdc340611eca673afb7cf416ef5a"}, + {file = "aiohttp-3.9.5-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:393c7aba2b55559ef7ab791c94b44f7482a07bf7640d17b341b79081f5e5cd1a"}, + {file = "aiohttp-3.9.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:c671dc117c2c21a1ca10c116cfcd6e3e44da7fcde37bf83b2be485ab377b25da"}, + {file = "aiohttp-3.9.5-cp312-cp312-win32.whl", hash = "sha256:5a7ee16aab26e76add4afc45e8f8206c95d1d75540f1039b84a03c3b3800dd59"}, + {file = "aiohttp-3.9.5-cp312-cp312-win_amd64.whl", hash = "sha256:5ca51eadbd67045396bc92a4345d1790b7301c14d1848feaac1d6a6c9289e888"}, + {file = "aiohttp-3.9.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:694d828b5c41255e54bc2dddb51a9f5150b4eefa9886e38b52605a05d96566e8"}, + {file = "aiohttp-3.9.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0605cc2c0088fcaae79f01c913a38611ad09ba68ff482402d3410bf59039bfb8"}, + {file = "aiohttp-3.9.5-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4558e5012ee03d2638c681e156461d37b7a113fe13970d438d95d10173d25f78"}, + {file = "aiohttp-3.9.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9dbc053ac75ccc63dc3a3cc547b98c7258ec35a215a92bd9f983e0aac95d3d5b"}, + {file = "aiohttp-3.9.5-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4109adee842b90671f1b689901b948f347325045c15f46b39797ae1bf17019de"}, + {file = "aiohttp-3.9.5-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a6ea1a5b409a85477fd8e5ee6ad8f0e40bf2844c270955e09360418cfd09abac"}, + {file = "aiohttp-3.9.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3c2890ca8c59ee683fd09adf32321a40fe1cf164e3387799efb2acebf090c11"}, + {file = "aiohttp-3.9.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3916c8692dbd9d55c523374a3b8213e628424d19116ac4308e434dbf6d95bbdd"}, + {file = "aiohttp-3.9.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:8d1964eb7617907c792ca00b341b5ec3e01ae8c280825deadbbd678447b127e1"}, + {file = "aiohttp-3.9.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:d5ab8e1f6bee051a4bf6195e38a5c13e5e161cb7bad83d8854524798bd9fcd6e"}, + {file = "aiohttp-3.9.5-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:52c27110f3862a1afbcb2af4281fc9fdc40327fa286c4625dfee247c3ba90156"}, + {file = "aiohttp-3.9.5-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:7f64cbd44443e80094309875d4f9c71d0401e966d191c3d469cde4642bc2e031"}, + {file = "aiohttp-3.9.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8b4f72fbb66279624bfe83fd5eb6aea0022dad8eec62b71e7bf63ee1caadeafe"}, + {file = "aiohttp-3.9.5-cp38-cp38-win32.whl", hash = "sha256:6380c039ec52866c06d69b5c7aad5478b24ed11696f0e72f6b807cfb261453da"}, + {file = "aiohttp-3.9.5-cp38-cp38-win_amd64.whl", hash = "sha256:da22dab31d7180f8c3ac7c7635f3bcd53808f374f6aa333fe0b0b9e14b01f91a"}, + {file = "aiohttp-3.9.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:1732102949ff6087589408d76cd6dea656b93c896b011ecafff418c9661dc4ed"}, + {file = "aiohttp-3.9.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c6021d296318cb6f9414b48e6a439a7f5d1f665464da507e8ff640848ee2a58a"}, + {file = "aiohttp-3.9.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:239f975589a944eeb1bad26b8b140a59a3a320067fb3cd10b75c3092405a1372"}, + {file = "aiohttp-3.9.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3b7b30258348082826d274504fbc7c849959f1989d86c29bc355107accec6cfb"}, + {file = "aiohttp-3.9.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cd2adf5c87ff6d8b277814a28a535b59e20bfea40a101db6b3bdca7e9926bc24"}, + {file = "aiohttp-3.9.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e9a3d838441bebcf5cf442700e3963f58b5c33f015341f9ea86dcd7d503c07e2"}, + {file = "aiohttp-3.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e3a1ae66e3d0c17cf65c08968a5ee3180c5a95920ec2731f53343fac9bad106"}, + {file = "aiohttp-3.9.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9c69e77370cce2d6df5d12b4e12bdcca60c47ba13d1cbbc8645dd005a20b738b"}, + {file = "aiohttp-3.9.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0cbf56238f4bbf49dab8c2dc2e6b1b68502b1e88d335bea59b3f5b9f4c001475"}, + {file = "aiohttp-3.9.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:d1469f228cd9ffddd396d9948b8c9cd8022b6d1bf1e40c6f25b0fb90b4f893ed"}, + {file = "aiohttp-3.9.5-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:45731330e754f5811c314901cebdf19dd776a44b31927fa4b4dbecab9e457b0c"}, + {file = "aiohttp-3.9.5-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:3fcb4046d2904378e3aeea1df51f697b0467f2aac55d232c87ba162709478c46"}, + {file = "aiohttp-3.9.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8cf142aa6c1a751fcb364158fd710b8a9be874b81889c2bd13aa8893197455e2"}, + {file = "aiohttp-3.9.5-cp39-cp39-win32.whl", hash = "sha256:7b179eea70833c8dee51ec42f3b4097bd6370892fa93f510f76762105568cf09"}, + {file = "aiohttp-3.9.5-cp39-cp39-win_amd64.whl", hash = "sha256:38d80498e2e169bc61418ff36170e0aad0cd268da8b38a17c4cf29d254a8b3f1"}, + {file = "aiohttp-3.9.5.tar.gz", hash = "sha256:edea7d15772ceeb29db4aff55e482d4bcfb6ae160ce144f2682de02f6d693551"}, +] + +[package.dependencies] +aiosignal = ">=1.1.2" +attrs = ">=17.3.0" +frozenlist = ">=1.1.1" +multidict = ">=4.5,<7.0" +yarl = ">=1.0,<2.0" + +[package.extras] +speedups = ["Brotli", "aiodns", "brotlicffi"] + +[[package]] +name = "aiosignal" +version = "1.3.1" +description = "aiosignal: a list of registered asynchronous callbacks" +optional = false +python-versions = ">=3.7" +files = [ + {file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"}, + {file = "aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc"}, +] + +[package.dependencies] +frozenlist = ">=1.1.0" + +[[package]] +name = "airbyte-cdk" +version = "0.52.10" +description = "A framework for writing Airbyte Connectors." +optional = false +python-versions = ">=3.8" +files = [ + {file = "airbyte-cdk-0.52.10.tar.gz", hash = "sha256:0daee950fe0d4453e6ceea2633090fc1d2144224e6f170b3c6cb4c6392811b47"}, + {file = "airbyte_cdk-0.52.10-py3-none-any.whl", hash = "sha256:366fd7bbbba317223edc1571d22b91c6f5bcff4ba65b3131e42f9b37e29932f4"}, +] + +[package.dependencies] +airbyte-protocol-models = "0.4.2" +backoff = "*" +cachetools = "*" +Deprecated = ">=1.2,<2.0" +dpath = ">=2.0.1,<2.1.0" +genson = "1.2.2" +isodate = ">=0.6.1,<0.7.0" +Jinja2 = ">=3.1.2,<3.2.0" +jsonref = ">=0.2,<1.0" +jsonschema = ">=3.2.0,<3.3.0" +pendulum = "*" +pydantic = ">=1.10.8,<2.0.0" +python-dateutil = "*" +PyYAML = ">=6.0.1" +requests = "*" +requests-cache = "*" +wcmatch = "8.4" + +[package.extras] +dev = ["avro (>=1.11.2,<1.12.0)", "cohere (==4.21)", "fastavro (>=1.8.0,<1.9.0)", "freezegun", "langchain (==0.0.271)", "markdown", "mypy", "openai[embeddings] (==0.27.9)", "pandas (==2.0.3)", "pdf2image (==1.16.3)", "pdfminer.six (==20221105)", "pyarrow (==12.0.1)", "pytesseract (==0.3.10)", "pytest", "pytest-cov", "pytest-httpserver", "pytest-mock", "requests-mock", "tiktoken (==0.4.0)", "unstructured (==0.10.19)", "unstructured.pytesseract (>=0.3.12)", "unstructured[docx,pptx] (==0.10.19)"] +file-based = ["avro (>=1.11.2,<1.12.0)", "fastavro (>=1.8.0,<1.9.0)", "markdown", "pdf2image (==1.16.3)", "pdfminer.six (==20221105)", "pyarrow (==12.0.1)", "pytesseract (==0.3.10)", "unstructured (==0.10.19)", "unstructured.pytesseract (>=0.3.12)", "unstructured[docx,pptx] (==0.10.19)"] +sphinx-docs = ["Sphinx (>=4.2,<5.0)", "sphinx-rtd-theme (>=1.0,<2.0)"] +vector-db-based = ["cohere (==4.21)", "langchain (==0.0.271)", "openai[embeddings] (==0.27.9)", "tiktoken (==0.4.0)"] + +[[package]] +name = "airbyte-protocol-models" +version = "0.4.2" +description = "Declares the Airbyte Protocol." +optional = false +python-versions = ">=3.8" +files = [ + {file = "airbyte_protocol_models-0.4.2-py3-none-any.whl", hash = "sha256:d3bbb14d4af9483bd7b08f5eb06f87e7113553bf4baed3998af95be873a0d821"}, + {file = "airbyte_protocol_models-0.4.2.tar.gz", hash = "sha256:67b149d4812f8fdb88396b161274aa73cf0e16f22e35ce44f2bfc4d47e51915c"}, +] + +[package.dependencies] +pydantic = ">=1.9.2,<2.0.0" + +[[package]] +name = "attrs" +version = "23.2.0" +description = "Classes Without Boilerplate" +optional = false +python-versions = ">=3.7" +files = [ + {file = "attrs-23.2.0-py3-none-any.whl", hash = "sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1"}, + {file = "attrs-23.2.0.tar.gz", hash = "sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"}, +] + +[package.extras] +cov = ["attrs[tests]", "coverage[toml] (>=5.3)"] +dev = ["attrs[tests]", "pre-commit"] +docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"] +tests = ["attrs[tests-no-zope]", "zope-interface"] +tests-mypy = ["mypy (>=1.6)", "pytest-mypy-plugins"] +tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "pytest (>=4.3.0)", "pytest-xdist[psutil]"] + +[[package]] +name = "backoff" +version = "2.2.1" +description = "Function decoration for backoff and retry" +optional = false +python-versions = ">=3.7,<4.0" +files = [ + {file = "backoff-2.2.1-py3-none-any.whl", hash = "sha256:63579f9a0628e06278f7e47b7d7d5b6ce20dc65c5e96a6f3ca99a6adca0396e8"}, + {file = "backoff-2.2.1.tar.gz", hash = "sha256:03f829f5bb1923180821643f8753b0502c3b682293992485b0eef2807afa5cba"}, +] + +[[package]] +name = "bracex" +version = "2.4" +description = "Bash style brace expander." +optional = false +python-versions = ">=3.8" +files = [ + {file = "bracex-2.4-py3-none-any.whl", hash = "sha256:efdc71eff95eaff5e0f8cfebe7d01adf2c8637c8c92edaf63ef348c241a82418"}, + {file = "bracex-2.4.tar.gz", hash = "sha256:a27eaf1df42cf561fed58b7a8f3fdf129d1ea16a81e1fadd1d17989bc6384beb"}, +] + +[[package]] +name = "cachetools" +version = "5.3.3" +description = "Extensible memoizing collections and decorators" +optional = false +python-versions = ">=3.7" +files = [ + {file = "cachetools-5.3.3-py3-none-any.whl", hash = "sha256:0abad1021d3f8325b2fc1d2e9c8b9c9d57b04c3932657a72465447332c24d945"}, + {file = "cachetools-5.3.3.tar.gz", hash = "sha256:ba29e2dfa0b8b556606f097407ed1aa62080ee108ab0dc5ec9d6a723a007d105"}, +] + +[[package]] +name = "cattrs" +version = "23.2.3" +description = "Composable complex class support for attrs and dataclasses." +optional = false +python-versions = ">=3.8" +files = [ + {file = "cattrs-23.2.3-py3-none-any.whl", hash = "sha256:0341994d94971052e9ee70662542699a3162ea1e0c62f7ce1b4a57f563685108"}, + {file = "cattrs-23.2.3.tar.gz", hash = "sha256:a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f"}, +] + +[package.dependencies] +attrs = ">=23.1.0" + +[package.extras] +bson = ["pymongo (>=4.4.0)"] +cbor2 = ["cbor2 (>=5.4.6)"] +msgpack = ["msgpack (>=1.0.5)"] +orjson = ["orjson (>=3.9.2)"] +pyyaml = ["pyyaml (>=6.0)"] +tomlkit = ["tomlkit (>=0.11.8)"] +ujson = ["ujson (>=5.7.0)"] + +[[package]] +name = "certifi" +version = "2024.2.2" +description = "Python package for providing Mozilla's CA Bundle." +optional = false +python-versions = ">=3.6" +files = [ + {file = "certifi-2024.2.2-py3-none-any.whl", hash = "sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1"}, + {file = "certifi-2024.2.2.tar.gz", hash = "sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f"}, +] + +[[package]] +name = "cffi" +version = "1.16.0" +description = "Foreign Function Interface for Python calling C code." +optional = false +python-versions = ">=3.8" +files = [ + {file = "cffi-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6b3d6606d369fc1da4fd8c357d026317fbb9c9b75d36dc16e90e84c26854b088"}, + {file = "cffi-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ac0f5edd2360eea2f1daa9e26a41db02dd4b0451b48f7c318e217ee092a213e9"}, + {file = "cffi-1.16.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7e61e3e4fa664a8588aa25c883eab612a188c725755afff6289454d6362b9673"}, + {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a72e8961a86d19bdb45851d8f1f08b041ea37d2bd8d4fd19903bc3083d80c896"}, + {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b50bf3f55561dac5438f8e70bfcdfd74543fd60df5fa5f62d94e5867deca684"}, + {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7651c50c8c5ef7bdb41108b7b8c5a83013bfaa8a935590c5d74627c047a583c7"}, + {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4108df7fe9b707191e55f33efbcb2d81928e10cea45527879a4749cbe472614"}, + {file = "cffi-1.16.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:32c68ef735dbe5857c810328cb2481e24722a59a2003018885514d4c09af9743"}, + {file = "cffi-1.16.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:673739cb539f8cdaa07d92d02efa93c9ccf87e345b9a0b556e3ecc666718468d"}, + {file = "cffi-1.16.0-cp310-cp310-win32.whl", hash = "sha256:9f90389693731ff1f659e55c7d1640e2ec43ff725cc61b04b2f9c6d8d017df6a"}, + {file = "cffi-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:e6024675e67af929088fda399b2094574609396b1decb609c55fa58b028a32a1"}, + {file = "cffi-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b84834d0cf97e7d27dd5b7f3aca7b6e9263c56308ab9dc8aae9784abb774d404"}, + {file = "cffi-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1b8ebc27c014c59692bb2664c7d13ce7a6e9a629be20e54e7271fa696ff2b417"}, + {file = "cffi-1.16.0-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ee07e47c12890ef248766a6e55bd38ebfb2bb8edd4142d56db91b21ea68b7627"}, + {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8a9d3ebe49f084ad71f9269834ceccbf398253c9fac910c4fd7053ff1386936"}, + {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e70f54f1796669ef691ca07d046cd81a29cb4deb1e5f942003f401c0c4a2695d"}, + {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5bf44d66cdf9e893637896c7faa22298baebcd18d1ddb6d2626a6e39793a1d56"}, + {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7b78010e7b97fef4bee1e896df8a4bbb6712b7f05b7ef630f9d1da00f6444d2e"}, + {file = "cffi-1.16.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c6a164aa47843fb1b01e941d385aab7215563bb8816d80ff3a363a9f8448a8dc"}, + {file = "cffi-1.16.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e09f3ff613345df5e8c3667da1d918f9149bd623cd9070c983c013792a9a62eb"}, + {file = "cffi-1.16.0-cp311-cp311-win32.whl", hash = "sha256:2c56b361916f390cd758a57f2e16233eb4f64bcbeee88a4881ea90fca14dc6ab"}, + {file = "cffi-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:db8e577c19c0fda0beb7e0d4e09e0ba74b1e4c092e0e40bfa12fe05b6f6d75ba"}, + {file = "cffi-1.16.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fa3a0128b152627161ce47201262d3140edb5a5c3da88d73a1b790a959126956"}, + {file = "cffi-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:68e7c44931cc171c54ccb702482e9fc723192e88d25a0e133edd7aff8fcd1f6e"}, + {file = "cffi-1.16.0-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:abd808f9c129ba2beda4cfc53bde801e5bcf9d6e0f22f095e45327c038bfe68e"}, + {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88e2b3c14bdb32e440be531ade29d3c50a1a59cd4e51b1dd8b0865c54ea5d2e2"}, + {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fcc8eb6d5902bb1cf6dc4f187ee3ea80a1eba0a89aba40a5cb20a5087d961357"}, + {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b7be2d771cdba2942e13215c4e340bfd76398e9227ad10402a8767ab1865d2e6"}, + {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e715596e683d2ce000574bae5d07bd522c781a822866c20495e52520564f0969"}, + {file = "cffi-1.16.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2d92b25dbf6cae33f65005baf472d2c245c050b1ce709cc4588cdcdd5495b520"}, + {file = "cffi-1.16.0-cp312-cp312-win32.whl", hash = "sha256:b2ca4e77f9f47c55c194982e10f058db063937845bb2b7a86c84a6cfe0aefa8b"}, + {file = "cffi-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:68678abf380b42ce21a5f2abde8efee05c114c2fdb2e9eef2efdb0257fba1235"}, + {file = "cffi-1.16.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0c9ef6ff37e974b73c25eecc13952c55bceed9112be2d9d938ded8e856138bcc"}, + {file = "cffi-1.16.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a09582f178759ee8128d9270cd1344154fd473bb77d94ce0aeb2a93ebf0feaf0"}, + {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e760191dd42581e023a68b758769e2da259b5d52e3103c6060ddc02c9edb8d7b"}, + {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:80876338e19c951fdfed6198e70bc88f1c9758b94578d5a7c4c91a87af3cf31c"}, + {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a6a14b17d7e17fa0d207ac08642c8820f84f25ce17a442fd15e27ea18d67c59b"}, + {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6602bc8dc6f3a9e02b6c22c4fc1e47aa50f8f8e6d3f78a5e16ac33ef5fefa324"}, + {file = "cffi-1.16.0-cp38-cp38-win32.whl", hash = "sha256:131fd094d1065b19540c3d72594260f118b231090295d8c34e19a7bbcf2e860a"}, + {file = "cffi-1.16.0-cp38-cp38-win_amd64.whl", hash = "sha256:31d13b0f99e0836b7ff893d37af07366ebc90b678b6664c955b54561fc36ef36"}, + {file = "cffi-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:582215a0e9adbe0e379761260553ba11c58943e4bbe9c36430c4ca6ac74b15ed"}, + {file = "cffi-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:b29ebffcf550f9da55bec9e02ad430c992a87e5f512cd63388abb76f1036d8d2"}, + {file = "cffi-1.16.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dc9b18bf40cc75f66f40a7379f6a9513244fe33c0e8aa72e2d56b0196a7ef872"}, + {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cb4a35b3642fc5c005a6755a5d17c6c8b6bcb6981baf81cea8bfbc8903e8ba8"}, + {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b86851a328eedc692acf81fb05444bdf1891747c25af7529e39ddafaf68a4f3f"}, + {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c0f31130ebc2d37cdd8e44605fb5fa7ad59049298b3f745c74fa74c62fbfcfc4"}, + {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f8e709127c6c77446a8c0a8c8bf3c8ee706a06cd44b1e827c3e6a2ee6b8c098"}, + {file = "cffi-1.16.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:748dcd1e3d3d7cd5443ef03ce8685043294ad6bd7c02a38d1bd367cfd968e000"}, + {file = "cffi-1.16.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8895613bcc094d4a1b2dbe179d88d7fb4a15cee43c052e8885783fac397d91fe"}, + {file = "cffi-1.16.0-cp39-cp39-win32.whl", hash = "sha256:ed86a35631f7bfbb28e108dd96773b9d5a6ce4811cf6ea468bb6a359b256b1e4"}, + {file = "cffi-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:3686dffb02459559c74dd3d81748269ffb0eb027c39a6fc99502de37d501faa8"}, + {file = "cffi-1.16.0.tar.gz", hash = "sha256:bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0"}, +] + +[package.dependencies] +pycparser = "*" + +[[package]] +name = "charset-normalizer" +version = "3.3.2" +description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +optional = false +python-versions = ">=3.7.0" +files = [ + {file = "charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:25baf083bf6f6b341f4121c2f3c548875ee6f5339300e08be3f2b2ba1721cdd3"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9063e24fdb1e498ab71cb7419e24622516c4a04476b17a2dab57e8baa30d6e03"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6897af51655e3691ff853668779c7bad41579facacf5fd7253b0133308cf000d"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d3193f4a680c64b4b6a9115943538edb896edc190f0b222e73761716519268e"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd70574b12bb8a4d2aaa0094515df2463cb429d8536cfb6c7ce983246983e5a6"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8465322196c8b4d7ab6d1e049e4c5cb460d0394da4a27d23cc242fbf0034b6b5"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a9a8e9031d613fd2009c182b69c7b2c1ef8239a0efb1df3f7c8da66d5dd3d537"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:beb58fe5cdb101e3a055192ac291b7a21e3b7ef4f67fa1d74e331a7f2124341c"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e06ed3eb3218bc64786f7db41917d4e686cc4856944f53d5bdf83a6884432e12"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:2e81c7b9c8979ce92ed306c249d46894776a909505d8f5a4ba55b14206e3222f"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:572c3763a264ba47b3cf708a44ce965d98555f618ca42c926a9c1616d8f34269"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-win32.whl", hash = "sha256:3d47fa203a7bd9c5b6cee4736ee84ca03b8ef23193c0d1ca99b5089f72645c73"}, + {file = "charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl", hash = "sha256:10955842570876604d404661fbccbc9c7e684caf432c09c715ec38fbae45ae09"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-win32.whl", hash = "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab"}, + {file = "charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl", hash = "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7"}, + {file = "charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:95f2a5796329323b8f0512e09dbb7a1860c46a39da62ecb2324f116fa8fdc85c"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c002b4ffc0be611f0d9da932eb0f704fe2602a9a949d1f738e4c34c75b0863d5"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a981a536974bbc7a512cf44ed14938cf01030a99e9b3a06dd59578882f06f985"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3287761bc4ee9e33561a7e058c72ac0938c4f57fe49a09eae428fd88aafe7bb6"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42cb296636fcc8b0644486d15c12376cb9fa75443e00fb25de0b8602e64c1714"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:c083af607d2515612056a31f0a8d9e0fcb5876b7bfc0abad3ecd275bc4ebc2d5"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:87d1351268731db79e0f8e745d92493ee2841c974128ef629dc518b937d9194c"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bd8f7df7d12c2db9fab40bdd87a7c09b1530128315d047a086fa3ae3435cb3a8"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:c180f51afb394e165eafe4ac2936a14bee3eb10debc9d9e4db8958fe36afe711"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:8c622a5fe39a48f78944a87d4fb8a53ee07344641b0562c540d840748571b811"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-win32.whl", hash = "sha256:db364eca23f876da6f9e16c9da0df51aa4f104a972735574842618b8c6d999d4"}, + {file = "charset_normalizer-3.3.2-cp37-cp37m-win_amd64.whl", hash = "sha256:86216b5cee4b06df986d214f664305142d9c76df9b6512be2738aa72a2048f99"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-win32.whl", hash = "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25"}, + {file = "charset_normalizer-3.3.2-cp38-cp38-win_amd64.whl", hash = "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22afcb9f253dac0696b5a4be4a1c0f8762f8239e21b99680099abd9b2b1b2269"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e27ad930a842b4c5eb8ac0016b0a54f5aebbe679340c26101df33424142c143c"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1f79682fbe303db92bc2b1136016a38a42e835d932bab5b3b1bfcfbf0640e519"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b261ccdec7821281dade748d088bb6e9b69e6d15b30652b74cbbac25e280b796"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:122c7fa62b130ed55f8f285bfd56d5f4b4a5b503609d181f9ad85e55c89f4185"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d0eccceffcb53201b5bfebb52600a5fb483a20b61da9dbc885f8b103cbe7598c"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:9f96df6923e21816da7e0ad3fd47dd8f94b2a5ce594e00677c0013018b813458"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7f04c839ed0b6b98b1a7501a002144b76c18fb1c1850c8b98d458ac269e26ed2"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:34d1c8da1e78d2e001f363791c98a272bb734000fcef47a491c1e3b0505657a8"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-win32.whl", hash = "sha256:aed38f6e4fb3f5d6bf81bfa990a07806be9d83cf7bacef998ab1a9bd660a581f"}, + {file = "charset_normalizer-3.3.2-cp39-cp39-win_amd64.whl", hash = "sha256:b01b88d45a6fcb69667cd6d2f7a9aeb4bf53760d7fc536bf679ec94fe9f3ff3d"}, + {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"}, +] + +[[package]] +name = "colorama" +version = "0.4.6" +description = "Cross-platform colored terminal text." +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +files = [ + {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, + {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, +] + +[[package]] +name = "debugpy" +version = "1.8.1" +description = "An implementation of the Debug Adapter Protocol for Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "debugpy-1.8.1-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:3bda0f1e943d386cc7a0e71bfa59f4137909e2ed947fb3946c506e113000f741"}, + {file = "debugpy-1.8.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dda73bf69ea479c8577a0448f8c707691152e6c4de7f0c4dec5a4bc11dee516e"}, + {file = "debugpy-1.8.1-cp310-cp310-win32.whl", hash = "sha256:3a79c6f62adef994b2dbe9fc2cc9cc3864a23575b6e387339ab739873bea53d0"}, + {file = "debugpy-1.8.1-cp310-cp310-win_amd64.whl", hash = "sha256:7eb7bd2b56ea3bedb009616d9e2f64aab8fc7000d481faec3cd26c98a964bcdd"}, + {file = "debugpy-1.8.1-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:016a9fcfc2c6b57f939673c874310d8581d51a0fe0858e7fac4e240c5eb743cb"}, + {file = "debugpy-1.8.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd97ed11a4c7f6d042d320ce03d83b20c3fb40da892f994bc041bbc415d7a099"}, + {file = "debugpy-1.8.1-cp311-cp311-win32.whl", hash = "sha256:0de56aba8249c28a300bdb0672a9b94785074eb82eb672db66c8144fff673146"}, + {file = "debugpy-1.8.1-cp311-cp311-win_amd64.whl", hash = "sha256:1a9fe0829c2b854757b4fd0a338d93bc17249a3bf69ecf765c61d4c522bb92a8"}, + {file = "debugpy-1.8.1-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:3ebb70ba1a6524d19fa7bb122f44b74170c447d5746a503e36adc244a20ac539"}, + {file = "debugpy-1.8.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a2e658a9630f27534e63922ebf655a6ab60c370f4d2fc5c02a5b19baf4410ace"}, + {file = "debugpy-1.8.1-cp312-cp312-win32.whl", hash = "sha256:caad2846e21188797a1f17fc09c31b84c7c3c23baf2516fed5b40b378515bbf0"}, + {file = "debugpy-1.8.1-cp312-cp312-win_amd64.whl", hash = "sha256:edcc9f58ec0fd121a25bc950d4578df47428d72e1a0d66c07403b04eb93bcf98"}, + {file = "debugpy-1.8.1-cp38-cp38-macosx_11_0_x86_64.whl", hash = "sha256:7a3afa222f6fd3d9dfecd52729bc2e12c93e22a7491405a0ecbf9e1d32d45b39"}, + {file = "debugpy-1.8.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d915a18f0597ef685e88bb35e5d7ab968964b7befefe1aaea1eb5b2640b586c7"}, + {file = "debugpy-1.8.1-cp38-cp38-win32.whl", hash = "sha256:92116039b5500633cc8d44ecc187abe2dfa9b90f7a82bbf81d079fcdd506bae9"}, + {file = "debugpy-1.8.1-cp38-cp38-win_amd64.whl", hash = "sha256:e38beb7992b5afd9d5244e96ad5fa9135e94993b0c551ceebf3fe1a5d9beb234"}, + {file = "debugpy-1.8.1-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:bfb20cb57486c8e4793d41996652e5a6a885b4d9175dd369045dad59eaacea42"}, + {file = "debugpy-1.8.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:efd3fdd3f67a7e576dd869c184c5dd71d9aaa36ded271939da352880c012e703"}, + {file = "debugpy-1.8.1-cp39-cp39-win32.whl", hash = "sha256:58911e8521ca0c785ac7a0539f1e77e0ce2df753f786188f382229278b4cdf23"}, + {file = "debugpy-1.8.1-cp39-cp39-win_amd64.whl", hash = "sha256:6df9aa9599eb05ca179fb0b810282255202a66835c6efb1d112d21ecb830ddd3"}, + {file = "debugpy-1.8.1-py2.py3-none-any.whl", hash = "sha256:28acbe2241222b87e255260c76741e1fbf04fdc3b6d094fcf57b6c6f75ce1242"}, + {file = "debugpy-1.8.1.zip", hash = "sha256:f696d6be15be87aef621917585f9bb94b1dc9e8aced570db1b8a6fc14e8f9b42"}, +] + +[[package]] +name = "deprecated" +version = "1.2.14" +description = "Python @deprecated decorator to deprecate old python classes, functions or methods." +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +files = [ + {file = "Deprecated-1.2.14-py2.py3-none-any.whl", hash = "sha256:6fac8b097794a90302bdbb17b9b815e732d3c4720583ff1b198499d78470466c"}, + {file = "Deprecated-1.2.14.tar.gz", hash = "sha256:e5323eb936458dccc2582dc6f9c322c852a775a27065ff2b0c4970b9d53d01b3"}, +] + +[package.dependencies] +wrapt = ">=1.10,<2" + +[package.extras] +dev = ["PyTest", "PyTest-Cov", "bump2version (<1)", "sphinx (<2)", "tox"] + +[[package]] +name = "dpath" +version = "2.0.8" +description = "Filesystem-like pathing and searching for dictionaries" +optional = false +python-versions = ">=3.7" +files = [ + {file = "dpath-2.0.8-py3-none-any.whl", hash = "sha256:f92f595214dd93a00558d75d4b858beee519f4cffca87f02616ad6cd013f3436"}, + {file = "dpath-2.0.8.tar.gz", hash = "sha256:a3440157ebe80d0a3ad794f1b61c571bef125214800ffdb9afc9424e8250fe9b"}, +] + +[[package]] +name = "estuary-cdk" +version = "0.2.0" +description = "Estuary Connector Development Kit" +optional = false +python-versions = "^3.11" +files = [] +develop = true + +[package.dependencies] +aiodns = "^3.1.1" +aiohttp = "^3.9.3" +orjson = "^3.9.15" +pydantic = ">1.10,<3" +xxhash = "^3.4.1" + +[package.source] +type = "directory" +url = "../estuary-cdk" + +[[package]] +name = "frozenlist" +version = "1.4.1" +description = "A list-like structure which implements collections.abc.MutableSequence" +optional = false +python-versions = ">=3.8" +files = [ + {file = "frozenlist-1.4.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:f9aa1878d1083b276b0196f2dfbe00c9b7e752475ed3b682025ff20c1c1f51ac"}, + {file = "frozenlist-1.4.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:29acab3f66f0f24674b7dc4736477bcd4bc3ad4b896f5f45379a67bce8b96868"}, + {file = "frozenlist-1.4.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:74fb4bee6880b529a0c6560885fce4dc95936920f9f20f53d99a213f7bf66776"}, + {file = "frozenlist-1.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:590344787a90ae57d62511dd7c736ed56b428f04cd8c161fcc5e7232c130c69a"}, + {file = "frozenlist-1.4.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:068b63f23b17df8569b7fdca5517edef76171cf3897eb68beb01341131fbd2ad"}, + {file = "frozenlist-1.4.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5c849d495bf5154cd8da18a9eb15db127d4dba2968d88831aff6f0331ea9bd4c"}, + {file = "frozenlist-1.4.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9750cc7fe1ae3b1611bb8cfc3f9ec11d532244235d75901fb6b8e42ce9229dfe"}, + {file = "frozenlist-1.4.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a9b2de4cf0cdd5bd2dee4c4f63a653c61d2408055ab77b151c1957f221cabf2a"}, + {file = "frozenlist-1.4.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:0633c8d5337cb5c77acbccc6357ac49a1770b8c487e5b3505c57b949b4b82e98"}, + {file = "frozenlist-1.4.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:27657df69e8801be6c3638054e202a135c7f299267f1a55ed3a598934f6c0d75"}, + {file = "frozenlist-1.4.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:f9a3ea26252bd92f570600098783d1371354d89d5f6b7dfd87359d669f2109b5"}, + {file = "frozenlist-1.4.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:4f57dab5fe3407b6c0c1cc907ac98e8a189f9e418f3b6e54d65a718aaafe3950"}, + {file = "frozenlist-1.4.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:e02a0e11cf6597299b9f3bbd3f93d79217cb90cfd1411aec33848b13f5c656cc"}, + {file = "frozenlist-1.4.1-cp310-cp310-win32.whl", hash = "sha256:a828c57f00f729620a442881cc60e57cfcec6842ba38e1b19fd3e47ac0ff8dc1"}, + {file = "frozenlist-1.4.1-cp310-cp310-win_amd64.whl", hash = "sha256:f56e2333dda1fe0f909e7cc59f021eba0d2307bc6f012a1ccf2beca6ba362439"}, + {file = "frozenlist-1.4.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:a0cb6f11204443f27a1628b0e460f37fb30f624be6051d490fa7d7e26d4af3d0"}, + {file = "frozenlist-1.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b46c8ae3a8f1f41a0d2ef350c0b6e65822d80772fe46b653ab6b6274f61d4a49"}, + {file = "frozenlist-1.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:fde5bd59ab5357e3853313127f4d3565fc7dad314a74d7b5d43c22c6a5ed2ced"}, + {file = "frozenlist-1.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:722e1124aec435320ae01ee3ac7bec11a5d47f25d0ed6328f2273d287bc3abb0"}, + {file = "frozenlist-1.4.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2471c201b70d58a0f0c1f91261542a03d9a5e088ed3dc6c160d614c01649c106"}, + {file = "frozenlist-1.4.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c757a9dd70d72b076d6f68efdbb9bc943665ae954dad2801b874c8c69e185068"}, + {file = "frozenlist-1.4.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f146e0911cb2f1da549fc58fc7bcd2b836a44b79ef871980d605ec392ff6b0d2"}, + {file = "frozenlist-1.4.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f9c515e7914626b2a2e1e311794b4c35720a0be87af52b79ff8e1429fc25f19"}, + {file = "frozenlist-1.4.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:c302220494f5c1ebeb0912ea782bcd5e2f8308037b3c7553fad0e48ebad6ad82"}, + {file = "frozenlist-1.4.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:442acde1e068288a4ba7acfe05f5f343e19fac87bfc96d89eb886b0363e977ec"}, + {file = "frozenlist-1.4.1-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:1b280e6507ea8a4fa0c0a7150b4e526a8d113989e28eaaef946cc77ffd7efc0a"}, + {file = "frozenlist-1.4.1-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:fe1a06da377e3a1062ae5fe0926e12b84eceb8a50b350ddca72dc85015873f74"}, + {file = "frozenlist-1.4.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:db9e724bebd621d9beca794f2a4ff1d26eed5965b004a97f1f1685a173b869c2"}, + {file = "frozenlist-1.4.1-cp311-cp311-win32.whl", hash = "sha256:e774d53b1a477a67838a904131c4b0eef6b3d8a651f8b138b04f748fccfefe17"}, + {file = "frozenlist-1.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:fb3c2db03683b5767dedb5769b8a40ebb47d6f7f45b1b3e3b4b51ec8ad9d9825"}, + {file = "frozenlist-1.4.1-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:1979bc0aeb89b33b588c51c54ab0161791149f2461ea7c7c946d95d5f93b56ae"}, + {file = "frozenlist-1.4.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:cc7b01b3754ea68a62bd77ce6020afaffb44a590c2289089289363472d13aedb"}, + {file = "frozenlist-1.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c9c92be9fd329ac801cc420e08452b70e7aeab94ea4233a4804f0915c14eba9b"}, + {file = "frozenlist-1.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c3894db91f5a489fc8fa6a9991820f368f0b3cbdb9cd8849547ccfab3392d86"}, + {file = "frozenlist-1.4.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ba60bb19387e13597fb059f32cd4d59445d7b18b69a745b8f8e5db0346f33480"}, + {file = "frozenlist-1.4.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8aefbba5f69d42246543407ed2461db31006b0f76c4e32dfd6f42215a2c41d09"}, + {file = "frozenlist-1.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:780d3a35680ced9ce682fbcf4cb9c2bad3136eeff760ab33707b71db84664e3a"}, + {file = "frozenlist-1.4.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9acbb16f06fe7f52f441bb6f413ebae6c37baa6ef9edd49cdd567216da8600cd"}, + {file = "frozenlist-1.4.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:23b701e65c7b36e4bf15546a89279bd4d8675faabc287d06bbcfac7d3c33e1e6"}, + {file = "frozenlist-1.4.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:3e0153a805a98f5ada7e09826255ba99fb4f7524bb81bf6b47fb702666484ae1"}, + {file = "frozenlist-1.4.1-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:dd9b1baec094d91bf36ec729445f7769d0d0cf6b64d04d86e45baf89e2b9059b"}, + {file = "frozenlist-1.4.1-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:1a4471094e146b6790f61b98616ab8e44f72661879cc63fa1049d13ef711e71e"}, + {file = "frozenlist-1.4.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:5667ed53d68d91920defdf4035d1cdaa3c3121dc0b113255124bcfada1cfa1b8"}, + {file = "frozenlist-1.4.1-cp312-cp312-win32.whl", hash = "sha256:beee944ae828747fd7cb216a70f120767fc9f4f00bacae8543c14a6831673f89"}, + {file = "frozenlist-1.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:64536573d0a2cb6e625cf309984e2d873979709f2cf22839bf2d61790b448ad5"}, + {file = "frozenlist-1.4.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:20b51fa3f588ff2fe658663db52a41a4f7aa6c04f6201449c6c7c476bd255c0d"}, + {file = "frozenlist-1.4.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:410478a0c562d1a5bcc2f7ea448359fcb050ed48b3c6f6f4f18c313a9bdb1826"}, + {file = "frozenlist-1.4.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:c6321c9efe29975232da3bd0af0ad216800a47e93d763ce64f291917a381b8eb"}, + {file = "frozenlist-1.4.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:48f6a4533887e189dae092f1cf981f2e3885175f7a0f33c91fb5b7b682b6bab6"}, + {file = "frozenlist-1.4.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6eb73fa5426ea69ee0e012fb59cdc76a15b1283d6e32e4f8dc4482ec67d1194d"}, + {file = "frozenlist-1.4.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fbeb989b5cc29e8daf7f976b421c220f1b8c731cbf22b9130d8815418ea45887"}, + {file = "frozenlist-1.4.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:32453c1de775c889eb4e22f1197fe3bdfe457d16476ea407472b9442e6295f7a"}, + {file = "frozenlist-1.4.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:693945278a31f2086d9bf3df0fe8254bbeaef1fe71e1351c3bd730aa7d31c41b"}, + {file = "frozenlist-1.4.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:1d0ce09d36d53bbbe566fe296965b23b961764c0bcf3ce2fa45f463745c04701"}, + {file = "frozenlist-1.4.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:3a670dc61eb0d0eb7080890c13de3066790f9049b47b0de04007090807c776b0"}, + {file = "frozenlist-1.4.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:dca69045298ce5c11fd539682cff879cc1e664c245d1c64da929813e54241d11"}, + {file = "frozenlist-1.4.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:a06339f38e9ed3a64e4c4e43aec7f59084033647f908e4259d279a52d3757d09"}, + {file = "frozenlist-1.4.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:b7f2f9f912dca3934c1baec2e4585a674ef16fe00218d833856408c48d5beee7"}, + {file = "frozenlist-1.4.1-cp38-cp38-win32.whl", hash = "sha256:e7004be74cbb7d9f34553a5ce5fb08be14fb33bc86f332fb71cbe5216362a497"}, + {file = "frozenlist-1.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:5a7d70357e7cee13f470c7883a063aae5fe209a493c57d86eb7f5a6f910fae09"}, + {file = "frozenlist-1.4.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:bfa4a17e17ce9abf47a74ae02f32d014c5e9404b6d9ac7f729e01562bbee601e"}, + {file = "frozenlist-1.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b7e3ed87d4138356775346e6845cccbe66cd9e207f3cd11d2f0b9fd13681359d"}, + {file = "frozenlist-1.4.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c99169d4ff810155ca50b4da3b075cbde79752443117d89429595c2e8e37fed8"}, + {file = "frozenlist-1.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:edb678da49d9f72c9f6c609fbe41a5dfb9a9282f9e6a2253d5a91e0fc382d7c0"}, + {file = "frozenlist-1.4.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6db4667b187a6742b33afbbaf05a7bc551ffcf1ced0000a571aedbb4aa42fc7b"}, + {file = "frozenlist-1.4.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:55fdc093b5a3cb41d420884cdaf37a1e74c3c37a31f46e66286d9145d2063bd0"}, + {file = "frozenlist-1.4.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:82e8211d69a4f4bc360ea22cd6555f8e61a1bd211d1d5d39d3d228b48c83a897"}, + {file = "frozenlist-1.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89aa2c2eeb20957be2d950b85974b30a01a762f3308cd02bb15e1ad632e22dc7"}, + {file = "frozenlist-1.4.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9d3e0c25a2350080e9319724dede4f31f43a6c9779be48021a7f4ebde8b2d742"}, + {file = "frozenlist-1.4.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:7268252af60904bf52c26173cbadc3a071cece75f873705419c8681f24d3edea"}, + {file = "frozenlist-1.4.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:0c250a29735d4f15321007fb02865f0e6b6a41a6b88f1f523ca1596ab5f50bd5"}, + {file = "frozenlist-1.4.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:96ec70beabbd3b10e8bfe52616a13561e58fe84c0101dd031dc78f250d5128b9"}, + {file = "frozenlist-1.4.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:23b2d7679b73fe0e5a4560b672a39f98dfc6f60df63823b0a9970525325b95f6"}, + {file = "frozenlist-1.4.1-cp39-cp39-win32.whl", hash = "sha256:a7496bfe1da7fb1a4e1cc23bb67c58fab69311cc7d32b5a99c2007b4b2a0e932"}, + {file = "frozenlist-1.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:e6a20a581f9ce92d389a8c7d7c3dd47c81fd5d6e655c8dddf341e14aa48659d0"}, + {file = "frozenlist-1.4.1-py3-none-any.whl", hash = "sha256:04ced3e6a46b4cfffe20f9ae482818e34eba9b5fb0ce4056e4cc9b6e212d09b7"}, + {file = "frozenlist-1.4.1.tar.gz", hash = "sha256:c037a86e8513059a2613aaba4d817bb90b9d9b6b69aace3ce9c877e8c8ed402b"}, +] + +[[package]] +name = "genson" +version = "1.2.2" +description = "GenSON is a powerful, user-friendly JSON Schema generator." +optional = false +python-versions = "*" +files = [ + {file = "genson-1.2.2.tar.gz", hash = "sha256:8caf69aa10af7aee0e1a1351d1d06801f4696e005f06cedef438635384346a16"}, +] + +[[package]] +name = "graphql-core" +version = "3.2.3" +description = "GraphQL implementation for Python, a port of GraphQL.js, the JavaScript reference implementation for GraphQL." +optional = false +python-versions = ">=3.6,<4" +files = [ + {file = "graphql-core-3.2.3.tar.gz", hash = "sha256:06d2aad0ac723e35b1cb47885d3e5c45e956a53bc1b209a9fc5369007fe46676"}, + {file = "graphql_core-3.2.3-py3-none-any.whl", hash = "sha256:5766780452bd5ec8ba133f8bf287dc92713e3868ddd83aee4faab9fc3e303dc3"}, +] + +[[package]] +name = "idna" +version = "3.7" +description = "Internationalized Domain Names in Applications (IDNA)" +optional = false +python-versions = ">=3.5" +files = [ + {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, + {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, +] + +[[package]] +name = "iniconfig" +version = "2.0.0" +description = "brain-dead simple config-ini parsing" +optional = false +python-versions = ">=3.7" +files = [ + {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, + {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, +] + +[[package]] +name = "isodate" +version = "0.6.1" +description = "An ISO 8601 date/time/duration parser and formatter" +optional = false +python-versions = "*" +files = [ + {file = "isodate-0.6.1-py2.py3-none-any.whl", hash = "sha256:0751eece944162659049d35f4f549ed815792b38793f07cf73381c1c87cbed96"}, + {file = "isodate-0.6.1.tar.gz", hash = "sha256:48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9"}, +] + +[package.dependencies] +six = "*" + +[[package]] +name = "jinja2" +version = "3.1.3" +description = "A very fast and expressive template engine." +optional = false +python-versions = ">=3.7" +files = [ + {file = "Jinja2-3.1.3-py3-none-any.whl", hash = "sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa"}, + {file = "Jinja2-3.1.3.tar.gz", hash = "sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"}, +] + +[package.dependencies] +MarkupSafe = ">=2.0" + +[package.extras] +i18n = ["Babel (>=2.7)"] + +[[package]] +name = "jsonref" +version = "0.3.0" +description = "jsonref is a library for automatic dereferencing of JSON Reference objects for Python." +optional = false +python-versions = ">=3.3,<4.0" +files = [ + {file = "jsonref-0.3.0-py3-none-any.whl", hash = "sha256:9480ad1b500f7e795daeb0ef29f9c55ae3a9ab38fb8d6659b6f4868acb5a5bc8"}, + {file = "jsonref-0.3.0.tar.gz", hash = "sha256:68b330c6815dc0d490dbb3d65ccda265ddde9f7856fd2f3322f971d456ea7549"}, +] + +[[package]] +name = "jsonschema" +version = "3.2.0" +description = "An implementation of JSON Schema validation for Python" +optional = false +python-versions = "*" +files = [ + {file = "jsonschema-3.2.0-py2.py3-none-any.whl", hash = "sha256:4e5b3cf8216f577bee9ce139cbe72eca3ea4f292ec60928ff24758ce626cd163"}, + {file = "jsonschema-3.2.0.tar.gz", hash = "sha256:c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a"}, +] + +[package.dependencies] +attrs = ">=17.4.0" +pyrsistent = ">=0.14.0" +setuptools = "*" +six = ">=1.11.0" + +[package.extras] +format = ["idna", "jsonpointer (>1.13)", "rfc3987", "strict-rfc3339", "webcolors"] +format-nongpl = ["idna", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3986-validator (>0.1.0)", "webcolors"] + +[[package]] +name = "markupsafe" +version = "2.1.5" +description = "Safely add untrusted strings to HTML/XML markup." +optional = false +python-versions = ">=3.7" +files = [ + {file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a17a92de5231666cfbe003f0e4b9b3a7ae3afb1ec2845aadc2bacc93ff85febc"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:72b6be590cc35924b02c78ef34b467da4ba07e4e0f0454a2c5907f473fc50ce5"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e61659ba32cf2cf1481e575d0462554625196a1f2fc06a1c777d3f48e8865d46"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2174c595a0d73a3080ca3257b40096db99799265e1c27cc5a610743acd86d62f"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ae2ad8ae6ebee9d2d94b17fb62763125f3f374c25618198f40cbb8b525411900"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:075202fa5b72c86ad32dc7d0b56024ebdbcf2048c0ba09f1cde31bfdd57bcfff"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:598e3276b64aff0e7b3451b72e94fa3c238d452e7ddcd893c3ab324717456bad"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fce659a462a1be54d2ffcacea5e3ba2d74daa74f30f5f143fe0c58636e355fdd"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-win32.whl", hash = "sha256:d9fad5155d72433c921b782e58892377c44bd6252b5af2f67f16b194987338a4"}, + {file = "MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl", hash = "sha256:bf50cd79a75d181c9181df03572cdce0fbb75cc353bc350712073108cba98de5"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:629ddd2ca402ae6dbedfceeba9c46d5f7b2a61d9749597d4307f943ef198fc1f"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5b7b716f97b52c5a14bffdf688f971b2d5ef4029127f1ad7a513973cfd818df2"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6ec585f69cec0aa07d945b20805be741395e28ac1627333b1c5b0105962ffced"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b91c037585eba9095565a3556f611e3cbfaa42ca1e865f7b8015fe5c7336d5a5"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7502934a33b54030eaf1194c21c692a534196063db72176b0c4028e140f8f32c"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:0e397ac966fdf721b2c528cf028494e86172b4feba51d65f81ffd65c63798f3f"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c061bb86a71b42465156a3ee7bd58c8c2ceacdbeb95d05a99893e08b8467359a"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:3a57fdd7ce31c7ff06cdfbf31dafa96cc533c21e443d57f5b1ecc6cdc668ec7f"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-win32.whl", hash = "sha256:397081c1a0bfb5124355710fe79478cdbeb39626492b15d399526ae53422b906"}, + {file = "MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl", hash = "sha256:2b7c57a4dfc4f16f7142221afe5ba4e093e09e728ca65c51f5620c9aaeb9a617"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:8dec4936e9c3100156f8a2dc89c4b88d5c435175ff03413b443469c7c8c5f4d1"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:3c6b973f22eb18a789b1460b4b91bf04ae3f0c4234a0a6aa6b0a92f6f7b951d4"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac07bad82163452a6884fe8fa0963fb98c2346ba78d779ec06bd7a6262132aee"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f5dfb42c4604dddc8e4305050aa6deb084540643ed5804d7455b5df8fe16f5e5"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ea3d8a3d18833cf4304cd2fc9cbb1efe188ca9b5efef2bdac7adc20594a0e46b"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:d050b3361367a06d752db6ead6e7edeb0009be66bc3bae0ee9d97fb326badc2a"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:bec0a414d016ac1a18862a519e54b2fd0fc8bbfd6890376898a6c0891dd82e9f"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:58c98fee265677f63a4385256a6d7683ab1832f3ddd1e66fe948d5880c21a169"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-win32.whl", hash = "sha256:8590b4ae07a35970728874632fed7bd57b26b0102df2d2b233b6d9d82f6c62ad"}, + {file = "MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl", hash = "sha256:823b65d8706e32ad2df51ed89496147a42a2a6e01c13cfb6ffb8b1e92bc910bb"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c8b29db45f8fe46ad280a7294f5c3ec36dbac9491f2d1c17345be8e69cc5928f"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec6a563cff360b50eed26f13adc43e61bc0c04d94b8be985e6fb24b81f6dcfdf"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a549b9c31bec33820e885335b451286e2969a2d9e24879f83fe904a5ce59d70a"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f11aa001c540f62c6166c7726f71f7573b52c68c31f014c25cc7901deea0b52"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:7b2e5a267c855eea6b4283940daa6e88a285f5f2a67f2220203786dfa59b37e9"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:2d2d793e36e230fd32babe143b04cec8a8b3eb8a3122d2aceb4a371e6b09b8df"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ce409136744f6521e39fd8e2a24c53fa18ad67aa5bc7c2cf83645cce5b5c4e50"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-win32.whl", hash = "sha256:4096e9de5c6fdf43fb4f04c26fb114f61ef0bf2e5604b6ee3019d51b69e8c371"}, + {file = "MarkupSafe-2.1.5-cp37-cp37m-win_amd64.whl", hash = "sha256:4275d846e41ecefa46e2015117a9f491e57a71ddd59bbead77e904dc02b1bed2"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:656f7526c69fac7f600bd1f400991cc282b417d17539a1b228617081106feb4a"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:97cafb1f3cbcd3fd2b6fbfb99ae11cdb14deea0736fc2b0952ee177f2b813a46"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f3fbcb7ef1f16e48246f704ab79d79da8a46891e2da03f8783a5b6fa41a9532"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fa9db3f79de01457b03d4f01b34cf91bc0048eb2c3846ff26f66687c2f6d16ab"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffee1f21e5ef0d712f9033568f8344d5da8cc2869dbd08d87c84656e6a2d2f68"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:5dedb4db619ba5a2787a94d877bc8ffc0566f92a01c0ef214865e54ecc9ee5e0"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:30b600cf0a7ac9234b2638fbc0fb6158ba5bdcdf46aeb631ead21248b9affbc4"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8dd717634f5a044f860435c1d8c16a270ddf0ef8588d4887037c5028b859b0c3"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-win32.whl", hash = "sha256:daa4ee5a243f0f20d528d939d06670a298dd39b1ad5f8a72a4275124a7819eff"}, + {file = "MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl", hash = "sha256:619bc166c4f2de5caa5a633b8b7326fbe98e0ccbfacabd87268a2b15ff73a029"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7a68b554d356a91cce1236aa7682dc01df0edba8d043fd1ce607c49dd3c1edcf"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:db0b55e0f3cc0be60c1f19efdde9a637c32740486004f20d1cff53c3c0ece4d2"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e53af139f8579a6d5f7b76549125f0d94d7e630761a2111bc431fd820e163b8"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17b950fccb810b3293638215058e432159d2b71005c74371d784862b7e4683f3"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4c31f53cdae6ecfa91a77820e8b151dba54ab528ba65dfd235c80b086d68a465"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:bff1b4290a66b490a2f4719358c0cdcd9bafb6b8f061e45c7a2460866bf50c2e"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:bc1667f8b83f48511b94671e0e441401371dfd0f0a795c7daa4a3cd1dde55bea"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5049256f536511ee3f7e1b3f87d1d1209d327e818e6ae1365e8653d7e3abb6a6"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-win32.whl", hash = "sha256:00e046b6dd71aa03a41079792f8473dc494d564611a8f89bbbd7cb93295ebdcf"}, + {file = "MarkupSafe-2.1.5-cp39-cp39-win_amd64.whl", hash = "sha256:fa173ec60341d6bb97a89f5ea19c85c5643c1e7dedebc22f5181eb73573142c5"}, + {file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"}, +] + +[[package]] +name = "mock" +version = "5.1.0" +description = "Rolling backport of unittest.mock for all Pythons" +optional = false +python-versions = ">=3.6" +files = [ + {file = "mock-5.1.0-py3-none-any.whl", hash = "sha256:18c694e5ae8a208cdb3d2c20a993ca1a7b0efa258c247a1e565150f477f83744"}, + {file = "mock-5.1.0.tar.gz", hash = "sha256:5e96aad5ccda4718e0a229ed94b2024df75cc2d55575ba5762d31f5767b8767d"}, +] + +[package.extras] +build = ["blurb", "twine", "wheel"] +docs = ["sphinx"] +test = ["pytest", "pytest-cov"] + +[[package]] +name = "multidict" +version = "6.0.5" +description = "multidict implementation" +optional = false +python-versions = ">=3.7" +files = [ + {file = "multidict-6.0.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:228b644ae063c10e7f324ab1ab6b548bdf6f8b47f3ec234fef1093bc2735e5f9"}, + {file = "multidict-6.0.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:896ebdcf62683551312c30e20614305f53125750803b614e9e6ce74a96232604"}, + {file = "multidict-6.0.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:411bf8515f3be9813d06004cac41ccf7d1cd46dfe233705933dd163b60e37600"}, + {file = "multidict-6.0.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d147090048129ce3c453f0292e7697d333db95e52616b3793922945804a433c"}, + {file = "multidict-6.0.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:215ed703caf15f578dca76ee6f6b21b7603791ae090fbf1ef9d865571039ade5"}, + {file = "multidict-6.0.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c6390cf87ff6234643428991b7359b5f59cc15155695deb4eda5c777d2b880f"}, + {file = "multidict-6.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21fd81c4ebdb4f214161be351eb5bcf385426bf023041da2fd9e60681f3cebae"}, + {file = "multidict-6.0.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3cc2ad10255f903656017363cd59436f2111443a76f996584d1077e43ee51182"}, + {file = "multidict-6.0.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:6939c95381e003f54cd4c5516740faba40cf5ad3eeff460c3ad1d3e0ea2549bf"}, + {file = "multidict-6.0.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:220dd781e3f7af2c2c1053da9fa96d9cf3072ca58f057f4c5adaaa1cab8fc442"}, + {file = "multidict-6.0.5-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:766c8f7511df26d9f11cd3a8be623e59cca73d44643abab3f8c8c07620524e4a"}, + {file = "multidict-6.0.5-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:fe5d7785250541f7f5019ab9cba2c71169dc7d74d0f45253f8313f436458a4ef"}, + {file = "multidict-6.0.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c1c1496e73051918fcd4f58ff2e0f2f3066d1c76a0c6aeffd9b45d53243702cc"}, + {file = "multidict-6.0.5-cp310-cp310-win32.whl", hash = "sha256:7afcdd1fc07befad18ec4523a782cde4e93e0a2bf71239894b8d61ee578c1319"}, + {file = "multidict-6.0.5-cp310-cp310-win_amd64.whl", hash = "sha256:99f60d34c048c5c2fabc766108c103612344c46e35d4ed9ae0673d33c8fb26e8"}, + {file = "multidict-6.0.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:f285e862d2f153a70586579c15c44656f888806ed0e5b56b64489afe4a2dbfba"}, + {file = "multidict-6.0.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:53689bb4e102200a4fafa9de9c7c3c212ab40a7ab2c8e474491914d2305f187e"}, + {file = "multidict-6.0.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:612d1156111ae11d14afaf3a0669ebf6c170dbb735e510a7438ffe2369a847fd"}, + {file = "multidict-6.0.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7be7047bd08accdb7487737631d25735c9a04327911de89ff1b26b81745bd4e3"}, + {file = "multidict-6.0.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de170c7b4fe6859beb8926e84f7d7d6c693dfe8e27372ce3b76f01c46e489fcf"}, + {file = "multidict-6.0.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:04bde7a7b3de05732a4eb39c94574db1ec99abb56162d6c520ad26f83267de29"}, + {file = "multidict-6.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85f67aed7bb647f93e7520633d8f51d3cbc6ab96957c71272b286b2f30dc70ed"}, + {file = "multidict-6.0.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:425bf820055005bfc8aa9a0b99ccb52cc2f4070153e34b701acc98d201693733"}, + {file = "multidict-6.0.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d3eb1ceec286eba8220c26f3b0096cf189aea7057b6e7b7a2e60ed36b373b77f"}, + {file = "multidict-6.0.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:7901c05ead4b3fb75113fb1dd33eb1253c6d3ee37ce93305acd9d38e0b5f21a4"}, + {file = "multidict-6.0.5-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:e0e79d91e71b9867c73323a3444724d496c037e578a0e1755ae159ba14f4f3d1"}, + {file = "multidict-6.0.5-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:29bfeb0dff5cb5fdab2023a7a9947b3b4af63e9c47cae2a10ad58394b517fddc"}, + {file = "multidict-6.0.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e030047e85cbcedbfc073f71836d62dd5dadfbe7531cae27789ff66bc551bd5e"}, + {file = "multidict-6.0.5-cp311-cp311-win32.whl", hash = "sha256:2f4848aa3baa109e6ab81fe2006c77ed4d3cd1e0ac2c1fbddb7b1277c168788c"}, + {file = "multidict-6.0.5-cp311-cp311-win_amd64.whl", hash = "sha256:2faa5ae9376faba05f630d7e5e6be05be22913782b927b19d12b8145968a85ea"}, + {file = "multidict-6.0.5-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:51d035609b86722963404f711db441cf7134f1889107fb171a970c9701f92e1e"}, + {file = "multidict-6.0.5-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:cbebcd5bcaf1eaf302617c114aa67569dd3f090dd0ce8ba9e35e9985b41ac35b"}, + {file = "multidict-6.0.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2ffc42c922dbfddb4a4c3b438eb056828719f07608af27d163191cb3e3aa6cc5"}, + {file = "multidict-6.0.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ceb3b7e6a0135e092de86110c5a74e46bda4bd4fbfeeb3a3bcec79c0f861e450"}, + {file = "multidict-6.0.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:79660376075cfd4b2c80f295528aa6beb2058fd289f4c9252f986751a4cd0496"}, + {file = "multidict-6.0.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e4428b29611e989719874670fd152b6625500ad6c686d464e99f5aaeeaca175a"}, + {file = "multidict-6.0.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d84a5c3a5f7ce6db1f999fb9438f686bc2e09d38143f2d93d8406ed2dd6b9226"}, + {file = "multidict-6.0.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:76c0de87358b192de7ea9649beb392f107dcad9ad27276324c24c91774ca5271"}, + {file = "multidict-6.0.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:79a6d2ba910adb2cbafc95dad936f8b9386e77c84c35bc0add315b856d7c3abb"}, + {file = "multidict-6.0.5-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:92d16a3e275e38293623ebf639c471d3e03bb20b8ebb845237e0d3664914caef"}, + {file = "multidict-6.0.5-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:fb616be3538599e797a2017cccca78e354c767165e8858ab5116813146041a24"}, + {file = "multidict-6.0.5-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:14c2976aa9038c2629efa2c148022ed5eb4cb939e15ec7aace7ca932f48f9ba6"}, + {file = "multidict-6.0.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:435a0984199d81ca178b9ae2c26ec3d49692d20ee29bc4c11a2a8d4514c67eda"}, + {file = "multidict-6.0.5-cp312-cp312-win32.whl", hash = "sha256:9fe7b0653ba3d9d65cbe7698cca585bf0f8c83dbbcc710db9c90f478e175f2d5"}, + {file = "multidict-6.0.5-cp312-cp312-win_amd64.whl", hash = "sha256:01265f5e40f5a17f8241d52656ed27192be03bfa8764d88e8220141d1e4b3556"}, + {file = "multidict-6.0.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:19fe01cea168585ba0f678cad6f58133db2aa14eccaf22f88e4a6dccadfad8b3"}, + {file = "multidict-6.0.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6bf7a982604375a8d49b6cc1b781c1747f243d91b81035a9b43a2126c04766f5"}, + {file = "multidict-6.0.5-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:107c0cdefe028703fb5dafe640a409cb146d44a6ae201e55b35a4af8e95457dd"}, + {file = "multidict-6.0.5-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:403c0911cd5d5791605808b942c88a8155c2592e05332d2bf78f18697a5fa15e"}, + {file = "multidict-6.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aeaf541ddbad8311a87dd695ed9642401131ea39ad7bc8cf3ef3967fd093b626"}, + {file = "multidict-6.0.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e4972624066095e52b569e02b5ca97dbd7a7ddd4294bf4e7247d52635630dd83"}, + {file = "multidict-6.0.5-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:d946b0a9eb8aaa590df1fe082cee553ceab173e6cb5b03239716338629c50c7a"}, + {file = "multidict-6.0.5-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:b55358304d7a73d7bdf5de62494aaf70bd33015831ffd98bc498b433dfe5b10c"}, + {file = "multidict-6.0.5-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:a3145cb08d8625b2d3fee1b2d596a8766352979c9bffe5d7833e0503d0f0b5e5"}, + {file = "multidict-6.0.5-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:d65f25da8e248202bd47445cec78e0025c0fe7582b23ec69c3b27a640dd7a8e3"}, + {file = "multidict-6.0.5-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:c9bf56195c6bbd293340ea82eafd0071cb3d450c703d2c93afb89f93b8386ccc"}, + {file = "multidict-6.0.5-cp37-cp37m-win32.whl", hash = "sha256:69db76c09796b313331bb7048229e3bee7928eb62bab5e071e9f7fcc4879caee"}, + {file = "multidict-6.0.5-cp37-cp37m-win_amd64.whl", hash = "sha256:fce28b3c8a81b6b36dfac9feb1de115bab619b3c13905b419ec71d03a3fc1423"}, + {file = "multidict-6.0.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:76f067f5121dcecf0d63a67f29080b26c43c71a98b10c701b0677e4a065fbd54"}, + {file = "multidict-6.0.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b82cc8ace10ab5bd93235dfaab2021c70637005e1ac787031f4d1da63d493c1d"}, + {file = "multidict-6.0.5-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5cb241881eefd96b46f89b1a056187ea8e9ba14ab88ba632e68d7a2ecb7aadf7"}, + {file = "multidict-6.0.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8e94e6912639a02ce173341ff62cc1201232ab86b8a8fcc05572741a5dc7d93"}, + {file = "multidict-6.0.5-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:09a892e4a9fb47331da06948690ae38eaa2426de97b4ccbfafbdcbe5c8f37ff8"}, + {file = "multidict-6.0.5-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:55205d03e8a598cfc688c71ca8ea5f66447164efff8869517f175ea632c7cb7b"}, + {file = "multidict-6.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:37b15024f864916b4951adb95d3a80c9431299080341ab9544ed148091b53f50"}, + {file = "multidict-6.0.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f2a1dee728b52b33eebff5072817176c172050d44d67befd681609b4746e1c2e"}, + {file = "multidict-6.0.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:edd08e6f2f1a390bf137080507e44ccc086353c8e98c657e666c017718561b89"}, + {file = "multidict-6.0.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:60d698e8179a42ec85172d12f50b1668254628425a6bd611aba022257cac1386"}, + {file = "multidict-6.0.5-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:3d25f19500588cbc47dc19081d78131c32637c25804df8414463ec908631e453"}, + {file = "multidict-6.0.5-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:4cc0ef8b962ac7a5e62b9e826bd0cd5040e7d401bc45a6835910ed699037a461"}, + {file = "multidict-6.0.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:eca2e9d0cc5a889850e9bbd68e98314ada174ff6ccd1129500103df7a94a7a44"}, + {file = "multidict-6.0.5-cp38-cp38-win32.whl", hash = "sha256:4a6a4f196f08c58c59e0b8ef8ec441d12aee4125a7d4f4fef000ccb22f8d7241"}, + {file = "multidict-6.0.5-cp38-cp38-win_amd64.whl", hash = "sha256:0275e35209c27a3f7951e1ce7aaf93ce0d163b28948444bec61dd7badc6d3f8c"}, + {file = "multidict-6.0.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:e7be68734bd8c9a513f2b0cfd508802d6609da068f40dc57d4e3494cefc92929"}, + {file = "multidict-6.0.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:1d9ea7a7e779d7a3561aade7d596649fbecfa5c08a7674b11b423783217933f9"}, + {file = "multidict-6.0.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ea1456df2a27c73ce51120fa2f519f1bea2f4a03a917f4a43c8707cf4cbbae1a"}, + {file = "multidict-6.0.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cf590b134eb70629e350691ecca88eac3e3b8b3c86992042fb82e3cb1830d5e1"}, + {file = "multidict-6.0.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5c0631926c4f58e9a5ccce555ad7747d9a9f8b10619621f22f9635f069f6233e"}, + {file = "multidict-6.0.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dce1c6912ab9ff5f179eaf6efe7365c1f425ed690b03341911bf4939ef2f3046"}, + {file = "multidict-6.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0868d64af83169e4d4152ec612637a543f7a336e4a307b119e98042e852ad9c"}, + {file = "multidict-6.0.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:141b43360bfd3bdd75f15ed811850763555a251e38b2405967f8e25fb43f7d40"}, + {file = "multidict-6.0.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:7df704ca8cf4a073334e0427ae2345323613e4df18cc224f647f251e5e75a527"}, + {file = "multidict-6.0.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:6214c5a5571802c33f80e6c84713b2c79e024995b9c5897f794b43e714daeec9"}, + {file = "multidict-6.0.5-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:cd6c8fca38178e12c00418de737aef1261576bd1b6e8c6134d3e729a4e858b38"}, + {file = "multidict-6.0.5-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:e02021f87a5b6932fa6ce916ca004c4d441509d33bbdbeca70d05dff5e9d2479"}, + {file = "multidict-6.0.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ebd8d160f91a764652d3e51ce0d2956b38efe37c9231cd82cfc0bed2e40b581c"}, + {file = "multidict-6.0.5-cp39-cp39-win32.whl", hash = "sha256:04da1bb8c8dbadf2a18a452639771951c662c5ad03aefe4884775454be322c9b"}, + {file = "multidict-6.0.5-cp39-cp39-win_amd64.whl", hash = "sha256:d6f6d4f185481c9669b9447bf9d9cf3b95a0e9df9d169bbc17e363b7d5487755"}, + {file = "multidict-6.0.5-py3-none-any.whl", hash = "sha256:0d63c74e3d7ab26de115c49bffc92cc77ed23395303d496eae515d4204a625e7"}, + {file = "multidict-6.0.5.tar.gz", hash = "sha256:f7e301075edaf50500f0b341543c41194d8df3ae5caf4702f2095f3ca73dd8da"}, +] + +[[package]] +name = "mypy" +version = "1.10.0" +description = "Optional static typing for Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "mypy-1.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:da1cbf08fb3b851ab3b9523a884c232774008267b1f83371ace57f412fe308c2"}, + {file = "mypy-1.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:12b6bfc1b1a66095ab413160a6e520e1dc076a28f3e22f7fb25ba3b000b4ef99"}, + {file = "mypy-1.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e36fb078cce9904c7989b9693e41cb9711e0600139ce3970c6ef814b6ebc2b2"}, + {file = "mypy-1.10.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:2b0695d605ddcd3eb2f736cd8b4e388288c21e7de85001e9f85df9187f2b50f9"}, + {file = "mypy-1.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:cd777b780312ddb135bceb9bc8722a73ec95e042f911cc279e2ec3c667076051"}, + {file = "mypy-1.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3be66771aa5c97602f382230165b856c231d1277c511c9a8dd058be4784472e1"}, + {file = "mypy-1.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8b2cbaca148d0754a54d44121b5825ae71868c7592a53b7292eeb0f3fdae95ee"}, + {file = "mypy-1.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ec404a7cbe9fc0e92cb0e67f55ce0c025014e26d33e54d9e506a0f2d07fe5de"}, + {file = "mypy-1.10.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e22e1527dc3d4aa94311d246b59e47f6455b8729f4968765ac1eacf9a4760bc7"}, + {file = "mypy-1.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:a87dbfa85971e8d59c9cc1fcf534efe664d8949e4c0b6b44e8ca548e746a8d53"}, + {file = "mypy-1.10.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:a781f6ad4bab20eef8b65174a57e5203f4be627b46291f4589879bf4e257b97b"}, + {file = "mypy-1.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b808e12113505b97d9023b0b5e0c0705a90571c6feefc6f215c1df9381256e30"}, + {file = "mypy-1.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f55583b12156c399dce2df7d16f8a5095291354f1e839c252ec6c0611e86e2e"}, + {file = "mypy-1.10.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:4cf18f9d0efa1b16478c4c129eabec36148032575391095f73cae2e722fcf9d5"}, + {file = "mypy-1.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:bc6ac273b23c6b82da3bb25f4136c4fd42665f17f2cd850771cb600bdd2ebeda"}, + {file = "mypy-1.10.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9fd50226364cd2737351c79807775136b0abe084433b55b2e29181a4c3c878c0"}, + {file = "mypy-1.10.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:f90cff89eea89273727d8783fef5d4a934be2fdca11b47def50cf5d311aff727"}, + {file = "mypy-1.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fcfc70599efde5c67862a07a1aaf50e55bce629ace26bb19dc17cece5dd31ca4"}, + {file = "mypy-1.10.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:075cbf81f3e134eadaf247de187bd604748171d6b79736fa9b6c9685b4083061"}, + {file = "mypy-1.10.0-cp38-cp38-win_amd64.whl", hash = "sha256:3f298531bca95ff615b6e9f2fc0333aae27fa48052903a0ac90215021cdcfa4f"}, + {file = "mypy-1.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fa7ef5244615a2523b56c034becde4e9e3f9b034854c93639adb667ec9ec2976"}, + {file = "mypy-1.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3236a4c8f535a0631f85f5fcdffba71c7feeef76a6002fcba7c1a8e57c8be1ec"}, + {file = "mypy-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4a2b5cdbb5dd35aa08ea9114436e0d79aceb2f38e32c21684dcf8e24e1e92821"}, + {file = "mypy-1.10.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:92f93b21c0fe73dc00abf91022234c79d793318b8a96faac147cd579c1671746"}, + {file = "mypy-1.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:28d0e038361b45f099cc086d9dd99c15ff14d0188f44ac883010e172ce86c38a"}, + {file = "mypy-1.10.0-py3-none-any.whl", hash = "sha256:f8c083976eb530019175aabadb60921e73b4f45736760826aa1689dda8208aee"}, + {file = "mypy-1.10.0.tar.gz", hash = "sha256:3d087fcbec056c4ee34974da493a826ce316947485cef3901f511848e687c131"}, +] + +[package.dependencies] +mypy-extensions = ">=1.0.0" +typing-extensions = ">=4.1.0" + +[package.extras] +dmypy = ["psutil (>=4.0)"] +install-types = ["pip"] +mypyc = ["setuptools (>=50)"] +reports = ["lxml"] + +[[package]] +name = "mypy-extensions" +version = "1.0.0" +description = "Type system extensions for programs checked with the mypy type checker." +optional = false +python-versions = ">=3.5" +files = [ + {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, + {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, +] + +[[package]] +name = "orjson" +version = "3.10.1" +description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy" +optional = false +python-versions = ">=3.8" +files = [ + {file = "orjson-3.10.1-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:8ec2fc456d53ea4a47768f622bb709be68acd455b0c6be57e91462259741c4f3"}, + {file = "orjson-3.10.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e900863691d327758be14e2a491931605bd0aded3a21beb6ce133889830b659"}, + {file = "orjson-3.10.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ab6ecbd6fe57785ebc86ee49e183f37d45f91b46fc601380c67c5c5e9c0014a2"}, + {file = "orjson-3.10.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8af7c68b01b876335cccfb4eee0beef2b5b6eae1945d46a09a7c24c9faac7a77"}, + {file = "orjson-3.10.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:915abfb2e528677b488a06eba173e9d7706a20fdfe9cdb15890b74ef9791b85e"}, + {file = "orjson-3.10.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fe3fd4a36eff9c63d25503b439531d21828da9def0059c4f472e3845a081aa0b"}, + {file = "orjson-3.10.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d229564e72cfc062e6481a91977a5165c5a0fdce11ddc19ced8471847a67c517"}, + {file = "orjson-3.10.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:9e00495b18304173ac843b5c5fbea7b6f7968564d0d49bef06bfaeca4b656f4e"}, + {file = "orjson-3.10.1-cp310-none-win32.whl", hash = "sha256:fd78ec55179545c108174ba19c1795ced548d6cac4d80d014163033c047ca4ea"}, + {file = "orjson-3.10.1-cp310-none-win_amd64.whl", hash = "sha256:50ca42b40d5a442a9e22eece8cf42ba3d7cd4cd0f2f20184b4d7682894f05eec"}, + {file = "orjson-3.10.1-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:b345a3d6953628df2f42502297f6c1e1b475cfbf6268013c94c5ac80e8abc04c"}, + {file = "orjson-3.10.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:caa7395ef51af4190d2c70a364e2f42138e0e5fcb4bc08bc9b76997659b27dab"}, + {file = "orjson-3.10.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b01d701decd75ae092e5f36f7b88a1e7a1d3bb7c9b9d7694de850fb155578d5a"}, + {file = "orjson-3.10.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b5028981ba393f443d8fed9049211b979cadc9d0afecf162832f5a5b152c6297"}, + {file = "orjson-3.10.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:31ff6a222ea362b87bf21ff619598a4dc1106aaafaea32b1c4876d692891ec27"}, + {file = "orjson-3.10.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e852a83d7803d3406135fb7a57cf0c1e4a3e73bac80ec621bd32f01c653849c5"}, + {file = "orjson-3.10.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2567bc928ed3c3fcd90998009e8835de7c7dc59aabcf764b8374d36044864f3b"}, + {file = "orjson-3.10.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4ce98cac60b7bb56457bdd2ed7f0d5d7f242d291fdc0ca566c83fa721b52e92d"}, + {file = "orjson-3.10.1-cp311-none-win32.whl", hash = "sha256:813905e111318acb356bb8029014c77b4c647f8b03f314e7b475bd9ce6d1a8ce"}, + {file = "orjson-3.10.1-cp311-none-win_amd64.whl", hash = "sha256:03a3ca0b3ed52bed1a869163a4284e8a7b0be6a0359d521e467cdef7e8e8a3ee"}, + {file = "orjson-3.10.1-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:f02c06cee680b1b3a8727ec26c36f4b3c0c9e2b26339d64471034d16f74f4ef5"}, + {file = "orjson-3.10.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b1aa2f127ac546e123283e437cc90b5ecce754a22306c7700b11035dad4ccf85"}, + {file = "orjson-3.10.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2cf29b4b74f585225196944dffdebd549ad2af6da9e80db7115984103fb18a96"}, + {file = "orjson-3.10.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a1b130c20b116f413caf6059c651ad32215c28500dce9cd029a334a2d84aa66f"}, + {file = "orjson-3.10.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d31f9a709e6114492136e87c7c6da5e21dfedebefa03af85f3ad72656c493ae9"}, + {file = "orjson-3.10.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d1d169461726f271ab31633cf0e7e7353417e16fb69256a4f8ecb3246a78d6e"}, + {file = "orjson-3.10.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:57c294d73825c6b7f30d11c9e5900cfec9a814893af7f14efbe06b8d0f25fba9"}, + {file = "orjson-3.10.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:d7f11dbacfa9265ec76b4019efffabaabba7a7ebf14078f6b4df9b51c3c9a8ea"}, + {file = "orjson-3.10.1-cp312-none-win32.whl", hash = "sha256:d89e5ed68593226c31c76ab4de3e0d35c760bfd3fbf0a74c4b2be1383a1bf123"}, + {file = "orjson-3.10.1-cp312-none-win_amd64.whl", hash = "sha256:aa76c4fe147fd162107ce1692c39f7189180cfd3a27cfbc2ab5643422812da8e"}, + {file = "orjson-3.10.1-cp38-cp38-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a2c6a85c92d0e494c1ae117befc93cf8e7bca2075f7fe52e32698da650b2c6d1"}, + {file = "orjson-3.10.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9813f43da955197d36a7365eb99bed42b83680801729ab2487fef305b9ced866"}, + {file = "orjson-3.10.1-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ec917b768e2b34b7084cb6c68941f6de5812cc26c6f1a9fecb728e36a3deb9e8"}, + {file = "orjson-3.10.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5252146b3172d75c8a6d27ebca59c9ee066ffc5a277050ccec24821e68742fdf"}, + {file = "orjson-3.10.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:536429bb02791a199d976118b95014ad66f74c58b7644d21061c54ad284e00f4"}, + {file = "orjson-3.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7dfed3c3e9b9199fb9c3355b9c7e4649b65f639e50ddf50efdf86b45c6de04b5"}, + {file = "orjson-3.10.1-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:2b230ec35f188f003f5b543644ae486b2998f6afa74ee3a98fc8ed2e45960afc"}, + {file = "orjson-3.10.1-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:01234249ba19c6ab1eb0b8be89f13ea21218b2d72d496ef085cfd37e1bae9dd8"}, + {file = "orjson-3.10.1-cp38-none-win32.whl", hash = "sha256:8a884fbf81a3cc22d264ba780920d4885442144e6acaa1411921260416ac9a54"}, + {file = "orjson-3.10.1-cp38-none-win_amd64.whl", hash = "sha256:dab5f802d52b182163f307d2b1f727d30b1762e1923c64c9c56dd853f9671a49"}, + {file = "orjson-3.10.1-cp39-cp39-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a51fd55d4486bc5293b7a400f9acd55a2dc3b5fc8420d5ffe9b1d6bb1a056a5e"}, + {file = "orjson-3.10.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:53521542a6db1411b3bfa1b24ddce18605a3abdc95a28a67b33f9145f26aa8f2"}, + {file = "orjson-3.10.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:27d610df96ac18ace4931411d489637d20ab3b8f63562b0531bba16011998db0"}, + {file = "orjson-3.10.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:79244b1456e5846d44e9846534bd9e3206712936d026ea8e6a55a7374d2c0694"}, + {file = "orjson-3.10.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d751efaa8a49ae15cbebdda747a62a9ae521126e396fda8143858419f3b03610"}, + {file = "orjson-3.10.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:27ff69c620a4fff33267df70cfd21e0097c2a14216e72943bd5414943e376d77"}, + {file = "orjson-3.10.1-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:ebc58693464146506fde0c4eb1216ff6d4e40213e61f7d40e2f0dde9b2f21650"}, + {file = "orjson-3.10.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:5be608c3972ed902e0143a5b8776d81ac1059436915d42defe5c6ae97b3137a4"}, + {file = "orjson-3.10.1-cp39-none-win32.whl", hash = "sha256:4ae10753e7511d359405aadcbf96556c86e9dbf3a948d26c2c9f9a150c52b091"}, + {file = "orjson-3.10.1-cp39-none-win_amd64.whl", hash = "sha256:fb5bc4caa2c192077fdb02dce4e5ef8639e7f20bec4e3a834346693907362932"}, + {file = "orjson-3.10.1.tar.gz", hash = "sha256:a883b28d73370df23ed995c466b4f6c708c1f7a9bdc400fe89165c96c7603204"}, +] + +[[package]] +name = "packaging" +version = "24.0" +description = "Core utilities for Python packages" +optional = false +python-versions = ">=3.7" +files = [ + {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"}, + {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"}, +] + +[[package]] +name = "pendulum" +version = "3.0.0" +description = "Python datetimes made easy" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pendulum-3.0.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2cf9e53ef11668e07f73190c805dbdf07a1939c3298b78d5a9203a86775d1bfd"}, + {file = "pendulum-3.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fb551b9b5e6059377889d2d878d940fd0bbb80ae4810543db18e6f77b02c5ef6"}, + {file = "pendulum-3.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6c58227ac260d5b01fc1025176d7b31858c9f62595737f350d22124a9a3ad82d"}, + {file = "pendulum-3.0.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:60fb6f415fea93a11c52578eaa10594568a6716602be8430b167eb0d730f3332"}, + {file = "pendulum-3.0.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b69f6b4dbcb86f2c2fe696ba991e67347bcf87fe601362a1aba6431454b46bde"}, + {file = "pendulum-3.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:138afa9c373ee450ede206db5a5e9004fd3011b3c6bbe1e57015395cd076a09f"}, + {file = "pendulum-3.0.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:83d9031f39c6da9677164241fd0d37fbfc9dc8ade7043b5d6d62f56e81af8ad2"}, + {file = "pendulum-3.0.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:0c2308af4033fa534f089595bcd40a95a39988ce4059ccd3dc6acb9ef14ca44a"}, + {file = "pendulum-3.0.0-cp310-none-win_amd64.whl", hash = "sha256:9a59637cdb8462bdf2dbcb9d389518c0263799189d773ad5c11db6b13064fa79"}, + {file = "pendulum-3.0.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:3725245c0352c95d6ca297193192020d1b0c0f83d5ee6bb09964edc2b5a2d508"}, + {file = "pendulum-3.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6c035f03a3e565ed132927e2c1b691de0dbf4eb53b02a5a3c5a97e1a64e17bec"}, + {file = "pendulum-3.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:597e66e63cbd68dd6d58ac46cb7a92363d2088d37ccde2dae4332ef23e95cd00"}, + {file = "pendulum-3.0.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:99a0f8172e19f3f0c0e4ace0ad1595134d5243cf75985dc2233e8f9e8de263ca"}, + {file = "pendulum-3.0.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:77d8839e20f54706aed425bec82a83b4aec74db07f26acd039905d1237a5e1d4"}, + {file = "pendulum-3.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afde30e8146292b059020fbc8b6f8fd4a60ae7c5e6f0afef937bbb24880bdf01"}, + {file = "pendulum-3.0.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:660434a6fcf6303c4efd36713ca9212c753140107ee169a3fc6c49c4711c2a05"}, + {file = "pendulum-3.0.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:dee9e5a48c6999dc1106eb7eea3e3a50e98a50651b72c08a87ee2154e544b33e"}, + {file = "pendulum-3.0.0-cp311-none-win_amd64.whl", hash = "sha256:d4cdecde90aec2d67cebe4042fd2a87a4441cc02152ed7ed8fb3ebb110b94ec4"}, + {file = "pendulum-3.0.0-cp311-none-win_arm64.whl", hash = "sha256:773c3bc4ddda2dda9f1b9d51fe06762f9200f3293d75c4660c19b2614b991d83"}, + {file = "pendulum-3.0.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:409e64e41418c49f973d43a28afe5df1df4f1dd87c41c7c90f1a63f61ae0f1f7"}, + {file = "pendulum-3.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a38ad2121c5ec7c4c190c7334e789c3b4624798859156b138fcc4d92295835dc"}, + {file = "pendulum-3.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fde4d0b2024b9785f66b7f30ed59281bd60d63d9213cda0eb0910ead777f6d37"}, + {file = "pendulum-3.0.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4b2c5675769fb6d4c11238132962939b960fcb365436b6d623c5864287faa319"}, + {file = "pendulum-3.0.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8af95e03e066826f0f4c65811cbee1b3123d4a45a1c3a2b4fc23c4b0dff893b5"}, + {file = "pendulum-3.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2165a8f33cb15e06c67070b8afc87a62b85c5a273e3aaa6bc9d15c93a4920d6f"}, + {file = "pendulum-3.0.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:ad5e65b874b5e56bd942546ea7ba9dd1d6a25121db1c517700f1c9de91b28518"}, + {file = "pendulum-3.0.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:17fe4b2c844bbf5f0ece69cfd959fa02957c61317b2161763950d88fed8e13b9"}, + {file = "pendulum-3.0.0-cp312-none-win_amd64.whl", hash = "sha256:78f8f4e7efe5066aca24a7a57511b9c2119f5c2b5eb81c46ff9222ce11e0a7a5"}, + {file = "pendulum-3.0.0-cp312-none-win_arm64.whl", hash = "sha256:28f49d8d1e32aae9c284a90b6bb3873eee15ec6e1d9042edd611b22a94ac462f"}, + {file = "pendulum-3.0.0-cp37-cp37m-macosx_10_12_x86_64.whl", hash = "sha256:d4e2512f4e1a4670284a153b214db9719eb5d14ac55ada5b76cbdb8c5c00399d"}, + {file = "pendulum-3.0.0-cp37-cp37m-macosx_11_0_arm64.whl", hash = "sha256:3d897eb50883cc58d9b92f6405245f84b9286cd2de6e8694cb9ea5cb15195a32"}, + {file = "pendulum-3.0.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e169cc2ca419517f397811bbe4589cf3cd13fca6dc38bb352ba15ea90739ebb"}, + {file = "pendulum-3.0.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f17c3084a4524ebefd9255513692f7e7360e23c8853dc6f10c64cc184e1217ab"}, + {file = "pendulum-3.0.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:826d6e258052715f64d05ae0fc9040c0151e6a87aae7c109ba9a0ed930ce4000"}, + {file = "pendulum-3.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2aae97087872ef152a0c40e06100b3665d8cb86b59bc8471ca7c26132fccd0f"}, + {file = "pendulum-3.0.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:ac65eeec2250d03106b5e81284ad47f0d417ca299a45e89ccc69e36130ca8bc7"}, + {file = "pendulum-3.0.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:a5346d08f3f4a6e9e672187faa179c7bf9227897081d7121866358af369f44f9"}, + {file = "pendulum-3.0.0-cp37-none-win_amd64.whl", hash = "sha256:235d64e87946d8f95c796af34818c76e0f88c94d624c268693c85b723b698aa9"}, + {file = "pendulum-3.0.0-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:6a881d9c2a7f85bc9adafcfe671df5207f51f5715ae61f5d838b77a1356e8b7b"}, + {file = "pendulum-3.0.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:d7762d2076b9b1cb718a6631ad6c16c23fc3fac76cbb8c454e81e80be98daa34"}, + {file = "pendulum-3.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e8e36a8130819d97a479a0e7bf379b66b3b1b520e5dc46bd7eb14634338df8c"}, + {file = "pendulum-3.0.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7dc843253ac373358ffc0711960e2dd5b94ab67530a3e204d85c6e8cb2c5fa10"}, + {file = "pendulum-3.0.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0a78ad3635d609ceb1e97d6aedef6a6a6f93433ddb2312888e668365908c7120"}, + {file = "pendulum-3.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b30a137e9e0d1f751e60e67d11fc67781a572db76b2296f7b4d44554761049d6"}, + {file = "pendulum-3.0.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:c95984037987f4a457bb760455d9ca80467be792236b69d0084f228a8ada0162"}, + {file = "pendulum-3.0.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:d29c6e578fe0f893766c0d286adbf0b3c726a4e2341eba0917ec79c50274ec16"}, + {file = "pendulum-3.0.0-cp38-none-win_amd64.whl", hash = "sha256:deaba8e16dbfcb3d7a6b5fabdd5a38b7c982809567479987b9c89572df62e027"}, + {file = "pendulum-3.0.0-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:b11aceea5b20b4b5382962b321dbc354af0defe35daa84e9ff3aae3c230df694"}, + {file = "pendulum-3.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a90d4d504e82ad236afac9adca4d6a19e4865f717034fc69bafb112c320dcc8f"}, + {file = "pendulum-3.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:825799c6b66e3734227756fa746cc34b3549c48693325b8b9f823cb7d21b19ac"}, + {file = "pendulum-3.0.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ad769e98dc07972e24afe0cff8d365cb6f0ebc7e65620aa1976fcfbcadc4c6f3"}, + {file = "pendulum-3.0.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a6fc26907eb5fb8cc6188cc620bc2075a6c534d981a2f045daa5f79dfe50d512"}, + {file = "pendulum-3.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c717eab1b6d898c00a3e0fa7781d615b5c5136bbd40abe82be100bb06df7a56"}, + {file = "pendulum-3.0.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:3ddd1d66d1a714ce43acfe337190be055cdc221d911fc886d5a3aae28e14b76d"}, + {file = "pendulum-3.0.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:822172853d7a9cf6da95d7b66a16c7160cb99ae6df55d44373888181d7a06edc"}, + {file = "pendulum-3.0.0-cp39-none-win_amd64.whl", hash = "sha256:840de1b49cf1ec54c225a2a6f4f0784d50bd47f68e41dc005b7f67c7d5b5f3ae"}, + {file = "pendulum-3.0.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3b1f74d1e6ffe5d01d6023870e2ce5c2191486928823196f8575dcc786e107b1"}, + {file = "pendulum-3.0.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:729e9f93756a2cdfa77d0fc82068346e9731c7e884097160603872686e570f07"}, + {file = "pendulum-3.0.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e586acc0b450cd21cbf0db6bae386237011b75260a3adceddc4be15334689a9a"}, + {file = "pendulum-3.0.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22e7944ffc1f0099a79ff468ee9630c73f8c7835cd76fdb57ef7320e6a409df4"}, + {file = "pendulum-3.0.0-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:fa30af36bd8e50686846bdace37cf6707bdd044e5cb6e1109acbad3277232e04"}, + {file = "pendulum-3.0.0-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:440215347b11914ae707981b9a57ab9c7b6983ab0babde07063c6ee75c0dc6e7"}, + {file = "pendulum-3.0.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:314c4038dc5e6a52991570f50edb2f08c339debdf8cea68ac355b32c4174e820"}, + {file = "pendulum-3.0.0-pp37-pypy37_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5acb1d386337415f74f4d1955c4ce8d0201978c162927d07df8eb0692b2d8533"}, + {file = "pendulum-3.0.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a789e12fbdefaffb7b8ac67f9d8f22ba17a3050ceaaa635cd1cc4645773a4b1e"}, + {file = "pendulum-3.0.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:860aa9b8a888e5913bd70d819306749e5eb488e6b99cd6c47beb701b22bdecf5"}, + {file = "pendulum-3.0.0-pp37-pypy37_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:5ebc65ea033ef0281368217fbf59f5cb05b338ac4dd23d60959c7afcd79a60a0"}, + {file = "pendulum-3.0.0-pp37-pypy37_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:d9fef18ab0386ef6a9ac7bad7e43ded42c83ff7ad412f950633854f90d59afa8"}, + {file = "pendulum-3.0.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:1c134ba2f0571d0b68b83f6972e2307a55a5a849e7dac8505c715c531d2a8795"}, + {file = "pendulum-3.0.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:385680812e7e18af200bb9b4a49777418c32422d05ad5a8eb85144c4a285907b"}, + {file = "pendulum-3.0.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9eec91cd87c59fb32ec49eb722f375bd58f4be790cae11c1b70fac3ee4f00da0"}, + {file = "pendulum-3.0.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4386bffeca23c4b69ad50a36211f75b35a4deb6210bdca112ac3043deb7e494a"}, + {file = "pendulum-3.0.0-pp38-pypy38_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:dfbcf1661d7146d7698da4b86e7f04814221081e9fe154183e34f4c5f5fa3bf8"}, + {file = "pendulum-3.0.0-pp38-pypy38_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:04a1094a5aa1daa34a6b57c865b25f691848c61583fb22722a4df5699f6bf74c"}, + {file = "pendulum-3.0.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:5b0ec85b9045bd49dd3a3493a5e7ddfd31c36a2a60da387c419fa04abcaecb23"}, + {file = "pendulum-3.0.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:0a15b90129765b705eb2039062a6daf4d22c4e28d1a54fa260892e8c3ae6e157"}, + {file = "pendulum-3.0.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:bb8f6d7acd67a67d6fedd361ad2958ff0539445ef51cbe8cd288db4306503cd0"}, + {file = "pendulum-3.0.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fd69b15374bef7e4b4440612915315cc42e8575fcda2a3d7586a0d88192d0c88"}, + {file = "pendulum-3.0.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dc00f8110db6898360c53c812872662e077eaf9c75515d53ecc65d886eec209a"}, + {file = "pendulum-3.0.0-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:83a44e8b40655d0ba565a5c3d1365d27e3e6778ae2a05b69124db9e471255c4a"}, + {file = "pendulum-3.0.0-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:1a3604e9fbc06b788041b2a8b78f75c243021e0f512447806a6d37ee5214905d"}, + {file = "pendulum-3.0.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:92c307ae7accebd06cbae4729f0ba9fa724df5f7d91a0964b1b972a22baa482b"}, + {file = "pendulum-3.0.0.tar.gz", hash = "sha256:5d034998dea404ec31fae27af6b22cff1708f830a1ed7353be4d1019bb9f584e"}, +] + +[package.dependencies] +python-dateutil = ">=2.6" +tzdata = ">=2020.1" + +[package.extras] +test = ["time-machine (>=2.6.0)"] + +[[package]] +name = "platformdirs" +version = "4.2.1" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." +optional = false +python-versions = ">=3.8" +files = [ + {file = "platformdirs-4.2.1-py3-none-any.whl", hash = "sha256:17d5a1161b3fd67b390023cb2d3b026bbd40abde6fdb052dfbd3a29c3ba22ee1"}, + {file = "platformdirs-4.2.1.tar.gz", hash = "sha256:031cd18d4ec63ec53e82dceaac0417d218a6863f7745dfcc9efe7793b7039bdf"}, +] + +[package.extras] +docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"] +type = ["mypy (>=1.8)"] + +[[package]] +name = "pluggy" +version = "1.5.0" +description = "plugin and hook calling mechanisms for python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, + {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, +] + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + +[[package]] +name = "pycares" +version = "4.4.0" +description = "Python interface for c-ares" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pycares-4.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:24da119850841d16996713d9c3374ca28a21deee056d609fbbed29065d17e1f6"}, + {file = "pycares-4.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8f64cb58729689d4d0e78f0bfb4c25ce2f851d0274c0273ac751795c04b8798a"}, + {file = "pycares-4.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d33e2a1120887e89075f7f814ec144f66a6ce06a54f5722ccefc62fbeda83cff"}, + {file = "pycares-4.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c680fef1b502ee680f8f0b95a41af4ec2c234e50e16c0af5bbda31999d3584bd"}, + {file = "pycares-4.4.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fff16b09042ba077f7b8aa5868d1d22456f0002574d0ba43462b10a009331677"}, + {file = "pycares-4.4.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:229a1675eb33bc9afb1fc463e73ee334950ccc485bc83a43f6ae5839fb4d5fa3"}, + {file = "pycares-4.4.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:3aebc73e5ad70464f998f77f2da2063aa617cbd8d3e8174dd7c5b4518f967153"}, + {file = "pycares-4.4.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:6ef64649eba56448f65e26546d85c860709844d2fc22ef14d324fe0b27f761a9"}, + {file = "pycares-4.4.0-cp310-cp310-win32.whl", hash = "sha256:4afc2644423f4eef97857a9fd61be9758ce5e336b4b0bd3d591238bb4b8b03e0"}, + {file = "pycares-4.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:5ed4e04af4012f875b78219d34434a6d08a67175150ac1b79eb70ab585d4ba8c"}, + {file = "pycares-4.4.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:bce8db2fc6f3174bd39b81405210b9b88d7b607d33e56a970c34a0c190da0490"}, + {file = "pycares-4.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9a0303428d013ccf5c51de59c83f9127aba6200adb7fd4be57eddb432a1edd2a"}, + {file = "pycares-4.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afb91792f1556f97be7f7acb57dc7756d89c5a87bd8b90363a77dbf9ea653817"}, + {file = "pycares-4.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b61579cecf1f4d616e5ea31a6e423a16680ab0d3a24a2ffe7bb1d4ee162477ff"}, + {file = "pycares-4.4.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b7af06968cbf6851566e806bf3e72825b0e6671832a2cbe840be1d2d65350710"}, + {file = "pycares-4.4.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ceb12974367b0a68a05d52f4162b29f575d241bd53de155efe632bf2c943c7f6"}, + {file = "pycares-4.4.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:2eeec144bcf6a7b6f2d74d6e70cbba7886a84dd373c886f06cb137a07de4954c"}, + {file = "pycares-4.4.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e3a6f7cfdfd11eb5493d6d632e582408c8f3b429f295f8799c584c108b28db6f"}, + {file = "pycares-4.4.0-cp311-cp311-win32.whl", hash = "sha256:34736a2ffaa9c08ca9c707011a2d7b69074bbf82d645d8138bba771479b2362f"}, + {file = "pycares-4.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:eb66c30eb11e877976b7ead13632082a8621df648c408b8e15cdb91a452dd502"}, + {file = "pycares-4.4.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:fd644505a8cfd7f6584d33a9066d4e3d47700f050ef1490230c962de5dfb28c6"}, + {file = "pycares-4.4.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:52084961262232ec04bd75f5043aed7e5d8d9695e542ff691dfef0110209f2d4"}, + {file = "pycares-4.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0c5368206057884cde18602580083aeaad9b860e2eac14fd253543158ce1e93"}, + {file = "pycares-4.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:112a4979c695b1c86f6782163d7dec58d57a3b9510536dcf4826550f9053dd9a"}, + {file = "pycares-4.4.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8d186dafccdaa3409194c0f94db93c1a5d191145a275f19da6591f9499b8e7b8"}, + {file = "pycares-4.4.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:64965dc19c578a683ea73487a215a8897276224e004d50eeb21f0bc7a0b63c88"}, + {file = "pycares-4.4.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:ed2a38e34bec6f2586435f6ff0bc5fe11d14bebd7ed492cf739a424e81681540"}, + {file = "pycares-4.4.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:94d6962db81541eb0396d2f0dfcbb18cdb8c8b251d165efc2d974ae652c547d4"}, + {file = "pycares-4.4.0-cp312-cp312-win32.whl", hash = "sha256:1168a48a834813aa80f412be2df4abaf630528a58d15c704857448b20b1675c0"}, + {file = "pycares-4.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:db24c4e7fea4a052c6e869cbf387dd85d53b9736cfe1ef5d8d568d1ca925e977"}, + {file = "pycares-4.4.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:21a5a0468861ec7df7befa69050f952da13db5427ae41ffe4713bc96291d1d95"}, + {file = "pycares-4.4.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:22c00bf659a9fa44d7b405cf1cd69b68b9d37537899898d8cbe5dffa4016b273"}, + {file = "pycares-4.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23aa3993a352491a47fcf17867f61472f32f874df4adcbb486294bd9fbe8abee"}, + {file = "pycares-4.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:813d661cbe2e37d87da2d16b7110a6860e93ddb11735c6919c8a3545c7b9c8d8"}, + {file = "pycares-4.4.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:77cf5a2fd5583c670de41a7f4a7b46e5cbabe7180d8029f728571f4d2e864084"}, + {file = "pycares-4.4.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:3eaa6681c0a3e3f3868c77aca14b7760fed35fdfda2fe587e15c701950e7bc69"}, + {file = "pycares-4.4.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ad58e284a658a8a6a84af2e0b62f2f961f303cedfe551854d7bd40c3cbb61912"}, + {file = "pycares-4.4.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:bfb89ca9e3d0a9b5332deeb666b2ede9d3469107742158f4aeda5ce032d003f4"}, + {file = "pycares-4.4.0-cp38-cp38-win32.whl", hash = "sha256:f36bdc1562142e3695555d2f4ac0cb69af165eddcefa98efc1c79495b533481f"}, + {file = "pycares-4.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:902461a92b6a80fd5041a2ec5235680c7cc35e43615639ec2a40e63fca2dfb51"}, + {file = "pycares-4.4.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7bddc6adba8f699728f7fc1c9ce8cef359817ad78e2ed52b9502cb5f8dc7f741"}, + {file = "pycares-4.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:cb49d5805cd347c404f928c5ae7c35e86ba0c58ffa701dbe905365e77ce7d641"}, + {file = "pycares-4.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:56cf3349fa3a2e67ed387a7974c11d233734636fe19facfcda261b411af14d80"}, + {file = "pycares-4.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8bf2eaa83a5987e48fa63302f0fe7ce3275cfda87b34d40fef9ce703fb3ac002"}, + {file = "pycares-4.4.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:82bba2ab77eb5addbf9758d514d9bdef3c1bfe7d1649a47bd9a0d55a23ef478b"}, + {file = "pycares-4.4.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c6a8bde63106f162fca736e842a916853cad3c8d9d137e11c9ffa37efa818b02"}, + {file = "pycares-4.4.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f5f646eec041db6ffdbcaf3e0756fb92018f7af3266138c756bb09d2b5baadec"}, + {file = "pycares-4.4.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9dc04c54c6ea615210c1b9e803d0e2d2255f87a3d5d119b6482c8f0dfa15b26b"}, + {file = "pycares-4.4.0-cp39-cp39-win32.whl", hash = "sha256:97892cced5794d721fb4ff8765764aa4ea48fe8b2c3820677505b96b83d4ef47"}, + {file = "pycares-4.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:917f08f0b5d9324e9a34211e68d27447c552b50ab967044776bbab7e42a553a2"}, + {file = "pycares-4.4.0.tar.gz", hash = "sha256:f47579d508f2f56eddd16ce72045782ad3b1b3b678098699e2b6a1b30733e1c2"}, +] + +[package.dependencies] +cffi = ">=1.5.0" + +[package.extras] +idna = ["idna (>=2.1)"] + +[[package]] +name = "pycparser" +version = "2.22" +description = "C parser in Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"}, + {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"}, +] + +[[package]] +name = "pydantic" +version = "1.10.14" +description = "Data validation and settings management using python type hints" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pydantic-1.10.14-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7f4fcec873f90537c382840f330b90f4715eebc2bc9925f04cb92de593eae054"}, + {file = "pydantic-1.10.14-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8e3a76f571970fcd3c43ad982daf936ae39b3e90b8a2e96c04113a369869dc87"}, + {file = "pydantic-1.10.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:82d886bd3c3fbeaa963692ef6b643159ccb4b4cefaf7ff1617720cbead04fd1d"}, + {file = "pydantic-1.10.14-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:798a3d05ee3b71967844a1164fd5bdb8c22c6d674f26274e78b9f29d81770c4e"}, + {file = "pydantic-1.10.14-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:23d47a4b57a38e8652bcab15a658fdb13c785b9ce217cc3a729504ab4e1d6bc9"}, + {file = "pydantic-1.10.14-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:f9f674b5c3bebc2eba401de64f29948ae1e646ba2735f884d1594c5f675d6f2a"}, + {file = "pydantic-1.10.14-cp310-cp310-win_amd64.whl", hash = "sha256:24a7679fab2e0eeedb5a8924fc4a694b3bcaac7d305aeeac72dd7d4e05ecbebf"}, + {file = "pydantic-1.10.14-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9d578ac4bf7fdf10ce14caba6f734c178379bd35c486c6deb6f49006e1ba78a7"}, + {file = "pydantic-1.10.14-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:fa7790e94c60f809c95602a26d906eba01a0abee9cc24150e4ce2189352deb1b"}, + {file = "pydantic-1.10.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aad4e10efa5474ed1a611b6d7f0d130f4aafadceb73c11d9e72823e8f508e663"}, + {file = "pydantic-1.10.14-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1245f4f61f467cb3dfeced2b119afef3db386aec3d24a22a1de08c65038b255f"}, + {file = "pydantic-1.10.14-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:21efacc678a11114c765eb52ec0db62edffa89e9a562a94cbf8fa10b5db5c046"}, + {file = "pydantic-1.10.14-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:412ab4a3f6dbd2bf18aefa9f79c7cca23744846b31f1d6555c2ee2b05a2e14ca"}, + {file = "pydantic-1.10.14-cp311-cp311-win_amd64.whl", hash = "sha256:e897c9f35281f7889873a3e6d6b69aa1447ceb024e8495a5f0d02ecd17742a7f"}, + {file = "pydantic-1.10.14-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d604be0f0b44d473e54fdcb12302495fe0467c56509a2f80483476f3ba92b33c"}, + {file = "pydantic-1.10.14-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a42c7d17706911199798d4c464b352e640cab4351efe69c2267823d619a937e5"}, + {file = "pydantic-1.10.14-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:596f12a1085e38dbda5cbb874d0973303e34227b400b6414782bf205cc14940c"}, + {file = "pydantic-1.10.14-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:bfb113860e9288d0886e3b9e49d9cf4a9d48b441f52ded7d96db7819028514cc"}, + {file = "pydantic-1.10.14-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:bc3ed06ab13660b565eed80887fcfbc0070f0aa0691fbb351657041d3e874efe"}, + {file = "pydantic-1.10.14-cp37-cp37m-win_amd64.whl", hash = "sha256:ad8c2bc677ae5f6dbd3cf92f2c7dc613507eafe8f71719727cbc0a7dec9a8c01"}, + {file = "pydantic-1.10.14-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c37c28449752bb1f47975d22ef2882d70513c546f8f37201e0fec3a97b816eee"}, + {file = "pydantic-1.10.14-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:49a46a0994dd551ec051986806122767cf144b9702e31d47f6d493c336462597"}, + {file = "pydantic-1.10.14-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:53e3819bd20a42470d6dd0fe7fc1c121c92247bca104ce608e609b59bc7a77ee"}, + {file = "pydantic-1.10.14-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0fbb503bbbbab0c588ed3cd21975a1d0d4163b87e360fec17a792f7d8c4ff29f"}, + {file = "pydantic-1.10.14-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:336709883c15c050b9c55a63d6c7ff09be883dbc17805d2b063395dd9d9d0022"}, + {file = "pydantic-1.10.14-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:4ae57b4d8e3312d486e2498d42aed3ece7b51848336964e43abbf9671584e67f"}, + {file = "pydantic-1.10.14-cp38-cp38-win_amd64.whl", hash = "sha256:dba49d52500c35cfec0b28aa8b3ea5c37c9df183ffc7210b10ff2a415c125c4a"}, + {file = "pydantic-1.10.14-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c66609e138c31cba607d8e2a7b6a5dc38979a06c900815495b2d90ce6ded35b4"}, + {file = "pydantic-1.10.14-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d986e115e0b39604b9eee3507987368ff8148222da213cd38c359f6f57b3b347"}, + {file = "pydantic-1.10.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:646b2b12df4295b4c3148850c85bff29ef6d0d9621a8d091e98094871a62e5c7"}, + {file = "pydantic-1.10.14-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:282613a5969c47c83a8710cc8bfd1e70c9223feb76566f74683af889faadc0ea"}, + {file = "pydantic-1.10.14-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:466669501d08ad8eb3c4fecd991c5e793c4e0bbd62299d05111d4f827cded64f"}, + {file = "pydantic-1.10.14-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:13e86a19dca96373dcf3190fcb8797d40a6f12f154a244a8d1e8e03b8f280593"}, + {file = "pydantic-1.10.14-cp39-cp39-win_amd64.whl", hash = "sha256:08b6ec0917c30861e3fe71a93be1648a2aa4f62f866142ba21670b24444d7fd8"}, + {file = "pydantic-1.10.14-py3-none-any.whl", hash = "sha256:8ee853cd12ac2ddbf0ecbac1c289f95882b2d4482258048079d13be700aa114c"}, + {file = "pydantic-1.10.14.tar.gz", hash = "sha256:46f17b832fe27de7850896f3afee50ea682220dd218f7e9c88d436788419dca6"}, +] + +[package.dependencies] +typing-extensions = ">=4.2.0" + +[package.extras] +dotenv = ["python-dotenv (>=0.10.4)"] +email = ["email-validator (>=1.0.3)"] + +[[package]] +name = "pyrsistent" +version = "0.20.0" +description = "Persistent/Functional/Immutable data structures" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pyrsistent-0.20.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c3aba3e01235221e5b229a6c05f585f344734bd1ad42a8ac51493d74722bbce"}, + {file = "pyrsistent-0.20.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c1beb78af5423b879edaf23c5591ff292cf7c33979734c99aa66d5914ead880f"}, + {file = "pyrsistent-0.20.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21cc459636983764e692b9eba7144cdd54fdec23ccdb1e8ba392a63666c60c34"}, + {file = "pyrsistent-0.20.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f5ac696f02b3fc01a710427585c855f65cd9c640e14f52abe52020722bb4906b"}, + {file = "pyrsistent-0.20.0-cp310-cp310-win32.whl", hash = "sha256:0724c506cd8b63c69c7f883cc233aac948c1ea946ea95996ad8b1380c25e1d3f"}, + {file = "pyrsistent-0.20.0-cp310-cp310-win_amd64.whl", hash = "sha256:8441cf9616d642c475684d6cf2520dd24812e996ba9af15e606df5f6fd9d04a7"}, + {file = "pyrsistent-0.20.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:0f3b1bcaa1f0629c978b355a7c37acd58907390149b7311b5db1b37648eb6958"}, + {file = "pyrsistent-0.20.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5cdd7ef1ea7a491ae70d826b6cc64868de09a1d5ff9ef8d574250d0940e275b8"}, + {file = "pyrsistent-0.20.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cae40a9e3ce178415040a0383f00e8d68b569e97f31928a3a8ad37e3fde6df6a"}, + {file = "pyrsistent-0.20.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6288b3fa6622ad8a91e6eb759cfc48ff3089e7c17fb1d4c59a919769314af224"}, + {file = "pyrsistent-0.20.0-cp311-cp311-win32.whl", hash = "sha256:7d29c23bdf6e5438c755b941cef867ec2a4a172ceb9f50553b6ed70d50dfd656"}, + {file = "pyrsistent-0.20.0-cp311-cp311-win_amd64.whl", hash = "sha256:59a89bccd615551391f3237e00006a26bcf98a4d18623a19909a2c48b8e986ee"}, + {file = "pyrsistent-0.20.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:09848306523a3aba463c4b49493a760e7a6ca52e4826aa100ee99d8d39b7ad1e"}, + {file = "pyrsistent-0.20.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a14798c3005ec892bbada26485c2eea3b54109cb2533713e355c806891f63c5e"}, + {file = "pyrsistent-0.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b14decb628fac50db5e02ee5a35a9c0772d20277824cfe845c8a8b717c15daa3"}, + {file = "pyrsistent-0.20.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2e2c116cc804d9b09ce9814d17df5edf1df0c624aba3b43bc1ad90411487036d"}, + {file = "pyrsistent-0.20.0-cp312-cp312-win32.whl", hash = "sha256:e78d0c7c1e99a4a45c99143900ea0546025e41bb59ebc10182e947cf1ece9174"}, + {file = "pyrsistent-0.20.0-cp312-cp312-win_amd64.whl", hash = "sha256:4021a7f963d88ccd15b523787d18ed5e5269ce57aa4037146a2377ff607ae87d"}, + {file = "pyrsistent-0.20.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:79ed12ba79935adaac1664fd7e0e585a22caa539dfc9b7c7c6d5ebf91fb89054"}, + {file = "pyrsistent-0.20.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f920385a11207dc372a028b3f1e1038bb244b3ec38d448e6d8e43c6b3ba20e98"}, + {file = "pyrsistent-0.20.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f5c2d012671b7391803263419e31b5c7c21e7c95c8760d7fc35602353dee714"}, + {file = "pyrsistent-0.20.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ef3992833fbd686ee783590639f4b8343a57f1f75de8633749d984dc0eb16c86"}, + {file = "pyrsistent-0.20.0-cp38-cp38-win32.whl", hash = "sha256:881bbea27bbd32d37eb24dd320a5e745a2a5b092a17f6debc1349252fac85423"}, + {file = "pyrsistent-0.20.0-cp38-cp38-win_amd64.whl", hash = "sha256:6d270ec9dd33cdb13f4d62c95c1a5a50e6b7cdd86302b494217137f760495b9d"}, + {file = "pyrsistent-0.20.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:ca52d1ceae015859d16aded12584c59eb3825f7b50c6cfd621d4231a6cc624ce"}, + {file = "pyrsistent-0.20.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b318ca24db0f0518630e8b6f3831e9cba78f099ed5c1d65ffe3e023003043ba0"}, + {file = "pyrsistent-0.20.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fed2c3216a605dc9a6ea50c7e84c82906e3684c4e80d2908208f662a6cbf9022"}, + {file = "pyrsistent-0.20.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2e14c95c16211d166f59c6611533d0dacce2e25de0f76e4c140fde250997b3ca"}, + {file = "pyrsistent-0.20.0-cp39-cp39-win32.whl", hash = "sha256:f058a615031eea4ef94ead6456f5ec2026c19fb5bd6bfe86e9665c4158cf802f"}, + {file = "pyrsistent-0.20.0-cp39-cp39-win_amd64.whl", hash = "sha256:58b8f6366e152092194ae68fefe18b9f0b4f89227dfd86a07770c3d86097aebf"}, + {file = "pyrsistent-0.20.0-py3-none-any.whl", hash = "sha256:c55acc4733aad6560a7f5f818466631f07efc001fd023f34a6c203f8b6df0f0b"}, + {file = "pyrsistent-0.20.0.tar.gz", hash = "sha256:4c48f78f62ab596c679086084d0dd13254ae4f3d6c72a83ffdf5ebdef8f265a4"}, +] + +[[package]] +name = "pytest" +version = "7.4.4" +description = "pytest: simple powerful testing with Python" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, + {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "sys_platform == \"win32\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=0.12,<2.0" + +[package.extras] +testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] + +[[package]] +name = "pytest-insta" +version = "0.3.0" +description = "A practical snapshot testing plugin for pytest" +optional = false +python-versions = ">=3.10,<4.0" +files = [ + {file = "pytest_insta-0.3.0-py3-none-any.whl", hash = "sha256:93a105e3850f2887b120a581923b10bb313d722e00d369377a1d91aa535df704"}, + {file = "pytest_insta-0.3.0.tar.gz", hash = "sha256:9e6e1c70a021f68ccc4643360b2c2f8326cf3befba85f942c1da17b9caf713f7"}, +] + +[package.dependencies] +pytest = ">=7.2.0,<9.0.0" +wrapt = ">=1.14.1,<2.0.0" + +[[package]] +name = "pytest-mock" +version = "3.14.0" +description = "Thin-wrapper around the mock package for easier use with pytest" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pytest-mock-3.14.0.tar.gz", hash = "sha256:2719255a1efeceadbc056d6bf3df3d1c5015530fb40cf347c0f9afac88410bd0"}, + {file = "pytest_mock-3.14.0-py3-none-any.whl", hash = "sha256:0b72c38033392a5f4621342fe11e9219ac11ec9d375f8e2a0c164539e0d70f6f"}, +] + +[package.dependencies] +pytest = ">=6.2.5" + +[package.extras] +dev = ["pre-commit", "pytest-asyncio", "tox"] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +description = "Extensions to the standard Python datetime module" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +files = [ + {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, + {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, +] + +[package.dependencies] +six = ">=1.5" + +[[package]] +name = "pyyaml" +version = "6.0.1" +description = "YAML parser and emitter for Python" +optional = false +python-versions = ">=3.6" +files = [ + {file = "PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a"}, + {file = "PyYAML-6.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, + {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, + {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, + {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, + {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, + {file = "PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, + {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, + {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, + {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, + {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, + {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, + {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, + {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd"}, + {file = "PyYAML-6.0.1-cp36-cp36m-win32.whl", hash = "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585"}, + {file = "PyYAML-6.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa"}, + {file = "PyYAML-6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c"}, + {file = "PyYAML-6.0.1-cp37-cp37m-win32.whl", hash = "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba"}, + {file = "PyYAML-6.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867"}, + {file = "PyYAML-6.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, + {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, + {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, + {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, + {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, + {file = "PyYAML-6.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, + {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, + {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, + {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, + {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, +] + +[[package]] +name = "requests" +version = "2.31.0" +description = "Python HTTP for Humans." +optional = false +python-versions = ">=3.7" +files = [ + {file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"}, + {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, +] + +[package.dependencies] +certifi = ">=2017.4.17" +charset-normalizer = ">=2,<4" +idna = ">=2.5,<4" +urllib3 = ">=1.21.1,<3" + +[package.extras] +socks = ["PySocks (>=1.5.6,!=1.5.7)"] +use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] + +[[package]] +name = "requests-cache" +version = "1.2.0" +description = "A persistent cache for python requests" +optional = false +python-versions = ">=3.8" +files = [ + {file = "requests_cache-1.2.0-py3-none-any.whl", hash = "sha256:490324301bf0cb924ff4e6324bd2613453e7e1f847353928b08adb0fdfb7f722"}, + {file = "requests_cache-1.2.0.tar.gz", hash = "sha256:db1c709ca343cc1cd5b6c8b1a5387298eceed02306a6040760db538c885e3838"}, +] + +[package.dependencies] +attrs = ">=21.2" +cattrs = ">=22.2" +platformdirs = ">=2.5" +requests = ">=2.22" +url-normalize = ">=1.4" +urllib3 = ">=1.25.5" + +[package.extras] +all = ["boto3 (>=1.15)", "botocore (>=1.18)", "itsdangerous (>=2.0)", "pymongo (>=3)", "pyyaml (>=6.0.1)", "redis (>=3)", "ujson (>=5.4)"] +bson = ["bson (>=0.5)"] +docs = ["furo (>=2023.3,<2024.0)", "linkify-it-py (>=2.0,<3.0)", "myst-parser (>=1.0,<2.0)", "sphinx (>=5.0.2,<6.0.0)", "sphinx-autodoc-typehints (>=1.19)", "sphinx-automodapi (>=0.14)", "sphinx-copybutton (>=0.5)", "sphinx-design (>=0.2)", "sphinx-notfound-page (>=0.8)", "sphinxcontrib-apidoc (>=0.3)", "sphinxext-opengraph (>=0.9)"] +dynamodb = ["boto3 (>=1.15)", "botocore (>=1.18)"] +json = ["ujson (>=5.4)"] +mongodb = ["pymongo (>=3)"] +redis = ["redis (>=3)"] +security = ["itsdangerous (>=2.0)"] +yaml = ["pyyaml (>=6.0.1)"] + +[[package]] +name = "requests-mock" +version = "1.12.1" +description = "Mock out responses from the requests package" +optional = false +python-versions = ">=3.5" +files = [ + {file = "requests-mock-1.12.1.tar.gz", hash = "sha256:e9e12e333b525156e82a3c852f22016b9158220d2f47454de9cae8a77d371401"}, + {file = "requests_mock-1.12.1-py2.py3-none-any.whl", hash = "sha256:b1e37054004cdd5e56c84454cc7df12b25f90f382159087f4b6915aaeef39563"}, +] + +[package.dependencies] +requests = ">=2.22,<3" + +[package.extras] +fixture = ["fixtures"] + +[[package]] +name = "setuptools" +version = "69.5.1" +description = "Easily download, build, install, upgrade, and uninstall Python packages" +optional = false +python-versions = ">=3.8" +files = [ + {file = "setuptools-69.5.1-py3-none-any.whl", hash = "sha256:c636ac361bc47580504644275c9ad802c50415c7522212252c033bd15f301f32"}, + {file = "setuptools-69.5.1.tar.gz", hash = "sha256:6c1fccdac05a97e598fb0ae3bbed5904ccb317337a51139dcd51453611bbb987"}, +] + +[package.extras] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] +testing = ["build[virtualenv]", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "mypy (==1.9)", "packaging (>=23.2)", "pip (>=19.1)", "pytest (>=6,!=8.1.1)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (>=0.2.1)", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] +testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.2)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] + +[[package]] +name = "sgqlc" +version = "16.3" +description = "Simple GraphQL Client" +optional = false +python-versions = ">=3.7,<4.0" +files = [ + {file = "sgqlc-16.3-py3-none-any.whl", hash = "sha256:89d468386a4ba4b5ade991623228b6fb0a25bea1f25643ccac130fb3ef565b72"}, + {file = "sgqlc-16.3.tar.gz", hash = "sha256:be08857775aa3e65ef7b2c1f0cdcc65dd5794907b162b393c189187fee664558"}, +] + +[package.dependencies] +graphql-core = ">=3.1.7,<4.0.0" + +[package.extras] +requests = ["requests"] +websocket = ["websocket-client"] + +[[package]] +name = "six" +version = "1.16.0" +description = "Python 2 and 3 compatibility utilities" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +files = [ + {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, + {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, +] + +[[package]] +name = "typing-extensions" +version = "4.11.0" +description = "Backported and Experimental Type Hints for Python 3.8+" +optional = false +python-versions = ">=3.8" +files = [ + {file = "typing_extensions-4.11.0-py3-none-any.whl", hash = "sha256:c1f94d72897edaf4ce775bb7558d5b79d8126906a14ea5ed1635921406c0387a"}, + {file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"}, +] + +[[package]] +name = "tzdata" +version = "2024.1" +description = "Provider of IANA time zone data" +optional = false +python-versions = ">=2" +files = [ + {file = "tzdata-2024.1-py2.py3-none-any.whl", hash = "sha256:9068bc196136463f5245e51efda838afa15aaeca9903f49050dfa2679db4d252"}, + {file = "tzdata-2024.1.tar.gz", hash = "sha256:2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5ceae07efd"}, +] + +[[package]] +name = "url-normalize" +version = "1.4.3" +description = "URL normalization for Python" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +files = [ + {file = "url-normalize-1.4.3.tar.gz", hash = "sha256:d23d3a070ac52a67b83a1c59a0e68f8608d1cd538783b401bc9de2c0fac999b2"}, + {file = "url_normalize-1.4.3-py2.py3-none-any.whl", hash = "sha256:ec3c301f04e5bb676d333a7fa162fa977ad2ca04b7e652bfc9fac4e405728eed"}, +] + +[package.dependencies] +six = "*" + +[[package]] +name = "urllib3" +version = "2.2.1" +description = "HTTP library with thread-safe connection pooling, file post, and more." +optional = false +python-versions = ">=3.8" +files = [ + {file = "urllib3-2.2.1-py3-none-any.whl", hash = "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d"}, + {file = "urllib3-2.2.1.tar.gz", hash = "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"}, +] + +[package.extras] +brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] +h2 = ["h2 (>=4,<5)"] +socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] +zstd = ["zstandard (>=0.18.0)"] + +[[package]] +name = "wcmatch" +version = "8.4" +description = "Wildcard/glob file name matcher." +optional = false +python-versions = ">=3.7" +files = [ + {file = "wcmatch-8.4-py3-none-any.whl", hash = "sha256:dc7351e5a7f8bbf4c6828d51ad20c1770113f5f3fd3dfe2a03cfde2a63f03f98"}, + {file = "wcmatch-8.4.tar.gz", hash = "sha256:ba4fc5558f8946bf1ffc7034b05b814d825d694112499c86035e0e4d398b6a67"}, +] + +[package.dependencies] +bracex = ">=2.1.1" + +[[package]] +name = "wrapt" +version = "1.16.0" +description = "Module for decorators, wrappers and monkey patching." +optional = false +python-versions = ">=3.6" +files = [ + {file = "wrapt-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ffa565331890b90056c01db69c0fe634a776f8019c143a5ae265f9c6bc4bd6d4"}, + {file = "wrapt-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e4fdb9275308292e880dcbeb12546df7f3e0f96c6b41197e0cf37d2826359020"}, + {file = "wrapt-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb2dee3874a500de01c93d5c71415fcaef1d858370d405824783e7a8ef5db440"}, + {file = "wrapt-1.16.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2a88e6010048489cda82b1326889ec075a8c856c2e6a256072b28eaee3ccf487"}, + {file = "wrapt-1.16.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac83a914ebaf589b69f7d0a1277602ff494e21f4c2f743313414378f8f50a4cf"}, + {file = "wrapt-1.16.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:73aa7d98215d39b8455f103de64391cb79dfcad601701a3aa0dddacf74911d72"}, + {file = "wrapt-1.16.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:807cc8543a477ab7422f1120a217054f958a66ef7314f76dd9e77d3f02cdccd0"}, + {file = "wrapt-1.16.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:bf5703fdeb350e36885f2875d853ce13172ae281c56e509f4e6eca049bdfb136"}, + {file = "wrapt-1.16.0-cp310-cp310-win32.whl", hash = "sha256:f6b2d0c6703c988d334f297aa5df18c45e97b0af3679bb75059e0e0bd8b1069d"}, + {file = "wrapt-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:decbfa2f618fa8ed81c95ee18a387ff973143c656ef800c9f24fb7e9c16054e2"}, + {file = "wrapt-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1a5db485fe2de4403f13fafdc231b0dbae5eca4359232d2efc79025527375b09"}, + {file = "wrapt-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:75ea7d0ee2a15733684badb16de6794894ed9c55aa5e9903260922f0482e687d"}, + {file = "wrapt-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a452f9ca3e3267cd4d0fcf2edd0d035b1934ac2bd7e0e57ac91ad6b95c0c6389"}, + {file = "wrapt-1.16.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:43aa59eadec7890d9958748db829df269f0368521ba6dc68cc172d5d03ed8060"}, + {file = "wrapt-1.16.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72554a23c78a8e7aa02abbd699d129eead8b147a23c56e08d08dfc29cfdddca1"}, + {file = "wrapt-1.16.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d2efee35b4b0a347e0d99d28e884dfd82797852d62fcd7ebdeee26f3ceb72cf3"}, + {file = "wrapt-1.16.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:6dcfcffe73710be01d90cae08c3e548d90932d37b39ef83969ae135d36ef3956"}, + {file = "wrapt-1.16.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:eb6e651000a19c96f452c85132811d25e9264d836951022d6e81df2fff38337d"}, + {file = "wrapt-1.16.0-cp311-cp311-win32.whl", hash = "sha256:66027d667efe95cc4fa945af59f92c5a02c6f5bb6012bff9e60542c74c75c362"}, + {file = "wrapt-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:aefbc4cb0a54f91af643660a0a150ce2c090d3652cf4052a5397fb2de549cd89"}, + {file = "wrapt-1.16.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:5eb404d89131ec9b4f748fa5cfb5346802e5ee8836f57d516576e61f304f3b7b"}, + {file = "wrapt-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9090c9e676d5236a6948330e83cb89969f433b1943a558968f659ead07cb3b36"}, + {file = "wrapt-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94265b00870aa407bd0cbcfd536f17ecde43b94fb8d228560a1e9d3041462d73"}, + {file = "wrapt-1.16.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f2058f813d4f2b5e3a9eb2eb3faf8f1d99b81c3e51aeda4b168406443e8ba809"}, + {file = "wrapt-1.16.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:98b5e1f498a8ca1858a1cdbffb023bfd954da4e3fa2c0cb5853d40014557248b"}, + {file = "wrapt-1.16.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:14d7dc606219cdd7405133c713f2c218d4252f2a469003f8c46bb92d5d095d81"}, + {file = "wrapt-1.16.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:49aac49dc4782cb04f58986e81ea0b4768e4ff197b57324dcbd7699c5dfb40b9"}, + {file = "wrapt-1.16.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:418abb18146475c310d7a6dc71143d6f7adec5b004ac9ce08dc7a34e2babdc5c"}, + {file = "wrapt-1.16.0-cp312-cp312-win32.whl", hash = "sha256:685f568fa5e627e93f3b52fda002c7ed2fa1800b50ce51f6ed1d572d8ab3e7fc"}, + {file = "wrapt-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:dcdba5c86e368442528f7060039eda390cc4091bfd1dca41e8046af7c910dda8"}, + {file = "wrapt-1.16.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:d462f28826f4657968ae51d2181a074dfe03c200d6131690b7d65d55b0f360f8"}, + {file = "wrapt-1.16.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a33a747400b94b6d6b8a165e4480264a64a78c8a4c734b62136062e9a248dd39"}, + {file = "wrapt-1.16.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3646eefa23daeba62643a58aac816945cadc0afaf21800a1421eeba5f6cfb9c"}, + {file = "wrapt-1.16.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ebf019be5c09d400cf7b024aa52b1f3aeebeff51550d007e92c3c1c4afc2a40"}, + {file = "wrapt-1.16.0-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:0d2691979e93d06a95a26257adb7bfd0c93818e89b1406f5a28f36e0d8c1e1fc"}, + {file = "wrapt-1.16.0-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:1acd723ee2a8826f3d53910255643e33673e1d11db84ce5880675954183ec47e"}, + {file = "wrapt-1.16.0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:bc57efac2da352a51cc4658878a68d2b1b67dbe9d33c36cb826ca449d80a8465"}, + {file = "wrapt-1.16.0-cp36-cp36m-win32.whl", hash = "sha256:da4813f751142436b075ed7aa012a8778aa43a99f7b36afe9b742d3ed8bdc95e"}, + {file = "wrapt-1.16.0-cp36-cp36m-win_amd64.whl", hash = "sha256:6f6eac2360f2d543cc875a0e5efd413b6cbd483cb3ad7ebf888884a6e0d2e966"}, + {file = "wrapt-1.16.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a0ea261ce52b5952bf669684a251a66df239ec6d441ccb59ec7afa882265d593"}, + {file = "wrapt-1.16.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7bd2d7ff69a2cac767fbf7a2b206add2e9a210e57947dd7ce03e25d03d2de292"}, + {file = "wrapt-1.16.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9159485323798c8dc530a224bd3ffcf76659319ccc7bbd52e01e73bd0241a0c5"}, + {file = "wrapt-1.16.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a86373cf37cd7764f2201b76496aba58a52e76dedfaa698ef9e9688bfd9e41cf"}, + {file = "wrapt-1.16.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:73870c364c11f03ed072dda68ff7aea6d2a3a5c3fe250d917a429c7432e15228"}, + {file = "wrapt-1.16.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:b935ae30c6e7400022b50f8d359c03ed233d45b725cfdd299462f41ee5ffba6f"}, + {file = "wrapt-1.16.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:db98ad84a55eb09b3c32a96c576476777e87c520a34e2519d3e59c44710c002c"}, + {file = "wrapt-1.16.0-cp37-cp37m-win32.whl", hash = "sha256:9153ed35fc5e4fa3b2fe97bddaa7cbec0ed22412b85bcdaf54aeba92ea37428c"}, + {file = "wrapt-1.16.0-cp37-cp37m-win_amd64.whl", hash = "sha256:66dfbaa7cfa3eb707bbfcd46dab2bc6207b005cbc9caa2199bcbc81d95071a00"}, + {file = "wrapt-1.16.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1dd50a2696ff89f57bd8847647a1c363b687d3d796dc30d4dd4a9d1689a706f0"}, + {file = "wrapt-1.16.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:44a2754372e32ab315734c6c73b24351d06e77ffff6ae27d2ecf14cf3d229202"}, + {file = "wrapt-1.16.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e9723528b9f787dc59168369e42ae1c3b0d3fadb2f1a71de14531d321ee05b0"}, + {file = "wrapt-1.16.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dbed418ba5c3dce92619656802cc5355cb679e58d0d89b50f116e4a9d5a9603e"}, + {file = "wrapt-1.16.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:941988b89b4fd6b41c3f0bfb20e92bd23746579736b7343283297c4c8cbae68f"}, + {file = "wrapt-1.16.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6a42cd0cfa8ffc1915aef79cb4284f6383d8a3e9dcca70c445dcfdd639d51267"}, + {file = "wrapt-1.16.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:1ca9b6085e4f866bd584fb135a041bfc32cab916e69f714a7d1d397f8c4891ca"}, + {file = "wrapt-1.16.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:d5e49454f19ef621089e204f862388d29e6e8d8b162efce05208913dde5b9ad6"}, + {file = "wrapt-1.16.0-cp38-cp38-win32.whl", hash = "sha256:c31f72b1b6624c9d863fc095da460802f43a7c6868c5dda140f51da24fd47d7b"}, + {file = "wrapt-1.16.0-cp38-cp38-win_amd64.whl", hash = "sha256:490b0ee15c1a55be9c1bd8609b8cecd60e325f0575fc98f50058eae366e01f41"}, + {file = "wrapt-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9b201ae332c3637a42f02d1045e1d0cccfdc41f1f2f801dafbaa7e9b4797bfc2"}, + {file = "wrapt-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:2076fad65c6736184e77d7d4729b63a6d1ae0b70da4868adeec40989858eb3fb"}, + {file = "wrapt-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c5cd603b575ebceca7da5a3a251e69561bec509e0b46e4993e1cac402b7247b8"}, + {file = "wrapt-1.16.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b47cfad9e9bbbed2339081f4e346c93ecd7ab504299403320bf85f7f85c7d46c"}, + {file = "wrapt-1.16.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f8212564d49c50eb4565e502814f694e240c55551a5f1bc841d4fcaabb0a9b8a"}, + {file = "wrapt-1.16.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:5f15814a33e42b04e3de432e573aa557f9f0f56458745c2074952f564c50e664"}, + {file = "wrapt-1.16.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:db2e408d983b0e61e238cf579c09ef7020560441906ca990fe8412153e3b291f"}, + {file = "wrapt-1.16.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:edfad1d29c73f9b863ebe7082ae9321374ccb10879eeabc84ba3b69f2579d537"}, + {file = "wrapt-1.16.0-cp39-cp39-win32.whl", hash = "sha256:ed867c42c268f876097248e05b6117a65bcd1e63b779e916fe2e33cd6fd0d3c3"}, + {file = "wrapt-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:eb1b046be06b0fce7249f1d025cd359b4b80fc1c3e24ad9eca33e0dcdb2e4a35"}, + {file = "wrapt-1.16.0-py3-none-any.whl", hash = "sha256:6906c4100a8fcbf2fa735f6059214bb13b97f75b1a61777fcf6432121ef12ef1"}, + {file = "wrapt-1.16.0.tar.gz", hash = "sha256:5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d"}, +] + +[[package]] +name = "xxhash" +version = "3.4.1" +description = "Python binding for xxHash" +optional = false +python-versions = ">=3.7" +files = [ + {file = "xxhash-3.4.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:91dbfa55346ad3e18e738742236554531a621042e419b70ad8f3c1d9c7a16e7f"}, + {file = "xxhash-3.4.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:665a65c2a48a72068fcc4d21721510df5f51f1142541c890491afc80451636d2"}, + {file = "xxhash-3.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb11628470a6004dc71a09fe90c2f459ff03d611376c1debeec2d648f44cb693"}, + {file = "xxhash-3.4.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5bef2a7dc7b4f4beb45a1edbba9b9194c60a43a89598a87f1a0226d183764189"}, + {file = "xxhash-3.4.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9c0f7b2d547d72c7eda7aa817acf8791f0146b12b9eba1d4432c531fb0352228"}, + {file = "xxhash-3.4.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00f2fdef6b41c9db3d2fc0e7f94cb3db86693e5c45d6de09625caad9a469635b"}, + {file = "xxhash-3.4.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:23cfd9ca09acaf07a43e5a695143d9a21bf00f5b49b15c07d5388cadf1f9ce11"}, + {file = "xxhash-3.4.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:6a9ff50a3cf88355ca4731682c168049af1ca222d1d2925ef7119c1a78e95b3b"}, + {file = "xxhash-3.4.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:f1d7c69a1e9ca5faa75546fdd267f214f63f52f12692f9b3a2f6467c9e67d5e7"}, + {file = "xxhash-3.4.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:672b273040d5d5a6864a36287f3514efcd1d4b1b6a7480f294c4b1d1ee1b8de0"}, + {file = "xxhash-3.4.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:4178f78d70e88f1c4a89ff1ffe9f43147185930bb962ee3979dba15f2b1cc799"}, + {file = "xxhash-3.4.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:9804b9eb254d4b8cc83ab5a2002128f7d631dd427aa873c8727dba7f1f0d1c2b"}, + {file = "xxhash-3.4.1-cp310-cp310-win32.whl", hash = "sha256:c09c49473212d9c87261d22c74370457cfff5db2ddfc7fd1e35c80c31a8c14ce"}, + {file = "xxhash-3.4.1-cp310-cp310-win_amd64.whl", hash = "sha256:ebbb1616435b4a194ce3466d7247df23499475c7ed4eb2681a1fa42ff766aff6"}, + {file = "xxhash-3.4.1-cp310-cp310-win_arm64.whl", hash = "sha256:25dc66be3db54f8a2d136f695b00cfe88018e59ccff0f3b8f545869f376a8a46"}, + {file = "xxhash-3.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:58c49083801885273e262c0f5bbeac23e520564b8357fbb18fb94ff09d3d3ea5"}, + {file = "xxhash-3.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b526015a973bfbe81e804a586b703f163861da36d186627e27524f5427b0d520"}, + {file = "xxhash-3.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:36ad4457644c91a966f6fe137d7467636bdc51a6ce10a1d04f365c70d6a16d7e"}, + {file = "xxhash-3.4.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:248d3e83d119770f96003271fe41e049dd4ae52da2feb8f832b7a20e791d2920"}, + {file = "xxhash-3.4.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2070b6d5bbef5ee031666cf21d4953c16e92c2f8a24a94b5c240f8995ba3b1d0"}, + {file = "xxhash-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b2746035f518f0410915e247877f7df43ef3372bf36cfa52cc4bc33e85242641"}, + {file = "xxhash-3.4.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2a8ba6181514681c2591840d5632fcf7356ab287d4aff1c8dea20f3c78097088"}, + {file = "xxhash-3.4.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:0aac5010869240e95f740de43cd6a05eae180c59edd182ad93bf12ee289484fa"}, + {file = "xxhash-3.4.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:4cb11d8debab1626181633d184b2372aaa09825bde709bf927704ed72765bed1"}, + {file = "xxhash-3.4.1-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:b29728cff2c12f3d9f1d940528ee83918d803c0567866e062683f300d1d2eff3"}, + {file = "xxhash-3.4.1-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:a15cbf3a9c40672523bdb6ea97ff74b443406ba0ab9bca10ceccd9546414bd84"}, + {file = "xxhash-3.4.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:6e66df260fed01ed8ea790c2913271641c58481e807790d9fca8bfd5a3c13844"}, + {file = "xxhash-3.4.1-cp311-cp311-win32.whl", hash = "sha256:e867f68a8f381ea12858e6d67378c05359d3a53a888913b5f7d35fbf68939d5f"}, + {file = "xxhash-3.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:200a5a3ad9c7c0c02ed1484a1d838b63edcf92ff538770ea07456a3732c577f4"}, + {file = "xxhash-3.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:1d03f1c0d16d24ea032e99f61c552cb2b77d502e545187338bea461fde253583"}, + {file = "xxhash-3.4.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c4bbba9b182697a52bc0c9f8ec0ba1acb914b4937cd4a877ad78a3b3eeabefb3"}, + {file = "xxhash-3.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9fd28a9da300e64e434cfc96567a8387d9a96e824a9be1452a1e7248b7763b78"}, + {file = "xxhash-3.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6066d88c9329ab230e18998daec53d819daeee99d003955c8db6fc4971b45ca3"}, + {file = "xxhash-3.4.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:93805bc3233ad89abf51772f2ed3355097a5dc74e6080de19706fc447da99cd3"}, + {file = "xxhash-3.4.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:64da57d5ed586ebb2ecdde1e997fa37c27fe32fe61a656b77fabbc58e6fbff6e"}, + {file = "xxhash-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a97322e9a7440bf3c9805cbaac090358b43f650516486746f7fa482672593df"}, + {file = "xxhash-3.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bbe750d512982ee7d831838a5dee9e9848f3fb440e4734cca3f298228cc957a6"}, + {file = "xxhash-3.4.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:fd79d4087727daf4d5b8afe594b37d611ab95dc8e29fe1a7517320794837eb7d"}, + {file = "xxhash-3.4.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:743612da4071ff9aa4d055f3f111ae5247342931dedb955268954ef7201a71ff"}, + {file = "xxhash-3.4.1-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:b41edaf05734092f24f48c0958b3c6cbaaa5b7e024880692078c6b1f8247e2fc"}, + {file = "xxhash-3.4.1-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:a90356ead70d715fe64c30cd0969072de1860e56b78adf7c69d954b43e29d9fa"}, + {file = "xxhash-3.4.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ac56eebb364e44c85e1d9e9cc5f6031d78a34f0092fea7fc80478139369a8b4a"}, + {file = "xxhash-3.4.1-cp312-cp312-win32.whl", hash = "sha256:911035345932a153c427107397c1518f8ce456f93c618dd1c5b54ebb22e73747"}, + {file = "xxhash-3.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:f31ce76489f8601cc7b8713201ce94b4bd7b7ce90ba3353dccce7e9e1fee71fa"}, + {file = "xxhash-3.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:b5beb1c6a72fdc7584102f42c4d9df232ee018ddf806e8c90906547dfb43b2da"}, + {file = "xxhash-3.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:6d42b24d1496deb05dee5a24ed510b16de1d6c866c626c2beb11aebf3be278b9"}, + {file = "xxhash-3.4.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3b685fab18876b14a8f94813fa2ca80cfb5ab6a85d31d5539b7cd749ce9e3624"}, + {file = "xxhash-3.4.1-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:419ffe34c17ae2df019a4685e8d3934d46b2e0bbe46221ab40b7e04ed9f11137"}, + {file = "xxhash-3.4.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0e041ce5714f95251a88670c114b748bca3bf80cc72400e9f23e6d0d59cf2681"}, + {file = "xxhash-3.4.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc860d887c5cb2f524899fb8338e1bb3d5789f75fac179101920d9afddef284b"}, + {file = "xxhash-3.4.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:312eba88ffe0a05e332e3a6f9788b73883752be63f8588a6dc1261a3eaaaf2b2"}, + {file = "xxhash-3.4.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:e01226b6b6a1ffe4e6bd6d08cfcb3ca708b16f02eb06dd44f3c6e53285f03e4f"}, + {file = "xxhash-3.4.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:9f3025a0d5d8cf406a9313cd0d5789c77433ba2004b1c75439b67678e5136537"}, + {file = "xxhash-3.4.1-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:6d3472fd4afef2a567d5f14411d94060099901cd8ce9788b22b8c6f13c606a93"}, + {file = "xxhash-3.4.1-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:43984c0a92f06cac434ad181f329a1445017c33807b7ae4f033878d860a4b0f2"}, + {file = "xxhash-3.4.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:a55e0506fdb09640a82ec4f44171273eeabf6f371a4ec605633adb2837b5d9d5"}, + {file = "xxhash-3.4.1-cp37-cp37m-win32.whl", hash = "sha256:faec30437919555b039a8bdbaba49c013043e8f76c999670aef146d33e05b3a0"}, + {file = "xxhash-3.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:c9e1b646af61f1fc7083bb7b40536be944f1ac67ef5e360bca2d73430186971a"}, + {file = "xxhash-3.4.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:961d948b7b1c1b6c08484bbce3d489cdf153e4122c3dfb07c2039621243d8795"}, + {file = "xxhash-3.4.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:719a378930504ab159f7b8e20fa2aa1896cde050011af838af7e7e3518dd82de"}, + {file = "xxhash-3.4.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:74fb5cb9406ccd7c4dd917f16630d2e5e8cbbb02fc2fca4e559b2a47a64f4940"}, + {file = "xxhash-3.4.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5dab508ac39e0ab988039bc7f962c6ad021acd81fd29145962b068df4148c476"}, + {file = "xxhash-3.4.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8c59f3e46e7daf4c589e8e853d700ef6607afa037bfad32c390175da28127e8c"}, + {file = "xxhash-3.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8cc07256eff0795e0f642df74ad096f8c5d23fe66bc138b83970b50fc7f7f6c5"}, + {file = "xxhash-3.4.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e9f749999ed80f3955a4af0eb18bb43993f04939350b07b8dd2f44edc98ffee9"}, + {file = "xxhash-3.4.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:7688d7c02149a90a3d46d55b341ab7ad1b4a3f767be2357e211b4e893efbaaf6"}, + {file = "xxhash-3.4.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a8b4977963926f60b0d4f830941c864bed16aa151206c01ad5c531636da5708e"}, + {file = "xxhash-3.4.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:8106d88da330f6535a58a8195aa463ef5281a9aa23b04af1848ff715c4398fb4"}, + {file = "xxhash-3.4.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:4c76a77dbd169450b61c06fd2d5d436189fc8ab7c1571d39265d4822da16df22"}, + {file = "xxhash-3.4.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:11f11357c86d83e53719c592021fd524efa9cf024dc7cb1dfb57bbbd0d8713f2"}, + {file = "xxhash-3.4.1-cp38-cp38-win32.whl", hash = "sha256:0c786a6cd74e8765c6809892a0d45886e7c3dc54de4985b4a5eb8b630f3b8e3b"}, + {file = "xxhash-3.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:aabf37fb8fa27430d50507deeab2ee7b1bcce89910dd10657c38e71fee835594"}, + {file = "xxhash-3.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6127813abc1477f3a83529b6bbcfeddc23162cece76fa69aee8f6a8a97720562"}, + {file = "xxhash-3.4.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ef2e194262f5db16075caea7b3f7f49392242c688412f386d3c7b07c7733a70a"}, + {file = "xxhash-3.4.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:71be94265b6c6590f0018bbf73759d21a41c6bda20409782d8117e76cd0dfa8b"}, + {file = "xxhash-3.4.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:10e0a619cdd1c0980e25eb04e30fe96cf8f4324758fa497080af9c21a6de573f"}, + {file = "xxhash-3.4.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fa122124d2e3bd36581dd78c0efa5f429f5220313479fb1072858188bc2d5ff1"}, + {file = "xxhash-3.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17032f5a4fea0a074717fe33477cb5ee723a5f428de7563e75af64bfc1b1e10"}, + {file = "xxhash-3.4.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca7783b20e3e4f3f52f093538895863f21d18598f9a48211ad757680c3bd006f"}, + {file = "xxhash-3.4.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d77d09a1113899fad5f354a1eb4f0a9afcf58cefff51082c8ad643ff890e30cf"}, + {file = "xxhash-3.4.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:21287bcdd299fdc3328cc0fbbdeaa46838a1c05391264e51ddb38a3f5b09611f"}, + {file = "xxhash-3.4.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:dfd7a6cc483e20b4ad90224aeb589e64ec0f31e5610ab9957ff4314270b2bf31"}, + {file = "xxhash-3.4.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:543c7fcbc02bbb4840ea9915134e14dc3dc15cbd5a30873a7a5bf66039db97ec"}, + {file = "xxhash-3.4.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:fe0a98d990e433013f41827b62be9ab43e3cf18e08b1483fcc343bda0d691182"}, + {file = "xxhash-3.4.1-cp39-cp39-win32.whl", hash = "sha256:b9097af00ebf429cc7c0e7d2fdf28384e4e2e91008130ccda8d5ae653db71e54"}, + {file = "xxhash-3.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:d699b921af0dcde50ab18be76c0d832f803034d80470703700cb7df0fbec2832"}, + {file = "xxhash-3.4.1-cp39-cp39-win_arm64.whl", hash = "sha256:2be491723405e15cc099ade1280133ccfbf6322d2ef568494fb7d07d280e7eee"}, + {file = "xxhash-3.4.1-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:431625fad7ab5649368c4849d2b49a83dc711b1f20e1f7f04955aab86cd307bc"}, + {file = "xxhash-3.4.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fc6dbd5fc3c9886a9e041848508b7fb65fd82f94cc793253990f81617b61fe49"}, + {file = "xxhash-3.4.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3ff8dbd0ec97aec842476cb8ccc3e17dd288cd6ce3c8ef38bff83d6eb927817"}, + {file = "xxhash-3.4.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ef73a53fe90558a4096e3256752268a8bdc0322f4692ed928b6cd7ce06ad4fe3"}, + {file = "xxhash-3.4.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:450401f42bbd274b519d3d8dcf3c57166913381a3d2664d6609004685039f9d3"}, + {file = "xxhash-3.4.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:a162840cf4de8a7cd8720ff3b4417fbc10001eefdd2d21541a8226bb5556e3bb"}, + {file = "xxhash-3.4.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b736a2a2728ba45017cb67785e03125a79d246462dfa892d023b827007412c52"}, + {file = "xxhash-3.4.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1d0ae4c2e7698adef58710d6e7a32ff518b66b98854b1c68e70eee504ad061d8"}, + {file = "xxhash-3.4.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d6322c4291c3ff174dcd104fae41500e75dad12be6f3085d119c2c8a80956c51"}, + {file = "xxhash-3.4.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:dd59ed668801c3fae282f8f4edadf6dc7784db6d18139b584b6d9677ddde1b6b"}, + {file = "xxhash-3.4.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:92693c487e39523a80474b0394645b393f0ae781d8db3474ccdcead0559ccf45"}, + {file = "xxhash-3.4.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4603a0f642a1e8d7f3ba5c4c25509aca6a9c1cc16f85091004a7028607ead663"}, + {file = "xxhash-3.4.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6fa45e8cbfbadb40a920fe9ca40c34b393e0b067082d94006f7f64e70c7490a6"}, + {file = "xxhash-3.4.1-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:595b252943b3552de491ff51e5bb79660f84f033977f88f6ca1605846637b7c6"}, + {file = "xxhash-3.4.1-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:562d8b8f783c6af969806aaacf95b6c7b776929ae26c0cd941d54644ea7ef51e"}, + {file = "xxhash-3.4.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:41ddeae47cf2828335d8d991f2d2b03b0bdc89289dc64349d712ff8ce59d0647"}, + {file = "xxhash-3.4.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c44d584afdf3c4dbb3277e32321d1a7b01d6071c1992524b6543025fb8f4206f"}, + {file = "xxhash-3.4.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd7bddb3a5b86213cc3f2c61500c16945a1b80ecd572f3078ddbbe68f9dabdfb"}, + {file = "xxhash-3.4.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9ecb6c987b62437c2f99c01e97caf8d25660bf541fe79a481d05732e5236719c"}, + {file = "xxhash-3.4.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:696b4e18b7023527d5c50ed0626ac0520edac45a50ec7cf3fc265cd08b1f4c03"}, + {file = "xxhash-3.4.1.tar.gz", hash = "sha256:0379d6cf1ff987cd421609a264ce025e74f346e3e145dd106c0cc2e3ec3f99a9"}, +] + +[[package]] +name = "yarl" +version = "1.9.4" +description = "Yet another URL library" +optional = false +python-versions = ">=3.7" +files = [ + {file = "yarl-1.9.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a8c1df72eb746f4136fe9a2e72b0c9dc1da1cbd23b5372f94b5820ff8ae30e0e"}, + {file = "yarl-1.9.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a3a6ed1d525bfb91b3fc9b690c5a21bb52de28c018530ad85093cc488bee2dd2"}, + {file = "yarl-1.9.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c38c9ddb6103ceae4e4498f9c08fac9b590c5c71b0370f98714768e22ac6fa66"}, + {file = "yarl-1.9.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d9e09c9d74f4566e905a0b8fa668c58109f7624db96a2171f21747abc7524234"}, + {file = "yarl-1.9.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b8477c1ee4bd47c57d49621a062121c3023609f7a13b8a46953eb6c9716ca392"}, + {file = "yarl-1.9.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5ff2c858f5f6a42c2a8e751100f237c5e869cbde669a724f2062d4c4ef93551"}, + {file = "yarl-1.9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:357495293086c5b6d34ca9616a43d329317feab7917518bc97a08f9e55648455"}, + {file = "yarl-1.9.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:54525ae423d7b7a8ee81ba189f131054defdb122cde31ff17477951464c1691c"}, + {file = "yarl-1.9.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:801e9264d19643548651b9db361ce3287176671fb0117f96b5ac0ee1c3530d53"}, + {file = "yarl-1.9.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e516dc8baf7b380e6c1c26792610230f37147bb754d6426462ab115a02944385"}, + {file = "yarl-1.9.4-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:7d5aaac37d19b2904bb9dfe12cdb08c8443e7ba7d2852894ad448d4b8f442863"}, + {file = "yarl-1.9.4-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:54beabb809ffcacbd9d28ac57b0db46e42a6e341a030293fb3185c409e626b8b"}, + {file = "yarl-1.9.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:bac8d525a8dbc2a1507ec731d2867025d11ceadcb4dd421423a5d42c56818541"}, + {file = "yarl-1.9.4-cp310-cp310-win32.whl", hash = "sha256:7855426dfbddac81896b6e533ebefc0af2f132d4a47340cee6d22cac7190022d"}, + {file = "yarl-1.9.4-cp310-cp310-win_amd64.whl", hash = "sha256:848cd2a1df56ddbffeb375535fb62c9d1645dde33ca4d51341378b3f5954429b"}, + {file = "yarl-1.9.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:35a2b9396879ce32754bd457d31a51ff0a9d426fd9e0e3c33394bf4b9036b099"}, + {file = "yarl-1.9.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4c7d56b293cc071e82532f70adcbd8b61909eec973ae9d2d1f9b233f3d943f2c"}, + {file = "yarl-1.9.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d8a1c6c0be645c745a081c192e747c5de06e944a0d21245f4cf7c05e457c36e0"}, + {file = "yarl-1.9.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4b3c1ffe10069f655ea2d731808e76e0f452fc6c749bea04781daf18e6039525"}, + {file = "yarl-1.9.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:549d19c84c55d11687ddbd47eeb348a89df9cb30e1993f1b128f4685cd0ebbf8"}, + {file = "yarl-1.9.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a7409f968456111140c1c95301cadf071bd30a81cbd7ab829169fb9e3d72eae9"}, + {file = "yarl-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e23a6d84d9d1738dbc6e38167776107e63307dfc8ad108e580548d1f2c587f42"}, + {file = "yarl-1.9.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d8b889777de69897406c9fb0b76cdf2fd0f31267861ae7501d93003d55f54fbe"}, + {file = "yarl-1.9.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:03caa9507d3d3c83bca08650678e25364e1843b484f19986a527630ca376ecce"}, + {file = "yarl-1.9.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:4e9035df8d0880b2f1c7f5031f33f69e071dfe72ee9310cfc76f7b605958ceb9"}, + {file = "yarl-1.9.4-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:c0ec0ed476f77db9fb29bca17f0a8fcc7bc97ad4c6c1d8959c507decb22e8572"}, + {file = "yarl-1.9.4-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:ee04010f26d5102399bd17f8df8bc38dc7ccd7701dc77f4a68c5b8d733406958"}, + {file = "yarl-1.9.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:49a180c2e0743d5d6e0b4d1a9e5f633c62eca3f8a86ba5dd3c471060e352ca98"}, + {file = "yarl-1.9.4-cp311-cp311-win32.whl", hash = "sha256:81eb57278deb6098a5b62e88ad8281b2ba09f2f1147c4767522353eaa6260b31"}, + {file = "yarl-1.9.4-cp311-cp311-win_amd64.whl", hash = "sha256:d1d2532b340b692880261c15aee4dc94dd22ca5d61b9db9a8a361953d36410b1"}, + {file = "yarl-1.9.4-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0d2454f0aef65ea81037759be5ca9947539667eecebca092733b2eb43c965a81"}, + {file = "yarl-1.9.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:44d8ffbb9c06e5a7f529f38f53eda23e50d1ed33c6c869e01481d3fafa6b8142"}, + {file = "yarl-1.9.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:aaaea1e536f98754a6e5c56091baa1b6ce2f2700cc4a00b0d49eca8dea471074"}, + {file = "yarl-1.9.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3777ce5536d17989c91696db1d459574e9a9bd37660ea7ee4d3344579bb6f129"}, + {file = "yarl-1.9.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9fc5fc1eeb029757349ad26bbc5880557389a03fa6ada41703db5e068881e5f2"}, + {file = "yarl-1.9.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ea65804b5dc88dacd4a40279af0cdadcfe74b3e5b4c897aa0d81cf86927fee78"}, + {file = "yarl-1.9.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa102d6d280a5455ad6a0f9e6d769989638718e938a6a0a2ff3f4a7ff8c62cc4"}, + {file = "yarl-1.9.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09efe4615ada057ba2d30df871d2f668af661e971dfeedf0c159927d48bbeff0"}, + {file = "yarl-1.9.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:008d3e808d03ef28542372d01057fd09168419cdc8f848efe2804f894ae03e51"}, + {file = "yarl-1.9.4-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:6f5cb257bc2ec58f437da2b37a8cd48f666db96d47b8a3115c29f316313654ff"}, + {file = "yarl-1.9.4-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:992f18e0ea248ee03b5a6e8b3b4738850ae7dbb172cc41c966462801cbf62cf7"}, + {file = "yarl-1.9.4-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:0e9d124c191d5b881060a9e5060627694c3bdd1fe24c5eecc8d5d7d0eb6faabc"}, + {file = "yarl-1.9.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:3986b6f41ad22988e53d5778f91855dc0399b043fc8946d4f2e68af22ee9ff10"}, + {file = "yarl-1.9.4-cp312-cp312-win32.whl", hash = "sha256:4b21516d181cd77ebd06ce160ef8cc2a5e9ad35fb1c5930882baff5ac865eee7"}, + {file = "yarl-1.9.4-cp312-cp312-win_amd64.whl", hash = "sha256:a9bd00dc3bc395a662900f33f74feb3e757429e545d831eef5bb280252631984"}, + {file = "yarl-1.9.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:63b20738b5aac74e239622d2fe30df4fca4942a86e31bf47a81a0e94c14df94f"}, + {file = "yarl-1.9.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7d7f7de27b8944f1fee2c26a88b4dabc2409d2fea7a9ed3df79b67277644e17"}, + {file = "yarl-1.9.4-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c74018551e31269d56fab81a728f683667e7c28c04e807ba08f8c9e3bba32f14"}, + {file = "yarl-1.9.4-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ca06675212f94e7a610e85ca36948bb8fc023e458dd6c63ef71abfd482481aa5"}, + {file = "yarl-1.9.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5aef935237d60a51a62b86249839b51345f47564208c6ee615ed2a40878dccdd"}, + {file = "yarl-1.9.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2b134fd795e2322b7684155b7855cc99409d10b2e408056db2b93b51a52accc7"}, + {file = "yarl-1.9.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:d25039a474c4c72a5ad4b52495056f843a7ff07b632c1b92ea9043a3d9950f6e"}, + {file = "yarl-1.9.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:f7d6b36dd2e029b6bcb8a13cf19664c7b8e19ab3a58e0fefbb5b8461447ed5ec"}, + {file = "yarl-1.9.4-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:957b4774373cf6f709359e5c8c4a0af9f6d7875db657adb0feaf8d6cb3c3964c"}, + {file = "yarl-1.9.4-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:d7eeb6d22331e2fd42fce928a81c697c9ee2d51400bd1a28803965883e13cead"}, + {file = "yarl-1.9.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:6a962e04b8f91f8c4e5917e518d17958e3bdee71fd1d8b88cdce74dd0ebbf434"}, + {file = "yarl-1.9.4-cp37-cp37m-win32.whl", hash = "sha256:f3bc6af6e2b8f92eced34ef6a96ffb248e863af20ef4fde9448cc8c9b858b749"}, + {file = "yarl-1.9.4-cp37-cp37m-win_amd64.whl", hash = "sha256:ad4d7a90a92e528aadf4965d685c17dacff3df282db1121136c382dc0b6014d2"}, + {file = "yarl-1.9.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:ec61d826d80fc293ed46c9dd26995921e3a82146feacd952ef0757236fc137be"}, + {file = "yarl-1.9.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8be9e837ea9113676e5754b43b940b50cce76d9ed7d2461df1af39a8ee674d9f"}, + {file = "yarl-1.9.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:bef596fdaa8f26e3d66af846bbe77057237cb6e8efff8cd7cc8dff9a62278bbf"}, + {file = "yarl-1.9.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2d47552b6e52c3319fede1b60b3de120fe83bde9b7bddad11a69fb0af7db32f1"}, + {file = "yarl-1.9.4-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84fc30f71689d7fc9168b92788abc977dc8cefa806909565fc2951d02f6b7d57"}, + {file = "yarl-1.9.4-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4aa9741085f635934f3a2583e16fcf62ba835719a8b2b28fb2917bb0537c1dfa"}, + {file = "yarl-1.9.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:206a55215e6d05dbc6c98ce598a59e6fbd0c493e2de4ea6cc2f4934d5a18d130"}, + {file = "yarl-1.9.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07574b007ee20e5c375a8fe4a0789fad26db905f9813be0f9fef5a68080de559"}, + {file = "yarl-1.9.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:5a2e2433eb9344a163aced6a5f6c9222c0786e5a9e9cac2c89f0b28433f56e23"}, + {file = "yarl-1.9.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:6ad6d10ed9b67a382b45f29ea028f92d25bc0bc1daf6c5b801b90b5aa70fb9ec"}, + {file = "yarl-1.9.4-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:6fe79f998a4052d79e1c30eeb7d6c1c1056ad33300f682465e1b4e9b5a188b78"}, + {file = "yarl-1.9.4-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:a825ec844298c791fd28ed14ed1bffc56a98d15b8c58a20e0e08c1f5f2bea1be"}, + {file = "yarl-1.9.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8619d6915b3b0b34420cf9b2bb6d81ef59d984cb0fde7544e9ece32b4b3043c3"}, + {file = "yarl-1.9.4-cp38-cp38-win32.whl", hash = "sha256:686a0c2f85f83463272ddffd4deb5e591c98aac1897d65e92319f729c320eece"}, + {file = "yarl-1.9.4-cp38-cp38-win_amd64.whl", hash = "sha256:a00862fb23195b6b8322f7d781b0dc1d82cb3bcac346d1e38689370cc1cc398b"}, + {file = "yarl-1.9.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:604f31d97fa493083ea21bd9b92c419012531c4e17ea6da0f65cacdcf5d0bd27"}, + {file = "yarl-1.9.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:8a854227cf581330ffa2c4824d96e52ee621dd571078a252c25e3a3b3d94a1b1"}, + {file = "yarl-1.9.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ba6f52cbc7809cd8d74604cce9c14868306ae4aa0282016b641c661f981a6e91"}, + {file = "yarl-1.9.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a6327976c7c2f4ee6816eff196e25385ccc02cb81427952414a64811037bbc8b"}, + {file = "yarl-1.9.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8397a3817d7dcdd14bb266283cd1d6fc7264a48c186b986f32e86d86d35fbac5"}, + {file = "yarl-1.9.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e0381b4ce23ff92f8170080c97678040fc5b08da85e9e292292aba67fdac6c34"}, + {file = "yarl-1.9.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:23d32a2594cb5d565d358a92e151315d1b2268bc10f4610d098f96b147370136"}, + {file = "yarl-1.9.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ddb2a5c08a4eaaba605340fdee8fc08e406c56617566d9643ad8bf6852778fc7"}, + {file = "yarl-1.9.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:26a1dc6285e03f3cc9e839a2da83bcbf31dcb0d004c72d0730e755b33466c30e"}, + {file = "yarl-1.9.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:18580f672e44ce1238b82f7fb87d727c4a131f3a9d33a5e0e82b793362bf18b4"}, + {file = "yarl-1.9.4-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:29e0f83f37610f173eb7e7b5562dd71467993495e568e708d99e9d1944f561ec"}, + {file = "yarl-1.9.4-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:1f23e4fe1e8794f74b6027d7cf19dc25f8b63af1483d91d595d4a07eca1fb26c"}, + {file = "yarl-1.9.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:db8e58b9d79200c76956cefd14d5c90af54416ff5353c5bfd7cbe58818e26ef0"}, + {file = "yarl-1.9.4-cp39-cp39-win32.whl", hash = "sha256:c7224cab95645c7ab53791022ae77a4509472613e839dab722a72abe5a684575"}, + {file = "yarl-1.9.4-cp39-cp39-win_amd64.whl", hash = "sha256:824d6c50492add5da9374875ce72db7a0733b29c2394890aef23d533106e2b15"}, + {file = "yarl-1.9.4-py3-none-any.whl", hash = "sha256:928cecb0ef9d5a7946eb6ff58417ad2fe9375762382f1bf5c55e61645f2c43ad"}, + {file = "yarl-1.9.4.tar.gz", hash = "sha256:566db86717cf8080b99b58b083b773a908ae40f06681e87e589a976faf8246bf"}, +] + +[package.dependencies] +idna = ">=2.0" +multidict = ">=4.0" + +[metadata] +lock-version = "2.0" +python-versions = "^3.12" +content-hash = "dedb681fe5d3ad31b8956e600d26d8980d8337db03537be142eaec1b305d594a" diff --git a/source-github/pyproject.toml b/source-github/pyproject.toml new file mode 100644 index 0000000000..5fafd71bd3 --- /dev/null +++ b/source-github/pyproject.toml @@ -0,0 +1,25 @@ +[tool.poetry] +name = "source-github" +version = "0.1.0" +description = "" +authors = ["Luishfs "] + +[tool.poetry.dependencies] +airbyte-cdk = "^0.52" +estuary-cdk = {path="../estuary-cdk", develop = true} +pydantic = "==1.10.14" +python = "^3.12" +sgqlc = "==16.3" + +[tool.poetry.group.dev.dependencies] +debugpy = "^1.8.0" +mypy = "^1.8.0" +pytest = "^7.4.3" +pytest-insta = "^0.3.0" +requests-mock = "^1.11.0" +pytest-mock = "^3.12.0" +mock = "^5.1.0" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/source-github/source_github/__init__.py b/source-github/source_github/__init__.py new file mode 100644 index 0000000000..9345170d78 --- /dev/null +++ b/source-github/source_github/__init__.py @@ -0,0 +1,27 @@ +""" +MIT License + +Copyright (c) 2020 Airbyte + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" + +from .source import SourceGithub + +__all__ = ["SourceGithub"] diff --git a/source-github/source_github/__main__.py b/source-github/source_github/__main__.py new file mode 100644 index 0000000000..39a4e6f443 --- /dev/null +++ b/source-github/source_github/__main__.py @@ -0,0 +1,31 @@ +import estuary_cdk.pydantic_polyfill # Must be first. + +import asyncio +import urllib +from estuary_cdk import shim_airbyte_cdk, flow +from source_github import SourceGithub + + +asyncio.run( + shim_airbyte_cdk.CaptureShim( + delegate=SourceGithub(), + oauth2=flow.OAuth2Spec( + provider="github", + authUrlTemplate=( + "https://github.com/login/oauth/authorize?client_id={{#urlencode}}{{{ client_id }}}{{/urlencode}}" + r"&redirect_uri={{#urlencode}}{{{ redirect_uri }}}{{/urlencode}}" + r"&scope=repo%20read:org%20read:repo_hook%20read:user%20read:discussion%20workflow" + r"&state={{#urlencode}}{{{ state }}}{{/urlencode}}" + ), + accessTokenUrlTemplate="https://github.com/login/oauth/access_token", + accessTokenHeaders={"Accept": "application/json"}, + accessTokenBody=( + "{\"client_id\": \"{{{ client_id }}}\", \"client_secret\": \"{{{ client_secret }}}\", \"redirect_uri\": \"{{{ redirect_uri }}}\", \"code\": \"{{{ code }}}\"}" + ), + accessTokenResponseMap={ + "access_token": "/access_token" + }, + ), + schema_inference=True, + ).serve() +) \ No newline at end of file diff --git a/source-github/source_github/config_migrations.py b/source-github/source_github/config_migrations.py new file mode 100644 index 0000000000..79ec73a9cd --- /dev/null +++ b/source-github/source_github/config_migrations.py @@ -0,0 +1,106 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# +import abc +import logging +from abc import ABC +from typing import Any, List, Mapping + +from airbyte_cdk.config_observation import create_connector_config_control_message +from airbyte_cdk.entrypoint import AirbyteEntrypoint +from airbyte_cdk.sources.message import InMemoryMessageRepository, MessageRepository + +from .source import SourceGithub + +logger = logging.getLogger("airbyte_logger") + + +class MigrateStringToArray(ABC): + """ + This class stands for migrating the config at runtime, + while providing the backward compatibility when falling back to the previous source version. + + Specifically, starting from `1.4.6`, the `repository` and `branch` properties should be like : + > List(["", "", ..., ""]) + instead of, in `1.4.5`: + > JSON STR: "repository_1 repository_2" + """ + + message_repository: MessageRepository = InMemoryMessageRepository() + + @property + @abc.abstractmethod + def migrate_from_key(self) -> str: + ... + + @property + @abc.abstractmethod + def migrate_to_key(self) -> str: + ... + + @classmethod + def _should_migrate(cls, config: Mapping[str, Any]) -> bool: + """ + This method determines whether config require migration. + Returns: + > True, if the transformation is necessary + > False, otherwise. + """ + if cls.migrate_from_key in config and cls.migrate_to_key not in config: + return True + return False + + @classmethod + def _transform_to_array(cls, config: Mapping[str, Any], source: SourceGithub = None) -> Mapping[str, Any]: + # assign old values to new property that will be used within the new version + config[cls.migrate_to_key] = config[cls.migrate_to_key] if cls.migrate_to_key in config else [] + data = set(filter(None, config.get(cls.migrate_from_key).split(" "))) + config[cls.migrate_to_key] = list(data | set(config[cls.migrate_to_key])) + return config + + @classmethod + def _modify_and_save(cls, config_path: str, source: SourceGithub, config: Mapping[str, Any]) -> Mapping[str, Any]: + # modify the config + migrated_config = cls._transform_to_array(config, source) + # save the config + source.write_config(migrated_config, config_path) + # return modified config + return migrated_config + + @classmethod + def _emit_control_message(cls, migrated_config: Mapping[str, Any]) -> None: + # add the Airbyte Control Message to message repo + cls.message_repository.emit_message(create_connector_config_control_message(migrated_config)) + # emit the Airbyte Control Message from message queue to stdout + for message in cls.message_repository._message_queue: + print(message.json(exclude_unset=True)) + + @classmethod + def migrate(cls, args: List[str], source: SourceGithub) -> None: + """ + This method checks the input args, should the config be migrated, + transform if necessary and emit the CONTROL message. + """ + # get config path + config_path = AirbyteEntrypoint(source).extract_config(args) + # proceed only if `--config` arg is provided + if config_path: + # read the existing config + config = source.read_config(config_path) + # migration check + if cls._should_migrate(config): + cls._emit_control_message( + cls._modify_and_save(config_path, source, config), + ) + + +class MigrateRepository(MigrateStringToArray): + + migrate_from_key: str = "repository" + migrate_to_key: str = "repositories" + + +class MigrateBranch(MigrateStringToArray): + + migrate_from_key: str = "branch" + migrate_to_key: str = "branches" diff --git a/source-github/source_github/constants.py b/source-github/source_github/constants.py new file mode 100644 index 0000000000..2144291b7c --- /dev/null +++ b/source-github/source_github/constants.py @@ -0,0 +1,9 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +TOKEN_SEPARATOR = "," +DEFAULT_PAGE_SIZE_FOR_LARGE_STREAM = 10 +DEFAULT_PAGE_SIZE = 100 +PERSONAL_ACCESS_TOKEN_TITLE = "Personal Access Token" +ACCESS_TOKEN_TITLE = "Access Token" diff --git a/source-github/source_github/github_schema.py b/source-github/source_github/github_schema.py new file mode 100644 index 0000000000..ace0d9c69e --- /dev/null +++ b/source-github/source_github/github_schema.py @@ -0,0 +1,41034 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +import sgqlc.types +import sgqlc.types.datetime +import sgqlc.types.relay + +github_schema = sgqlc.types.Schema() + + +# Unexport Node/PageInfo, let schema re-declare them +github_schema -= sgqlc.types.relay.Node +github_schema -= sgqlc.types.relay.PageInfo + + +__docformat__ = "markdown" + + +######################################################################## +# Scalars and Enumerations +######################################################################## +class ActorType(sgqlc.types.Enum): + """The actor's type. + + Enumeration Choices: + + * `TEAM`: Indicates a team actor. + * `USER`: Indicates a user actor. + """ + + __schema__ = github_schema + __choices__ = ("TEAM", "USER") + + +class AuditLogOrderField(sgqlc.types.Enum): + """Properties by which Audit Log connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order audit log entries by timestamp + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class Base64String(sgqlc.types.Scalar): + """A (potentially binary) string encoded using base64.""" + + __schema__ = github_schema + + +class BigInt(sgqlc.types.Scalar): + """Represents non-fractional signed whole numeric values. Since the + value may exceed the size of a 32-bit integer, it's encoded as a + string. + """ + + __schema__ = github_schema + + +Boolean = sgqlc.types.Boolean + + +class CheckAnnotationLevel(sgqlc.types.Enum): + """Represents an annotation's information level. + + Enumeration Choices: + + * `FAILURE`: An annotation indicating an inescapable error. + * `NOTICE`: An annotation indicating some information. + * `WARNING`: An annotation indicating an ignorable error. + """ + + __schema__ = github_schema + __choices__ = ("FAILURE", "NOTICE", "WARNING") + + +class CheckConclusionState(sgqlc.types.Enum): + """The possible states for a check suite or run conclusion. + + Enumeration Choices: + + * `ACTION_REQUIRED`: The check suite or run requires action. + * `CANCELLED`: The check suite or run has been cancelled. + * `FAILURE`: The check suite or run has failed. + * `NEUTRAL`: The check suite or run was neutral. + * `SKIPPED`: The check suite or run was skipped. + * `STALE`: The check suite or run was marked stale by GitHub. Only + GitHub can use this conclusion. + * `STARTUP_FAILURE`: The check suite or run has failed at startup. + * `SUCCESS`: The check suite or run has succeeded. + * `TIMED_OUT`: The check suite or run has timed out. + """ + + __schema__ = github_schema + __choices__ = ("ACTION_REQUIRED", "CANCELLED", "FAILURE", "NEUTRAL", "SKIPPED", "STALE", "STARTUP_FAILURE", "SUCCESS", "TIMED_OUT") + + +class CheckRunState(sgqlc.types.Enum): + """The possible states of a check run in a status rollup. + + Enumeration Choices: + + * `ACTION_REQUIRED`: The check run requires action. + * `CANCELLED`: The check run has been cancelled. + * `COMPLETED`: The check run has been completed. + * `FAILURE`: The check run has failed. + * `IN_PROGRESS`: The check run is in progress. + * `NEUTRAL`: The check run was neutral. + * `PENDING`: The check run is in pending state. + * `QUEUED`: The check run has been queued. + * `SKIPPED`: The check run was skipped. + * `STALE`: The check run was marked stale by GitHub. Only GitHub + can use this conclusion. + * `STARTUP_FAILURE`: The check run has failed at startup. + * `SUCCESS`: The check run has succeeded. + * `TIMED_OUT`: The check run has timed out. + * `WAITING`: The check run is in waiting state. + """ + + __schema__ = github_schema + __choices__ = ( + "ACTION_REQUIRED", + "CANCELLED", + "COMPLETED", + "FAILURE", + "IN_PROGRESS", + "NEUTRAL", + "PENDING", + "QUEUED", + "SKIPPED", + "STALE", + "STARTUP_FAILURE", + "SUCCESS", + "TIMED_OUT", + "WAITING", + ) + + +class CheckRunType(sgqlc.types.Enum): + """The possible types of check runs. + + Enumeration Choices: + + * `ALL`: Every check run available. + * `LATEST`: The latest check run. + """ + + __schema__ = github_schema + __choices__ = ("ALL", "LATEST") + + +class CheckStatusState(sgqlc.types.Enum): + """The possible states for a check suite or run status. + + Enumeration Choices: + + * `COMPLETED`: The check suite or run has been completed. + * `IN_PROGRESS`: The check suite or run is in progress. + * `PENDING`: The check suite or run is in pending state. + * `QUEUED`: The check suite or run has been queued. + * `REQUESTED`: The check suite or run has been requested. + * `WAITING`: The check suite or run is in waiting state. + """ + + __schema__ = github_schema + __choices__ = ("COMPLETED", "IN_PROGRESS", "PENDING", "QUEUED", "REQUESTED", "WAITING") + + +class CollaboratorAffiliation(sgqlc.types.Enum): + """Collaborators affiliation level with a subject. + + Enumeration Choices: + + * `ALL`: All collaborators the authenticated user can see. + * `DIRECT`: All collaborators with permissions to an organization- + owned subject, regardless of organization membership status. + * `OUTSIDE`: All outside collaborators of an organization-owned + subject. + """ + + __schema__ = github_schema + __choices__ = ("ALL", "DIRECT", "OUTSIDE") + + +class CommentAuthorAssociation(sgqlc.types.Enum): + """A comment author association with repository. + + Enumeration Choices: + + * `COLLABORATOR`: Author has been invited to collaborate on the + repository. + * `CONTRIBUTOR`: Author has previously committed to the + repository. + * `FIRST_TIMER`: Author has not previously committed to GitHub. + * `FIRST_TIME_CONTRIBUTOR`: Author has not previously committed to + the repository. + * `MANNEQUIN`: Author is a placeholder for an unclaimed user. + * `MEMBER`: Author is a member of the organization that owns the + repository. + * `NONE`: Author has no association with the repository. + * `OWNER`: Author is the owner of the repository. + """ + + __schema__ = github_schema + __choices__ = ("COLLABORATOR", "CONTRIBUTOR", "FIRST_TIMER", "FIRST_TIME_CONTRIBUTOR", "MANNEQUIN", "MEMBER", "NONE", "OWNER") + + +class CommentCannotUpdateReason(sgqlc.types.Enum): + """The possible errors that will prevent a user from updating a + comment. + + Enumeration Choices: + + * `ARCHIVED`: Unable to create comment because repository is + archived. + * `DENIED`: You cannot update this comment + * `INSUFFICIENT_ACCESS`: You must be the author or have write + access to this repository to update this comment. + * `LOCKED`: Unable to create comment because issue is locked. + * `LOGIN_REQUIRED`: You must be logged in to update this comment. + * `MAINTENANCE`: Repository is under maintenance. + * `VERIFIED_EMAIL_REQUIRED`: At least one email address must be + verified to update this comment. + """ + + __schema__ = github_schema + __choices__ = ("ARCHIVED", "DENIED", "INSUFFICIENT_ACCESS", "LOCKED", "LOGIN_REQUIRED", "MAINTENANCE", "VERIFIED_EMAIL_REQUIRED") + + +class CommitContributionOrderField(sgqlc.types.Enum): + """Properties by which commit contribution connections can be + ordered. + + Enumeration Choices: + + * `COMMIT_COUNT`: Order commit contributions by how many commits + they represent. + * `OCCURRED_AT`: Order commit contributions by when they were + made. + """ + + __schema__ = github_schema + __choices__ = ("COMMIT_COUNT", "OCCURRED_AT") + + +class ComparisonStatus(sgqlc.types.Enum): + """The status of a git comparison between two refs. + + Enumeration Choices: + + * `AHEAD`: The head ref is ahead of the base ref. + * `BEHIND`: The head ref is behind the base ref. + * `DIVERGED`: The head ref is both ahead and behind of the base + ref, indicating git history has diverged. + * `IDENTICAL`: The head ref and base ref are identical. + """ + + __schema__ = github_schema + __choices__ = ("AHEAD", "BEHIND", "DIVERGED", "IDENTICAL") + + +class ContributionLevel(sgqlc.types.Enum): + """Varying levels of contributions from none to many. + + Enumeration Choices: + + * `FIRST_QUARTILE`: Lowest 25% of days of contributions. + * `FOURTH_QUARTILE`: Highest 25% of days of contributions. More + contributions than the third quartile. + * `NONE`: No contributions occurred. + * `SECOND_QUARTILE`: Second lowest 25% of days of contributions. + More contributions than the first quartile. + * `THIRD_QUARTILE`: Second highest 25% of days of contributions. + More contributions than second quartile, less than the fourth + quartile. + """ + + __schema__ = github_schema + __choices__ = ("FIRST_QUARTILE", "FOURTH_QUARTILE", "NONE", "SECOND_QUARTILE", "THIRD_QUARTILE") + + +Date = sgqlc.types.datetime.Date + +DateTime = sgqlc.types.datetime.DateTime + + +class DefaultRepositoryPermissionField(sgqlc.types.Enum): + """The possible base permissions for repositories. + + Enumeration Choices: + + * `ADMIN`: Can read, write, and administrate repos by default + * `NONE`: No access + * `READ`: Can read repos by default + * `WRITE`: Can read and write repos by default + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "NONE", "READ", "WRITE") + + +class DependencyGraphEcosystem(sgqlc.types.Enum): + """The possible ecosystems of a dependency graph package. + + Enumeration Choices: + + * `ACTIONS`: GitHub Actions + * `COMPOSER`: PHP packages hosted at packagist.org + * `GO`: Go modules + * `MAVEN`: Java artifacts hosted at the Maven central repository + * `NPM`: JavaScript packages hosted at npmjs.com + * `NUGET`: .NET packages hosted at the NuGet Gallery + * `PIP`: Python packages hosted at PyPI.org + * `PUB`: Dart packages hosted at pub.dev + * `RUBYGEMS`: Ruby gems hosted at RubyGems.org + * `RUST`: Rust crates + """ + + __schema__ = github_schema + __choices__ = ("ACTIONS", "COMPOSER", "GO", "MAVEN", "NPM", "NUGET", "PIP", "PUB", "RUBYGEMS", "RUST") + + +class DeploymentOrderField(sgqlc.types.Enum): + """Properties by which deployment connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order collection by creation time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class DeploymentProtectionRuleType(sgqlc.types.Enum): + """The possible protection rule types. + + Enumeration Choices: + + * `REQUIRED_REVIEWERS`: Required reviewers + * `WAIT_TIMER`: Wait timer + """ + + __schema__ = github_schema + __choices__ = ("REQUIRED_REVIEWERS", "WAIT_TIMER") + + +class DeploymentReviewState(sgqlc.types.Enum): + """The possible states for a deployment review. + + Enumeration Choices: + + * `APPROVED`: The deployment was approved. + * `REJECTED`: The deployment was rejected. + """ + + __schema__ = github_schema + __choices__ = ("APPROVED", "REJECTED") + + +class DeploymentState(sgqlc.types.Enum): + """The possible states in which a deployment can be. + + Enumeration Choices: + + * `ABANDONED`: The pending deployment was not updated after 30 + minutes. + * `ACTIVE`: The deployment is currently active. + * `DESTROYED`: An inactive transient deployment. + * `ERROR`: The deployment experienced an error. + * `FAILURE`: The deployment has failed. + * `INACTIVE`: The deployment is inactive. + * `IN_PROGRESS`: The deployment is in progress. + * `PENDING`: The deployment is pending. + * `QUEUED`: The deployment has queued + * `SUCCESS`: The deployment was successful. + * `WAITING`: The deployment is waiting. + """ + + __schema__ = github_schema + __choices__ = ( + "ABANDONED", + "ACTIVE", + "DESTROYED", + "ERROR", + "FAILURE", + "INACTIVE", + "IN_PROGRESS", + "PENDING", + "QUEUED", + "SUCCESS", + "WAITING", + ) + + +class DeploymentStatusState(sgqlc.types.Enum): + """The possible states for a deployment status. + + Enumeration Choices: + + * `ERROR`: The deployment experienced an error. + * `FAILURE`: The deployment has failed. + * `INACTIVE`: The deployment is inactive. + * `IN_PROGRESS`: The deployment is in progress. + * `PENDING`: The deployment is pending. + * `QUEUED`: The deployment is queued + * `SUCCESS`: The deployment was successful. + * `WAITING`: The deployment is waiting. + """ + + __schema__ = github_schema + __choices__ = ("ERROR", "FAILURE", "INACTIVE", "IN_PROGRESS", "PENDING", "QUEUED", "SUCCESS", "WAITING") + + +class DiffSide(sgqlc.types.Enum): + """The possible sides of a diff. + + Enumeration Choices: + + * `LEFT`: The left side of the diff. + * `RIGHT`: The right side of the diff. + """ + + __schema__ = github_schema + __choices__ = ("LEFT", "RIGHT") + + +class DiscussionCloseReason(sgqlc.types.Enum): + """The possible reasons for closing a discussion. + + Enumeration Choices: + + * `DUPLICATE`: The discussion is a duplicate of another + * `OUTDATED`: The discussion is no longer relevant + * `RESOLVED`: The discussion has been resolved + """ + + __schema__ = github_schema + __choices__ = ("DUPLICATE", "OUTDATED", "RESOLVED") + + +class DiscussionOrderField(sgqlc.types.Enum): + """Properties by which discussion connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order discussions by creation time. + * `UPDATED_AT`: Order discussions by most recent modification + time. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "UPDATED_AT") + + +class DiscussionPollOptionOrderField(sgqlc.types.Enum): + """Properties by which discussion poll option connections can be + ordered. + + Enumeration Choices: + + * `AUTHORED_ORDER`: Order poll options by the order that the poll + author specified when creating the poll. + * `VOTE_COUNT`: Order poll options by the number of votes it has. + """ + + __schema__ = github_schema + __choices__ = ("AUTHORED_ORDER", "VOTE_COUNT") + + +class DiscussionState(sgqlc.types.Enum): + """The possible states of a discussion. + + Enumeration Choices: + + * `CLOSED`: A discussion that has been closed + * `OPEN`: A discussion that is open + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "OPEN") + + +class DiscussionStateReason(sgqlc.types.Enum): + """The possible state reasons of a discussion. + + Enumeration Choices: + + * `DUPLICATE`: The discussion is a duplicate of another + * `OUTDATED`: The discussion is no longer relevant + * `REOPENED`: The discussion was reopened + * `RESOLVED`: The discussion has been resolved + """ + + __schema__ = github_schema + __choices__ = ("DUPLICATE", "OUTDATED", "REOPENED", "RESOLVED") + + +class DismissReason(sgqlc.types.Enum): + """The possible reasons that a Dependabot alert was dismissed. + + Enumeration Choices: + + * `FIX_STARTED`: A fix has already been started + * `INACCURATE`: This alert is inaccurate or incorrect + * `NOT_USED`: Vulnerable code is not actually used + * `NO_BANDWIDTH`: No bandwidth to fix this + * `TOLERABLE_RISK`: Risk is tolerable to this project + """ + + __schema__ = github_schema + __choices__ = ("FIX_STARTED", "INACCURATE", "NOT_USED", "NO_BANDWIDTH", "TOLERABLE_RISK") + + +class EnterpriseAdministratorInvitationOrderField(sgqlc.types.Enum): + """Properties by which enterprise administrator invitation + connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order enterprise administrator member invitations + by creation time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class EnterpriseAdministratorRole(sgqlc.types.Enum): + """The possible administrator roles in an enterprise account. + + Enumeration Choices: + + * `BILLING_MANAGER`: Represents a billing manager of the + enterprise account. + * `OWNER`: Represents an owner of the enterprise account. + """ + + __schema__ = github_schema + __choices__ = ("BILLING_MANAGER", "OWNER") + + +class EnterpriseAllowPrivateRepositoryForkingPolicyValue(sgqlc.types.Enum): + """The possible values for the enterprise allow private repository + forking policy value. + + Enumeration Choices: + + * `ENTERPRISE_ORGANIZATIONS`: Members can fork a repository to an + organization within this enterprise. + * `ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS`: Members can fork a + repository to their enterprise-managed user account or an + organization inside this enterprise. + * `EVERYWHERE`: Members can fork a repository to their user + account or an organization, either inside or outside of this + enterprise. + * `SAME_ORGANIZATION`: Members can fork a repository only within + the same organization (intra-org). + * `SAME_ORGANIZATION_USER_ACCOUNTS`: Members can fork a repository + to their user account or within the same organization. + * `USER_ACCOUNTS`: Members can fork a repository to their user + account. + """ + + __schema__ = github_schema + __choices__ = ( + "ENTERPRISE_ORGANIZATIONS", + "ENTERPRISE_ORGANIZATIONS_USER_ACCOUNTS", + "EVERYWHERE", + "SAME_ORGANIZATION", + "SAME_ORGANIZATION_USER_ACCOUNTS", + "USER_ACCOUNTS", + ) + + +class EnterpriseDefaultRepositoryPermissionSettingValue(sgqlc.types.Enum): + """The possible values for the enterprise base repository permission + setting. + + Enumeration Choices: + + * `ADMIN`: Organization members will be able to clone, pull, push, + and add new collaborators to all organization repositories. + * `NONE`: Organization members will only be able to clone and pull + public repositories. + * `NO_POLICY`: Organizations in the enterprise choose base + repository permissions for their members. + * `READ`: Organization members will be able to clone and pull all + organization repositories. + * `WRITE`: Organization members will be able to clone, pull, and + push all organization repositories. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "NONE", "NO_POLICY", "READ", "WRITE") + + +class EnterpriseEnabledDisabledSettingValue(sgqlc.types.Enum): + """The possible values for an enabled/disabled enterprise setting. + + Enumeration Choices: + + * `DISABLED`: The setting is disabled for organizations in the + enterprise. + * `ENABLED`: The setting is enabled for organizations in the + enterprise. + * `NO_POLICY`: There is no policy set for organizations in the + enterprise. + """ + + __schema__ = github_schema + __choices__ = ("DISABLED", "ENABLED", "NO_POLICY") + + +class EnterpriseEnabledSettingValue(sgqlc.types.Enum): + """The possible values for an enabled/no policy enterprise setting. + + Enumeration Choices: + + * `ENABLED`: The setting is enabled for organizations in the + enterprise. + * `NO_POLICY`: There is no policy set for organizations in the + enterprise. + """ + + __schema__ = github_schema + __choices__ = ("ENABLED", "NO_POLICY") + + +class EnterpriseMemberOrderField(sgqlc.types.Enum): + """Properties by which enterprise member connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order enterprise members by creation time + * `LOGIN`: Order enterprise members by login + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "LOGIN") + + +class EnterpriseMembersCanCreateRepositoriesSettingValue(sgqlc.types.Enum): + """The possible values for the enterprise members can create + repositories setting. + + Enumeration Choices: + + * `ALL`: Members will be able to create public and private + repositories. + * `DISABLED`: Members will not be able to create public or private + repositories. + * `NO_POLICY`: Organization administrators choose whether to allow + members to create repositories. + * `PRIVATE`: Members will be able to create only private + repositories. + * `PUBLIC`: Members will be able to create only public + repositories. + """ + + __schema__ = github_schema + __choices__ = ("ALL", "DISABLED", "NO_POLICY", "PRIVATE", "PUBLIC") + + +class EnterpriseMembersCanMakePurchasesSettingValue(sgqlc.types.Enum): + """The possible values for the members can make purchases setting. + + Enumeration Choices: + + * `DISABLED`: The setting is disabled for organizations in the + enterprise. + * `ENABLED`: The setting is enabled for organizations in the + enterprise. + """ + + __schema__ = github_schema + __choices__ = ("DISABLED", "ENABLED") + + +class EnterpriseServerInstallationOrderField(sgqlc.types.Enum): + """Properties by which Enterprise Server installation connections can + be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order Enterprise Server installations by creation + time + * `CUSTOMER_NAME`: Order Enterprise Server installations by + customer name + * `HOST_NAME`: Order Enterprise Server installations by host name + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "CUSTOMER_NAME", "HOST_NAME") + + +class EnterpriseServerUserAccountEmailOrderField(sgqlc.types.Enum): + """Properties by which Enterprise Server user account email + connections can be ordered. + + Enumeration Choices: + + * `EMAIL`: Order emails by email + """ + + __schema__ = github_schema + __choices__ = ("EMAIL",) + + +class EnterpriseServerUserAccountOrderField(sgqlc.types.Enum): + """Properties by which Enterprise Server user account connections can + be ordered. + + Enumeration Choices: + + * `LOGIN`: Order user accounts by login + * `REMOTE_CREATED_AT`: Order user accounts by creation time on the + Enterprise Server installation + """ + + __schema__ = github_schema + __choices__ = ("LOGIN", "REMOTE_CREATED_AT") + + +class EnterpriseServerUserAccountsUploadOrderField(sgqlc.types.Enum): + """Properties by which Enterprise Server user accounts upload + connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order user accounts uploads by creation time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class EnterpriseServerUserAccountsUploadSyncState(sgqlc.types.Enum): + """Synchronization state of the Enterprise Server user accounts + upload + + Enumeration Choices: + + * `FAILURE`: The synchronization of the upload failed. + * `PENDING`: The synchronization of the upload is pending. + * `SUCCESS`: The synchronization of the upload succeeded. + """ + + __schema__ = github_schema + __choices__ = ("FAILURE", "PENDING", "SUCCESS") + + +class EnterpriseUserAccountMembershipRole(sgqlc.types.Enum): + """The possible roles for enterprise membership. + + Enumeration Choices: + + * `MEMBER`: The user is a member of an organization in the + enterprise. + * `OWNER`: The user is an owner of an organization in the + enterprise. + * `UNAFFILIATED`: The user is not an owner of the enterprise, and + not a member or owner of any organizations in the enterprise; + only for EMU-enabled enterprises. + """ + + __schema__ = github_schema + __choices__ = ("MEMBER", "OWNER", "UNAFFILIATED") + + +class EnterpriseUserDeployment(sgqlc.types.Enum): + """The possible GitHub Enterprise deployments where this user can + exist. + + Enumeration Choices: + + * `CLOUD`: The user is part of a GitHub Enterprise Cloud + deployment. + * `SERVER`: The user is part of a GitHub Enterprise Server + deployment. + """ + + __schema__ = github_schema + __choices__ = ("CLOUD", "SERVER") + + +class FileViewedState(sgqlc.types.Enum): + """The possible viewed states of a file . + + Enumeration Choices: + + * `DISMISSED`: The file has new changes since last viewed. + * `UNVIEWED`: The file has not been marked as viewed. + * `VIEWED`: The file has been marked as viewed. + """ + + __schema__ = github_schema + __choices__ = ("DISMISSED", "UNVIEWED", "VIEWED") + + +Float = sgqlc.types.Float + + +class FundingPlatform(sgqlc.types.Enum): + """The possible funding platforms for repository funding links. + + Enumeration Choices: + + * `COMMUNITY_BRIDGE`: Community Bridge funding platform. + * `CUSTOM`: Custom funding platform. + * `GITHUB`: GitHub funding platform. + * `ISSUEHUNT`: IssueHunt funding platform. + * `KO_FI`: Ko-fi funding platform. + * `LFX_CROWDFUNDING`: LFX Crowdfunding funding platform. + * `LIBERAPAY`: Liberapay funding platform. + * `OPEN_COLLECTIVE`: Open Collective funding platform. + * `OTECHIE`: Otechie funding platform. + * `PATREON`: Patreon funding platform. + * `TIDELIFT`: Tidelift funding platform. + """ + + __schema__ = github_schema + __choices__ = ( + "COMMUNITY_BRIDGE", + "CUSTOM", + "GITHUB", + "ISSUEHUNT", + "KO_FI", + "LFX_CROWDFUNDING", + "LIBERAPAY", + "OPEN_COLLECTIVE", + "OTECHIE", + "PATREON", + "TIDELIFT", + ) + + +class GistOrderField(sgqlc.types.Enum): + """Properties by which gist connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order gists by creation time + * `PUSHED_AT`: Order gists by push time + * `UPDATED_AT`: Order gists by update time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "PUSHED_AT", "UPDATED_AT") + + +class GistPrivacy(sgqlc.types.Enum): + """The privacy of a Gist + + Enumeration Choices: + + * `ALL`: Gists that are public and secret + * `PUBLIC`: Public + * `SECRET`: Secret + """ + + __schema__ = github_schema + __choices__ = ("ALL", "PUBLIC", "SECRET") + + +class GitObjectID(sgqlc.types.Scalar): + """A Git object ID.""" + + __schema__ = github_schema + + +class GitSSHRemote(sgqlc.types.Scalar): + """Git SSH string""" + + __schema__ = github_schema + + +class GitSignatureState(sgqlc.types.Enum): + """The state of a Git signature. + + Enumeration Choices: + + * `BAD_CERT`: The signing certificate or its chain could not be + verified + * `BAD_EMAIL`: Invalid email used for signing + * `EXPIRED_KEY`: Signing key expired + * `GPGVERIFY_ERROR`: Internal error - the GPG verification service + misbehaved + * `GPGVERIFY_UNAVAILABLE`: Internal error - the GPG verification + service is unavailable at the moment + * `INVALID`: Invalid signature + * `MALFORMED_SIG`: Malformed signature + * `NOT_SIGNING_KEY`: The usage flags for the key that signed this + don't allow signing + * `NO_USER`: Email used for signing not known to GitHub + * `OCSP_ERROR`: Valid signature, though certificate revocation + check failed + * `OCSP_PENDING`: Valid signature, pending certificate revocation + checking + * `OCSP_REVOKED`: One or more certificates in chain has been + revoked + * `UNKNOWN_KEY`: Key used for signing not known to GitHub + * `UNKNOWN_SIG_TYPE`: Unknown signature type + * `UNSIGNED`: Unsigned + * `UNVERIFIED_EMAIL`: Email used for signing unverified on GitHub + * `VALID`: Valid signature and verified by GitHub + """ + + __schema__ = github_schema + __choices__ = ( + "BAD_CERT", + "BAD_EMAIL", + "EXPIRED_KEY", + "GPGVERIFY_ERROR", + "GPGVERIFY_UNAVAILABLE", + "INVALID", + "MALFORMED_SIG", + "NOT_SIGNING_KEY", + "NO_USER", + "OCSP_ERROR", + "OCSP_PENDING", + "OCSP_REVOKED", + "UNKNOWN_KEY", + "UNKNOWN_SIG_TYPE", + "UNSIGNED", + "UNVERIFIED_EMAIL", + "VALID", + ) + + +class GitTimestamp(sgqlc.types.Scalar): + """An ISO-8601 encoded date string. Unlike the DateTime type, + GitTimestamp is not converted in UTC. + """ + + __schema__ = github_schema + + +class HTML(sgqlc.types.Scalar): + """A string containing HTML code.""" + + __schema__ = github_schema + + +ID = sgqlc.types.ID + + +class IdentityProviderConfigurationState(sgqlc.types.Enum): + """The possible states in which authentication can be configured with + an identity provider. + + Enumeration Choices: + + * `CONFIGURED`: Authentication with an identity provider is + configured but not enforced. + * `ENFORCED`: Authentication with an identity provider is + configured and enforced. + * `UNCONFIGURED`: Authentication with an identity provider is not + configured. + """ + + __schema__ = github_schema + __choices__ = ("CONFIGURED", "ENFORCED", "UNCONFIGURED") + + +Int = sgqlc.types.Int + + +class IpAllowListEnabledSettingValue(sgqlc.types.Enum): + """The possible values for the IP allow list enabled setting. + + Enumeration Choices: + + * `DISABLED`: The setting is disabled for the owner. + * `ENABLED`: The setting is enabled for the owner. + """ + + __schema__ = github_schema + __choices__ = ("DISABLED", "ENABLED") + + +class IpAllowListEntryOrderField(sgqlc.types.Enum): + """Properties by which IP allow list entry connections can be + ordered. + + Enumeration Choices: + + * `ALLOW_LIST_VALUE`: Order IP allow list entries by the allow + list value. + * `CREATED_AT`: Order IP allow list entries by creation time. + """ + + __schema__ = github_schema + __choices__ = ("ALLOW_LIST_VALUE", "CREATED_AT") + + +class IpAllowListForInstalledAppsEnabledSettingValue(sgqlc.types.Enum): + """The possible values for the IP allow list configuration for + installed GitHub Apps setting. + + Enumeration Choices: + + * `DISABLED`: The setting is disabled for the owner. + * `ENABLED`: The setting is enabled for the owner. + """ + + __schema__ = github_schema + __choices__ = ("DISABLED", "ENABLED") + + +class IssueClosedStateReason(sgqlc.types.Enum): + """The possible state reasons of a closed issue. + + Enumeration Choices: + + * `COMPLETED`: An issue that has been closed as completed + * `NOT_PLANNED`: An issue that has been closed as not planned + """ + + __schema__ = github_schema + __choices__ = ("COMPLETED", "NOT_PLANNED") + + +class IssueCommentOrderField(sgqlc.types.Enum): + """Properties by which issue comment connections can be ordered. + + Enumeration Choices: + + * `UPDATED_AT`: Order issue comments by update time + """ + + __schema__ = github_schema + __choices__ = ("UPDATED_AT",) + + +class IssueOrderField(sgqlc.types.Enum): + """Properties by which issue connections can be ordered. + + Enumeration Choices: + + * `COMMENTS`: Order issues by comment count + * `CREATED_AT`: Order issues by creation time + * `UPDATED_AT`: Order issues by update time + """ + + __schema__ = github_schema + __choices__ = ("COMMENTS", "CREATED_AT", "UPDATED_AT") + + +class IssueState(sgqlc.types.Enum): + """The possible states of an issue. + + Enumeration Choices: + + * `CLOSED`: An issue that has been closed + * `OPEN`: An issue that is still open + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "OPEN") + + +class IssueStateReason(sgqlc.types.Enum): + """The possible state reasons of an issue. + + Enumeration Choices: + + * `COMPLETED`: An issue that has been closed as completed + * `NOT_PLANNED`: An issue that has been closed as not planned + * `REOPENED`: An issue that has been reopened + """ + + __schema__ = github_schema + __choices__ = ("COMPLETED", "NOT_PLANNED", "REOPENED") + + +class IssueTimelineItemsItemType(sgqlc.types.Enum): + """The possible item types found in a timeline. + + Enumeration Choices: + + * `ADDED_TO_PROJECT_EVENT`: Represents a 'added_to_project' event + on a given issue or pull request. + * `ASSIGNED_EVENT`: Represents an 'assigned' event on any + assignable object. + * `CLOSED_EVENT`: Represents a 'closed' event on any `Closable`. + * `COMMENT_DELETED_EVENT`: Represents a 'comment_deleted' event on + a given issue or pull request. + * `CONNECTED_EVENT`: Represents a 'connected' event on a given + issue or pull request. + * `CONVERTED_NOTE_TO_ISSUE_EVENT`: Represents a + 'converted_note_to_issue' event on a given issue or pull + request. + * `CONVERTED_TO_DISCUSSION_EVENT`: Represents a + 'converted_to_discussion' event on a given issue. + * `CROSS_REFERENCED_EVENT`: Represents a mention made by one issue + or pull request to another. + * `DEMILESTONED_EVENT`: Represents a 'demilestoned' event on a + given issue or pull request. + * `DISCONNECTED_EVENT`: Represents a 'disconnected' event on a + given issue or pull request. + * `ISSUE_COMMENT`: Represents a comment on an Issue. + * `LABELED_EVENT`: Represents a 'labeled' event on a given issue + or pull request. + * `LOCKED_EVENT`: Represents a 'locked' event on a given issue or + pull request. + * `MARKED_AS_DUPLICATE_EVENT`: Represents a 'marked_as_duplicate' + event on a given issue or pull request. + * `MENTIONED_EVENT`: Represents a 'mentioned' event on a given + issue or pull request. + * `MILESTONED_EVENT`: Represents a 'milestoned' event on a given + issue or pull request. + * `MOVED_COLUMNS_IN_PROJECT_EVENT`: Represents a + 'moved_columns_in_project' event on a given issue or pull + request. + * `PINNED_EVENT`: Represents a 'pinned' event on a given issue or + pull request. + * `REFERENCED_EVENT`: Represents a 'referenced' event on a given + `ReferencedSubject`. + * `REMOVED_FROM_PROJECT_EVENT`: Represents a + 'removed_from_project' event on a given issue or pull request. + * `RENAMED_TITLE_EVENT`: Represents a 'renamed' event on a given + issue or pull request + * `REOPENED_EVENT`: Represents a 'reopened' event on any + `Closable`. + * `SUBSCRIBED_EVENT`: Represents a 'subscribed' event on a given + `Subscribable`. + * `TRANSFERRED_EVENT`: Represents a 'transferred' event on a given + issue or pull request. + * `UNASSIGNED_EVENT`: Represents an 'unassigned' event on any + assignable object. + * `UNLABELED_EVENT`: Represents an 'unlabeled' event on a given + issue or pull request. + * `UNLOCKED_EVENT`: Represents an 'unlocked' event on a given + issue or pull request. + * `UNMARKED_AS_DUPLICATE_EVENT`: Represents an + 'unmarked_as_duplicate' event on a given issue or pull request. + * `UNPINNED_EVENT`: Represents an 'unpinned' event on a given + issue or pull request. + * `UNSUBSCRIBED_EVENT`: Represents an 'unsubscribed' event on a + given `Subscribable`. + * `USER_BLOCKED_EVENT`: Represents a 'user_blocked' event on a + given user. + """ + + __schema__ = github_schema + __choices__ = ( + "ADDED_TO_PROJECT_EVENT", + "ASSIGNED_EVENT", + "CLOSED_EVENT", + "COMMENT_DELETED_EVENT", + "CONNECTED_EVENT", + "CONVERTED_NOTE_TO_ISSUE_EVENT", + "CONVERTED_TO_DISCUSSION_EVENT", + "CROSS_REFERENCED_EVENT", + "DEMILESTONED_EVENT", + "DISCONNECTED_EVENT", + "ISSUE_COMMENT", + "LABELED_EVENT", + "LOCKED_EVENT", + "MARKED_AS_DUPLICATE_EVENT", + "MENTIONED_EVENT", + "MILESTONED_EVENT", + "MOVED_COLUMNS_IN_PROJECT_EVENT", + "PINNED_EVENT", + "REFERENCED_EVENT", + "REMOVED_FROM_PROJECT_EVENT", + "RENAMED_TITLE_EVENT", + "REOPENED_EVENT", + "SUBSCRIBED_EVENT", + "TRANSFERRED_EVENT", + "UNASSIGNED_EVENT", + "UNLABELED_EVENT", + "UNLOCKED_EVENT", + "UNMARKED_AS_DUPLICATE_EVENT", + "UNPINNED_EVENT", + "UNSUBSCRIBED_EVENT", + "USER_BLOCKED_EVENT", + ) + + +class LabelOrderField(sgqlc.types.Enum): + """Properties by which label connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order labels by creation time + * `NAME`: Order labels by name + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME") + + +class LanguageOrderField(sgqlc.types.Enum): + """Properties by which language connections can be ordered. + + Enumeration Choices: + + * `SIZE`: Order languages by the size of all files containing the + language + """ + + __schema__ = github_schema + __choices__ = ("SIZE",) + + +class LockReason(sgqlc.types.Enum): + """The possible reasons that an issue or pull request was locked. + + Enumeration Choices: + + * `OFF_TOPIC`: The issue or pull request was locked because the + conversation was off-topic. + * `RESOLVED`: The issue or pull request was locked because the + conversation was resolved. + * `SPAM`: The issue or pull request was locked because the + conversation was spam. + * `TOO_HEATED`: The issue or pull request was locked because the + conversation was too heated. + """ + + __schema__ = github_schema + __choices__ = ("OFF_TOPIC", "RESOLVED", "SPAM", "TOO_HEATED") + + +class MergeStateStatus(sgqlc.types.Enum): + """Detailed status information about a pull request merge. + + Enumeration Choices: + + * `BEHIND`: The head ref is out of date. + * `BLOCKED`: The merge is blocked. + * `CLEAN`: Mergeable and passing commit status. + * `DIRTY`: The merge commit cannot be cleanly created. + * `HAS_HOOKS`: Mergeable with passing commit status and prereceive hooks. + * `UNKNOWN`: The state cannot currently be determined. + * `UNSTABLE`: Mergeable with non-passing commit status. + """ + + __schema__ = github_schema + __choices__ = ("BEHIND", "BLOCKED", "CLEAN", "DIRTY", "HAS_HOOKS", "UNKNOWN", "UNSTABLE") + + +class MannequinOrderField(sgqlc.types.Enum): + """Properties by which mannequins can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order mannequins why when they were created. + * `LOGIN`: Order mannequins alphabetically by their source login. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "LOGIN") + + +class MergeCommitMessage(sgqlc.types.Enum): + """The possible default commit messages for merges. + + Enumeration Choices: + + * `BLANK`: Default to a blank commit message. + * `PR_BODY`: Default to the pull request's body. + * `PR_TITLE`: Default to the pull request's title. + """ + + __schema__ = github_schema + __choices__ = ("BLANK", "PR_BODY", "PR_TITLE") + + +class MergeCommitTitle(sgqlc.types.Enum): + """The possible default commit titles for merges. + + Enumeration Choices: + + * `MERGE_MESSAGE`: Default to the classic title for a merge + message (e.g., Merge pull request #123 from branch-name). + * `PR_TITLE`: Default to the pull request's title. + """ + + __schema__ = github_schema + __choices__ = ("MERGE_MESSAGE", "PR_TITLE") + + +class MergeQueueEntryState(sgqlc.types.Enum): + """The possible states for a merge queue entry. + + Enumeration Choices: + + * `AWAITING_CHECKS`: The entry is currently waiting for checks to + pass. + * `LOCKED`: The entry is currently locked. + * `MERGEABLE`: The entry is currently mergeable. + * `QUEUED`: The entry is currently queued. + * `UNMERGEABLE`: The entry is currently unmergeable. + """ + + __schema__ = github_schema + __choices__ = ("AWAITING_CHECKS", "LOCKED", "MERGEABLE", "QUEUED", "UNMERGEABLE") + + +class MergeQueueMergingStrategy(sgqlc.types.Enum): + """The possible merging strategies for a merge queue. + + Enumeration Choices: + + * `ALLGREEN`: Entries only allowed to merge if they are passing. + * `HEADGREEN`: Failing Entires are allowed to merge if they are + with a passing entry. + """ + + __schema__ = github_schema + __choices__ = ("ALLGREEN", "HEADGREEN") + + +class MergeableState(sgqlc.types.Enum): + """Whether or not a PullRequest can be merged. + + Enumeration Choices: + + * `CONFLICTING`: The pull request cannot be merged due to merge + conflicts. + * `MERGEABLE`: The pull request can be merged. + * `UNKNOWN`: The mergeability of the pull request is still being + calculated. + """ + + __schema__ = github_schema + __choices__ = ("CONFLICTING", "MERGEABLE", "UNKNOWN") + + +class MigrationSourceType(sgqlc.types.Enum): + """Represents the different GitHub Enterprise Importer (GEI) + migration sources. + + Enumeration Choices: + + * `AZURE_DEVOPS`: An Azure DevOps migration source. + * `BITBUCKET_SERVER`: A Bitbucket Server migration source. + * `GITHUB_ARCHIVE`: A GitHub Migration API source. + """ + + __schema__ = github_schema + __choices__ = ("AZURE_DEVOPS", "BITBUCKET_SERVER", "GITHUB_ARCHIVE") + + +class MigrationState(sgqlc.types.Enum): + """The GitHub Enterprise Importer (GEI) migration state. + + Enumeration Choices: + + * `FAILED`: The migration has failed. + * `FAILED_VALIDATION`: The migration has invalid credentials. + * `IN_PROGRESS`: The migration is in progress. + * `NOT_STARTED`: The migration has not started. + * `PENDING_VALIDATION`: The migration needs to have its + credentials validated. + * `QUEUED`: The migration has been queued. + * `SUCCEEDED`: The migration has succeeded. + """ + + __schema__ = github_schema + __choices__ = ("FAILED", "FAILED_VALIDATION", "IN_PROGRESS", "NOT_STARTED", "PENDING_VALIDATION", "QUEUED", "SUCCEEDED") + + +class MilestoneOrderField(sgqlc.types.Enum): + """Properties by which milestone connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order milestones by when they were created. + * `DUE_DATE`: Order milestones by when they are due. + * `NUMBER`: Order milestones by their number. + * `UPDATED_AT`: Order milestones by when they were last updated. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "DUE_DATE", "NUMBER", "UPDATED_AT") + + +class MilestoneState(sgqlc.types.Enum): + """The possible states of a milestone. + + Enumeration Choices: + + * `CLOSED`: A milestone that has been closed. + * `OPEN`: A milestone that is still open. + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "OPEN") + + +class NotificationRestrictionSettingValue(sgqlc.types.Enum): + """The possible values for the notification restriction setting. + + Enumeration Choices: + + * `DISABLED`: The setting is disabled for the owner. + * `ENABLED`: The setting is enabled for the owner. + """ + + __schema__ = github_schema + __choices__ = ("DISABLED", "ENABLED") + + +class OIDCProviderType(sgqlc.types.Enum): + """The OIDC identity provider type + + Enumeration Choices: + + * `AAD`: Azure Active Directory + """ + + __schema__ = github_schema + __choices__ = ("AAD",) + + +class OauthApplicationCreateAuditEntryState(sgqlc.types.Enum): + """The state of an OAuth application when it was created. + + Enumeration Choices: + + * `ACTIVE`: The OAuth application was active and allowed to have + OAuth Accesses. + * `PENDING_DELETION`: The OAuth application was in the process of + being deleted. + * `SUSPENDED`: The OAuth application was suspended from generating + OAuth Accesses due to abuse or security concerns. + """ + + __schema__ = github_schema + __choices__ = ("ACTIVE", "PENDING_DELETION", "SUSPENDED") + + +class OperationType(sgqlc.types.Enum): + """The corresponding operation type for the action + + Enumeration Choices: + + * `ACCESS`: An existing resource was accessed + * `AUTHENTICATION`: A resource performed an authentication event + * `CREATE`: A new resource was created + * `MODIFY`: An existing resource was modified + * `REMOVE`: An existing resource was removed + * `RESTORE`: An existing resource was restored + * `TRANSFER`: An existing resource was transferred between + multiple resources + """ + + __schema__ = github_schema + __choices__ = ("ACCESS", "AUTHENTICATION", "CREATE", "MODIFY", "REMOVE", "RESTORE", "TRANSFER") + + +class OrderDirection(sgqlc.types.Enum): + """Possible directions in which to order a list of items when + provided an `orderBy` argument. + + Enumeration Choices: + + * `ASC`: Specifies an ascending order for a given `orderBy` + argument. + * `DESC`: Specifies a descending order for a given `orderBy` + argument. + """ + + __schema__ = github_schema + __choices__ = ("ASC", "DESC") + + +class OrgAddMemberAuditEntryPermission(sgqlc.types.Enum): + """The permissions available to members on an Organization. + + Enumeration Choices: + + * `ADMIN`: Can read, clone, push, and add collaborators to + repositories. + * `READ`: Can read and clone repositories. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "READ") + + +class OrgCreateAuditEntryBillingPlan(sgqlc.types.Enum): + """The billing plans available for organizations. + + Enumeration Choices: + + * `BUSINESS`: Team Plan + * `BUSINESS_PLUS`: Enterprise Cloud Plan + * `FREE`: Free Plan + * `TIERED_PER_SEAT`: Tiered Per Seat Plan + * `UNLIMITED`: Legacy Unlimited Plan + """ + + __schema__ = github_schema + __choices__ = ("BUSINESS", "BUSINESS_PLUS", "FREE", "TIERED_PER_SEAT", "UNLIMITED") + + +class OrgEnterpriseOwnerOrderField(sgqlc.types.Enum): + """Properties by which enterprise owners can be ordered. + + Enumeration Choices: + + * `LOGIN`: Order enterprise owners by login. + """ + + __schema__ = github_schema + __choices__ = ("LOGIN",) + + +class OrgRemoveBillingManagerAuditEntryReason(sgqlc.types.Enum): + """The reason a billing manager was removed from an Organization. + + Enumeration Choices: + + * `SAML_EXTERNAL_IDENTITY_MISSING`: SAML external identity missing + * `SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY`: SAML SSO + enforcement requires an external identity + * `TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE`: The organization + required 2FA of its billing managers and this user did not have + 2FA enabled. + """ + + __schema__ = github_schema + __choices__ = ( + "SAML_EXTERNAL_IDENTITY_MISSING", + "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY", + "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE", + ) + + +class OrgRemoveMemberAuditEntryMembershipType(sgqlc.types.Enum): + """The type of membership a user has with an Organization. + + Enumeration Choices: + + * `ADMIN`: Organization administrators have full access and can + change several settings, including the names of repositories + that belong to the Organization and Owners team membership. In + addition, organization admins can delete the organization and + all of its repositories. + * `BILLING_MANAGER`: A billing manager is a user who manages the + billing settings for the Organization, such as updating payment + information. + * `DIRECT_MEMBER`: A direct member is a user that is a member of + the Organization. + * `OUTSIDE_COLLABORATOR`: An outside collaborator is a person who + isn't explicitly a member of the Organization, but who has Read, + Write, or Admin permissions to one or more repositories in the + organization. + * `SUSPENDED`: A suspended member. + * `UNAFFILIATED`: An unaffiliated collaborator is a person who is + not a member of the Organization and does not have access to any + repositories in the Organization. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "BILLING_MANAGER", "DIRECT_MEMBER", "OUTSIDE_COLLABORATOR", "SUSPENDED", "UNAFFILIATED") + + +class OrgRemoveMemberAuditEntryReason(sgqlc.types.Enum): + """The reason a member was removed from an Organization. + + Enumeration Choices: + + * `SAML_EXTERNAL_IDENTITY_MISSING`: SAML external identity missing + * `SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY`: SAML SSO + enforcement requires an external identity + * `TWO_FACTOR_ACCOUNT_RECOVERY`: User was removed from + organization during account recovery + * `TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE`: The organization + required 2FA of its billing managers and this user did not have + 2FA enabled. + * `USER_ACCOUNT_DELETED`: User account has been deleted + """ + + __schema__ = github_schema + __choices__ = ( + "SAML_EXTERNAL_IDENTITY_MISSING", + "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY", + "TWO_FACTOR_ACCOUNT_RECOVERY", + "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE", + "USER_ACCOUNT_DELETED", + ) + + +class OrgRemoveOutsideCollaboratorAuditEntryMembershipType(sgqlc.types.Enum): + """The type of membership a user has with an Organization. + + Enumeration Choices: + + * `BILLING_MANAGER`: A billing manager is a user who manages the + billing settings for the Organization, such as updating payment + information. + * `OUTSIDE_COLLABORATOR`: An outside collaborator is a person who + isn't explicitly a member of the Organization, but who has Read, + Write, or Admin permissions to one or more repositories in the + organization. + * `UNAFFILIATED`: An unaffiliated collaborator is a person who is + not a member of the Organization and does not have access to any + repositories in the organization. + """ + + __schema__ = github_schema + __choices__ = ("BILLING_MANAGER", "OUTSIDE_COLLABORATOR", "UNAFFILIATED") + + +class OrgRemoveOutsideCollaboratorAuditEntryReason(sgqlc.types.Enum): + """The reason an outside collaborator was removed from an + Organization. + + Enumeration Choices: + + * `SAML_EXTERNAL_IDENTITY_MISSING`: SAML external identity missing + * `TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE`: The organization + required 2FA of its billing managers and this user did not have + 2FA enabled. + """ + + __schema__ = github_schema + __choices__ = ("SAML_EXTERNAL_IDENTITY_MISSING", "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE") + + +class OrgUpdateDefaultRepositoryPermissionAuditEntryPermission(sgqlc.types.Enum): + """The default permission a repository can have in an Organization. + + Enumeration Choices: + + * `ADMIN`: Can read, clone, push, and add collaborators to + repositories. + * `NONE`: No default permission value. + * `READ`: Can read and clone repositories. + * `WRITE`: Can read, clone and push to repositories. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "NONE", "READ", "WRITE") + + +class OrgUpdateMemberAuditEntryPermission(sgqlc.types.Enum): + """The permissions available to members on an Organization. + + Enumeration Choices: + + * `ADMIN`: Can read, clone, push, and add collaborators to + repositories. + * `READ`: Can read and clone repositories. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "READ") + + +class OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility(sgqlc.types.Enum): + """The permissions available for repository creation on an + Organization. + + Enumeration Choices: + + * `ALL`: All organization members are restricted from creating any + repositories. + * `INTERNAL`: All organization members are restricted from + creating internal repositories. + * `NONE`: All organization members are allowed to create any + repositories. + * `PRIVATE`: All organization members are restricted from creating + private repositories. + * `PRIVATE_INTERNAL`: All organization members are restricted from + creating private or internal repositories. + * `PUBLIC`: All organization members are restricted from creating + public repositories. + * `PUBLIC_INTERNAL`: All organization members are restricted from + creating public or internal repositories. + * `PUBLIC_PRIVATE`: All organization members are restricted from + creating public or private repositories. + """ + + __schema__ = github_schema + __choices__ = ("ALL", "INTERNAL", "NONE", "PRIVATE", "PRIVATE_INTERNAL", "PUBLIC", "PUBLIC_INTERNAL", "PUBLIC_PRIVATE") + + +class OrganizationInvitationRole(sgqlc.types.Enum): + """The possible organization invitation roles. + + Enumeration Choices: + + * `ADMIN`: The user is invited to be an admin of the organization. + * `BILLING_MANAGER`: The user is invited to be a billing manager + of the organization. + * `DIRECT_MEMBER`: The user is invited to be a direct member of + the organization. + * `REINSTATE`: The user's previous role will be reinstated. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "BILLING_MANAGER", "DIRECT_MEMBER", "REINSTATE") + + +class OrganizationInvitationSource(sgqlc.types.Enum): + """The possible organization invitation sources. + + Enumeration Choices: + + * `MEMBER`: The invitation was created from the web interface or + from API + * `SCIM`: The invitation was created from SCIM + * `UNKNOWN`: The invitation was sent before this feature was added + """ + + __schema__ = github_schema + __choices__ = ("MEMBER", "SCIM", "UNKNOWN") + + +class OrganizationInvitationType(sgqlc.types.Enum): + """The possible organization invitation types. + + Enumeration Choices: + + * `EMAIL`: The invitation was to an email address. + * `USER`: The invitation was to an existing user. + """ + + __schema__ = github_schema + __choices__ = ("EMAIL", "USER") + + +class OrganizationMemberRole(sgqlc.types.Enum): + """The possible roles within an organization for its members. + + Enumeration Choices: + + * `ADMIN`: The user is an administrator of the organization. + * `MEMBER`: The user is a member of the organization. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "MEMBER") + + +class OrganizationMembersCanCreateRepositoriesSettingValue(sgqlc.types.Enum): + """The possible values for the members can create repositories + setting on an organization. + + Enumeration Choices: + + * `ALL`: Members will be able to create public and private + repositories. + * `DISABLED`: Members will not be able to create public or private + repositories. + * `INTERNAL`: Members will be able to create only internal + repositories. + * `PRIVATE`: Members will be able to create only private + repositories. + """ + + __schema__ = github_schema + __choices__ = ("ALL", "DISABLED", "INTERNAL", "PRIVATE") + + +class OrganizationMigrationState(sgqlc.types.Enum): + """The Octoshift Organization migration state. + + Enumeration Choices: + + * `FAILED`: The Octoshift migration has failed. + * `FAILED_VALIDATION`: The Octoshift migration has invalid + credentials. + * `IN_PROGRESS`: The Octoshift migration is in progress. + * `NOT_STARTED`: The Octoshift migration has not started. + * `PENDING_VALIDATION`: The Octoshift migration needs to have its + credentials validated. + * `POST_REPO_MIGRATION`: The Octoshift migration is performing + post repository migrations. + * `PRE_REPO_MIGRATION`: The Octoshift migration is performing pre + repository migrations. + * `QUEUED`: The Octoshift migration has been queued. + * `REPO_MIGRATION`: The Octoshift org migration is performing + repository migrations. + * `SUCCEEDED`: The Octoshift migration has succeeded. + """ + + __schema__ = github_schema + __choices__ = ( + "FAILED", + "FAILED_VALIDATION", + "IN_PROGRESS", + "NOT_STARTED", + "PENDING_VALIDATION", + "POST_REPO_MIGRATION", + "PRE_REPO_MIGRATION", + "QUEUED", + "REPO_MIGRATION", + "SUCCEEDED", + ) + + +class OrganizationOrderField(sgqlc.types.Enum): + """Properties by which organization connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order organizations by creation time + * `LOGIN`: Order organizations by login + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "LOGIN") + + +class PackageFileOrderField(sgqlc.types.Enum): + """Properties by which package file connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order package files by creation time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class PackageOrderField(sgqlc.types.Enum): + """Properties by which package connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order packages by creation time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class PackageType(sgqlc.types.Enum): + """The possible types of a package. + + Enumeration Choices: + + * `DEBIAN`: A debian package. + * `PYPI`: A python package. + """ + + __schema__ = github_schema + __choices__ = ("DEBIAN", "PYPI") + + +class PackageVersionOrderField(sgqlc.types.Enum): + """Properties by which package version connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order package versions by creation time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class PatchStatus(sgqlc.types.Enum): + """The possible types of patch statuses. + + Enumeration Choices: + + * `ADDED`: The file was added. Git status 'A'. + * `CHANGED`: The file's type was changed. Git status 'T'. + * `COPIED`: The file was copied. Git status 'C'. + * `DELETED`: The file was deleted. Git status 'D'. + * `MODIFIED`: The file's contents were changed. Git status 'M'. + * `RENAMED`: The file was renamed. Git status 'R'. + """ + + __schema__ = github_schema + __choices__ = ("ADDED", "CHANGED", "COPIED", "DELETED", "MODIFIED", "RENAMED") + + +class PinnableItemType(sgqlc.types.Enum): + """Represents items that can be pinned to a profile page or + dashboard. + + Enumeration Choices: + + * `GIST`: A gist. + * `ISSUE`: An issue. + * `ORGANIZATION`: An organization. + * `PROJECT`: A project. + * `PULL_REQUEST`: A pull request. + * `REPOSITORY`: A repository. + * `TEAM`: A team. + * `USER`: A user. + """ + + __schema__ = github_schema + __choices__ = ("GIST", "ISSUE", "ORGANIZATION", "PROJECT", "PULL_REQUEST", "REPOSITORY", "TEAM", "USER") + + +class PinnedDiscussionGradient(sgqlc.types.Enum): + """Preconfigured gradients that may be used to style discussions + pinned within a repository. + + Enumeration Choices: + + * `BLUE_MINT`: A gradient of blue to mint + * `BLUE_PURPLE`: A gradient of blue to purple + * `PINK_BLUE`: A gradient of pink to blue + * `PURPLE_CORAL`: A gradient of purple to coral + * `RED_ORANGE`: A gradient of red to orange + """ + + __schema__ = github_schema + __choices__ = ("BLUE_MINT", "BLUE_PURPLE", "PINK_BLUE", "PURPLE_CORAL", "RED_ORANGE") + + +class PinnedDiscussionPattern(sgqlc.types.Enum): + """Preconfigured background patterns that may be used to style + discussions pinned within a repository. + + Enumeration Choices: + + * `CHEVRON_UP`: An upward-facing chevron pattern + * `DOT`: A hollow dot pattern + * `DOT_FILL`: A solid dot pattern + * `HEART_FILL`: A heart pattern + * `PLUS`: A plus sign pattern + * `ZAP`: A lightning bolt pattern + """ + + __schema__ = github_schema + __choices__ = ("CHEVRON_UP", "DOT", "DOT_FILL", "HEART_FILL", "PLUS", "ZAP") + + +class PreciseDateTime(sgqlc.types.Scalar): + """An ISO-8601 encoded UTC date string with millisecond precision.""" + + __schema__ = github_schema + + +class ProjectCardArchivedState(sgqlc.types.Enum): + """The possible archived states of a project card. + + Enumeration Choices: + + * `ARCHIVED`: A project card that is archived + * `NOT_ARCHIVED`: A project card that is not archived + """ + + __schema__ = github_schema + __choices__ = ("ARCHIVED", "NOT_ARCHIVED") + + +class ProjectCardState(sgqlc.types.Enum): + """Various content states of a ProjectCard + + Enumeration Choices: + + * `CONTENT_ONLY`: The card has content only. + * `NOTE_ONLY`: The card has a note only. + * `REDACTED`: The card is redacted. + """ + + __schema__ = github_schema + __choices__ = ("CONTENT_ONLY", "NOTE_ONLY", "REDACTED") + + +class ProjectColumnPurpose(sgqlc.types.Enum): + """The semantic purpose of the column - todo, in progress, or done. + + Enumeration Choices: + + * `DONE`: The column contains cards which are complete + * `IN_PROGRESS`: The column contains cards which are currently + being worked on + * `TODO`: The column contains cards still to be worked on + """ + + __schema__ = github_schema + __choices__ = ("DONE", "IN_PROGRESS", "TODO") + + +class ProjectOrderField(sgqlc.types.Enum): + """Properties by which project connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order projects by creation time + * `NAME`: Order projects by name + * `UPDATED_AT`: Order projects by update time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME", "UPDATED_AT") + + +class ProjectState(sgqlc.types.Enum): + """State of the project; either 'open' or 'closed' + + Enumeration Choices: + + * `CLOSED`: The project is closed. + * `OPEN`: The project is open. + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "OPEN") + + +class ProjectTemplate(sgqlc.types.Enum): + """GitHub-provided templates for Projects + + Enumeration Choices: + + * `AUTOMATED_KANBAN_V2`: Create a board with v2 triggers to + automatically move cards across To do, In progress and Done + columns. + * `AUTOMATED_REVIEWS_KANBAN`: Create a board with triggers to + automatically move cards across columns with review automation. + * `BASIC_KANBAN`: Create a board with columns for To do, In + progress and Done. + * `BUG_TRIAGE`: Create a board to triage and prioritize bugs with + To do, priority, and Done columns. + """ + + __schema__ = github_schema + __choices__ = ("AUTOMATED_KANBAN_V2", "AUTOMATED_REVIEWS_KANBAN", "BASIC_KANBAN", "BUG_TRIAGE") + + +class ProjectV2CustomFieldType(sgqlc.types.Enum): + """The type of a project field. + + Enumeration Choices: + + * `DATE`: Date + * `NUMBER`: Number + * `SINGLE_SELECT`: Single Select + * `TEXT`: Text + """ + + __schema__ = github_schema + __choices__ = ("DATE", "NUMBER", "SINGLE_SELECT", "TEXT") + + +class ProjectV2FieldOrderField(sgqlc.types.Enum): + """Properties by which project v2 field connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order project v2 fields by creation time + * `NAME`: Order project v2 fields by name + * `POSITION`: Order project v2 fields by position + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME", "POSITION") + + +class ProjectV2FieldType(sgqlc.types.Enum): + """The type of a project field. + + Enumeration Choices: + + * `ASSIGNEES`: Assignees + * `DATE`: Date + * `ITERATION`: Iteration + * `LABELS`: Labels + * `LINKED_PULL_REQUESTS`: Linked Pull Requests + * `MILESTONE`: Milestone + * `NUMBER`: Number + * `REPOSITORY`: Repository + * `REVIEWERS`: Reviewers + * `SINGLE_SELECT`: Single Select + * `TEXT`: Text + * `TITLE`: Title + * `TRACKED_BY`: Tracked by + * `TRACKS`: Tracks + """ + + __schema__ = github_schema + __choices__ = ( + "ASSIGNEES", + "DATE", + "ITERATION", + "LABELS", + "LINKED_PULL_REQUESTS", + "MILESTONE", + "NUMBER", + "REPOSITORY", + "REVIEWERS", + "SINGLE_SELECT", + "TEXT", + "TITLE", + "TRACKED_BY", + "TRACKS", + ) + + +class ProjectV2ItemFieldValueOrderField(sgqlc.types.Enum): + """Properties by which project v2 item field value connections can be + ordered. + + Enumeration Choices: + + * `POSITION`: Order project v2 item field values by the their + position in the project + """ + + __schema__ = github_schema + __choices__ = ("POSITION",) + + +class ProjectV2ItemOrderField(sgqlc.types.Enum): + """Properties by which project v2 item connections can be ordered. + + Enumeration Choices: + + * `POSITION`: Order project v2 items by the their position in the + project + """ + + __schema__ = github_schema + __choices__ = ("POSITION",) + + +class ProjectV2ItemType(sgqlc.types.Enum): + """The type of a project item. + + Enumeration Choices: + + * `DRAFT_ISSUE`: Draft Issue + * `ISSUE`: Issue + * `PULL_REQUEST`: Pull Request + * `REDACTED`: Redacted Item + """ + + __schema__ = github_schema + __choices__ = ("DRAFT_ISSUE", "ISSUE", "PULL_REQUEST", "REDACTED") + + +class ProjectV2OrderField(sgqlc.types.Enum): + """Properties by which projects can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: The project's date and time of creation + * `NUMBER`: The project's number + * `TITLE`: The project's title + * `UPDATED_AT`: The project's date and time of update + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NUMBER", "TITLE", "UPDATED_AT") + + +class ProjectV2Roles(sgqlc.types.Enum): + """The possible roles of a collaborator on a project. + + Enumeration Choices: + + * `ADMIN`: The collaborator can view, edit, and maange the + settings of the project + * `NONE`: The collaborator has no direct access to the project + * `READER`: The collaborator can view the project + * `WRITER`: The collaborator can view and edit the project + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "NONE", "READER", "WRITER") + + +class ProjectV2SingleSelectFieldOptionColor(sgqlc.types.Enum): + """The display color of a single-select field option. + + Enumeration Choices: + + * `BLUE`: BLUE + * `GRAY`: GRAY + * `GREEN`: GREEN + * `ORANGE`: ORANGE + * `PINK`: PINK + * `PURPLE`: PURPLE + * `RED`: RED + * `YELLOW`: YELLOW + """ + + __schema__ = github_schema + __choices__ = ("BLUE", "GRAY", "GREEN", "ORANGE", "PINK", "PURPLE", "RED", "YELLOW") + + +class ProjectV2State(sgqlc.types.Enum): + """The possible states of a project v2. + + Enumeration Choices: + + * `CLOSED`: A project v2 that has been closed + * `OPEN`: A project v2 that is still open + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "OPEN") + + +class ProjectV2ViewLayout(sgqlc.types.Enum): + """The layout of a project v2 view. + + Enumeration Choices: + + * `BOARD_LAYOUT`: Board layout + * `ROADMAP_LAYOUT`: Roadmap layout + * `TABLE_LAYOUT`: Table layout + """ + + __schema__ = github_schema + __choices__ = ("BOARD_LAYOUT", "ROADMAP_LAYOUT", "TABLE_LAYOUT") + + +class ProjectV2ViewOrderField(sgqlc.types.Enum): + """Properties by which project v2 view connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order project v2 views by creation time + * `NAME`: Order project v2 views by name + * `POSITION`: Order project v2 views by position + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME", "POSITION") + + +class ProjectV2WorkflowsOrderField(sgqlc.types.Enum): + """Properties by which project workflows can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: The workflows' date and time of creation + * `NAME`: The workflows' name + * `NUMBER`: The workflows' number + * `UPDATED_AT`: The workflows' date and time of update + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME", "NUMBER", "UPDATED_AT") + + +class PullRequestMergeMethod(sgqlc.types.Enum): + """Represents available types of methods to use when merging a pull + request. + + Enumeration Choices: + + * `MERGE`: Add all commits from the head branch to the base branch + with a merge commit. + * `REBASE`: Add all commits from the head branch onto the base + branch individually. + * `SQUASH`: Combine all commits from the head branch into a single + commit in the base branch. + """ + + __schema__ = github_schema + __choices__ = ("MERGE", "REBASE", "SQUASH") + + +class PullRequestOrderField(sgqlc.types.Enum): + """Properties by which pull_requests connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order pull_requests by creation time + * `UPDATED_AT`: Order pull_requests by update time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "UPDATED_AT") + + +class PullRequestReviewCommentState(sgqlc.types.Enum): + """The possible states of a pull request review comment. + + Enumeration Choices: + + * `PENDING`: A comment that is part of a pending review + * `SUBMITTED`: A comment that is part of a submitted review + """ + + __schema__ = github_schema + __choices__ = ("PENDING", "SUBMITTED") + + +class PullRequestReviewDecision(sgqlc.types.Enum): + """The review status of a pull request. + + Enumeration Choices: + + * `APPROVED`: The pull request has received an approving review. + * `CHANGES_REQUESTED`: Changes have been requested on the pull + request. + * `REVIEW_REQUIRED`: A review is required before the pull request + can be merged. + """ + + __schema__ = github_schema + __choices__ = ("APPROVED", "CHANGES_REQUESTED", "REVIEW_REQUIRED") + + +class PullRequestReviewEvent(sgqlc.types.Enum): + """The possible events to perform on a pull request review. + + Enumeration Choices: + + * `APPROVE`: Submit feedback and approve merging these changes. + * `COMMENT`: Submit general feedback without explicit approval. + * `DISMISS`: Dismiss review so it now longer effects merging. + * `REQUEST_CHANGES`: Submit feedback that must be addressed before + merging. + """ + + __schema__ = github_schema + __choices__ = ("APPROVE", "COMMENT", "DISMISS", "REQUEST_CHANGES") + + +class PullRequestReviewState(sgqlc.types.Enum): + """The possible states of a pull request review. + + Enumeration Choices: + + * `APPROVED`: A review allowing the pull request to merge. + * `CHANGES_REQUESTED`: A review blocking the pull request from + merging. + * `COMMENTED`: An informational review. + * `DISMISSED`: A review that has been dismissed. + * `PENDING`: A review that has not yet been submitted. + """ + + __schema__ = github_schema + __choices__ = ("APPROVED", "CHANGES_REQUESTED", "COMMENTED", "DISMISSED", "PENDING") + + +class PullRequestReviewThreadSubjectType(sgqlc.types.Enum): + """The possible subject types of a pull request review comment. + + Enumeration Choices: + + * `FILE`: A comment that has been made against the file of a pull + request + * `LINE`: A comment that has been made against the line of a pull + request + """ + + __schema__ = github_schema + __choices__ = ("FILE", "LINE") + + +class PullRequestState(sgqlc.types.Enum): + """The possible states of a pull request. + + Enumeration Choices: + + * `CLOSED`: A pull request that has been closed without being + merged. + * `MERGED`: A pull request that has been closed by being merged. + * `OPEN`: A pull request that is still open. + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "MERGED", "OPEN") + + +class PullRequestTimelineItemsItemType(sgqlc.types.Enum): + """The possible item types found in a timeline. + + Enumeration Choices: + + * `ADDED_TO_MERGE_QUEUE_EVENT`: Represents an + 'added_to_merge_queue' event on a given pull request. + * `ADDED_TO_PROJECT_EVENT`: Represents a 'added_to_project' event + on a given issue or pull request. + * `ASSIGNED_EVENT`: Represents an 'assigned' event on any + assignable object. + * `AUTOMATIC_BASE_CHANGE_FAILED_EVENT`: Represents a + 'automatic_base_change_failed' event on a given pull request. + * `AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT`: Represents a + 'automatic_base_change_succeeded' event on a given pull request. + * `AUTO_MERGE_DISABLED_EVENT`: Represents a 'auto_merge_disabled' + event on a given pull request. + * `AUTO_MERGE_ENABLED_EVENT`: Represents a 'auto_merge_enabled' + event on a given pull request. + * `AUTO_REBASE_ENABLED_EVENT`: Represents a 'auto_rebase_enabled' + event on a given pull request. + * `AUTO_SQUASH_ENABLED_EVENT`: Represents a 'auto_squash_enabled' + event on a given pull request. + * `BASE_REF_CHANGED_EVENT`: Represents a 'base_ref_changed' event + on a given issue or pull request. + * `BASE_REF_DELETED_EVENT`: Represents a 'base_ref_deleted' event + on a given pull request. + * `BASE_REF_FORCE_PUSHED_EVENT`: Represents a + 'base_ref_force_pushed' event on a given pull request. + * `CLOSED_EVENT`: Represents a 'closed' event on any `Closable`. + * `COMMENT_DELETED_EVENT`: Represents a 'comment_deleted' event on + a given issue or pull request. + * `CONNECTED_EVENT`: Represents a 'connected' event on a given + issue or pull request. + * `CONVERTED_NOTE_TO_ISSUE_EVENT`: Represents a + 'converted_note_to_issue' event on a given issue or pull + request. + * `CONVERTED_TO_DISCUSSION_EVENT`: Represents a + 'converted_to_discussion' event on a given issue. + * `CONVERT_TO_DRAFT_EVENT`: Represents a 'convert_to_draft' event + on a given pull request. + * `CROSS_REFERENCED_EVENT`: Represents a mention made by one issue + or pull request to another. + * `DEMILESTONED_EVENT`: Represents a 'demilestoned' event on a + given issue or pull request. + * `DEPLOYED_EVENT`: Represents a 'deployed' event on a given pull + request. + * `DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT`: Represents a + 'deployment_environment_changed' event on a given pull request. + * `DISCONNECTED_EVENT`: Represents a 'disconnected' event on a + given issue or pull request. + * `HEAD_REF_DELETED_EVENT`: Represents a 'head_ref_deleted' event + on a given pull request. + * `HEAD_REF_FORCE_PUSHED_EVENT`: Represents a + 'head_ref_force_pushed' event on a given pull request. + * `HEAD_REF_RESTORED_EVENT`: Represents a 'head_ref_restored' + event on a given pull request. + * `ISSUE_COMMENT`: Represents a comment on an Issue. + * `LABELED_EVENT`: Represents a 'labeled' event on a given issue + or pull request. + * `LOCKED_EVENT`: Represents a 'locked' event on a given issue or + pull request. + * `MARKED_AS_DUPLICATE_EVENT`: Represents a 'marked_as_duplicate' + event on a given issue or pull request. + * `MENTIONED_EVENT`: Represents a 'mentioned' event on a given + issue or pull request. + * `MERGED_EVENT`: Represents a 'merged' event on a given pull + request. + * `MILESTONED_EVENT`: Represents a 'milestoned' event on a given + issue or pull request. + * `MOVED_COLUMNS_IN_PROJECT_EVENT`: Represents a + 'moved_columns_in_project' event on a given issue or pull + request. + * `PINNED_EVENT`: Represents a 'pinned' event on a given issue or + pull request. + * `PULL_REQUEST_COMMIT`: Represents a Git commit part of a pull + request. + * `PULL_REQUEST_COMMIT_COMMENT_THREAD`: Represents a commit + comment thread part of a pull request. + * `PULL_REQUEST_REVIEW`: A review object for a given pull request. + * `PULL_REQUEST_REVIEW_THREAD`: A threaded list of comments for a + given pull request. + * `PULL_REQUEST_REVISION_MARKER`: Represents the latest point in + the pull request timeline for which the viewer has seen the pull + request's commits. + * `READY_FOR_REVIEW_EVENT`: Represents a 'ready_for_review' event + on a given pull request. + * `REFERENCED_EVENT`: Represents a 'referenced' event on a given + `ReferencedSubject`. + * `REMOVED_FROM_MERGE_QUEUE_EVENT`: Represents a + 'removed_from_merge_queue' event on a given pull request. + * `REMOVED_FROM_PROJECT_EVENT`: Represents a + 'removed_from_project' event on a given issue or pull request. + * `RENAMED_TITLE_EVENT`: Represents a 'renamed' event on a given + issue or pull request + * `REOPENED_EVENT`: Represents a 'reopened' event on any + `Closable`. + * `REVIEW_DISMISSED_EVENT`: Represents a 'review_dismissed' event + on a given issue or pull request. + * `REVIEW_REQUESTED_EVENT`: Represents an 'review_requested' event + on a given pull request. + * `REVIEW_REQUEST_REMOVED_EVENT`: Represents an + 'review_request_removed' event on a given pull request. + * `SUBSCRIBED_EVENT`: Represents a 'subscribed' event on a given + `Subscribable`. + * `TRANSFERRED_EVENT`: Represents a 'transferred' event on a given + issue or pull request. + * `UNASSIGNED_EVENT`: Represents an 'unassigned' event on any + assignable object. + * `UNLABELED_EVENT`: Represents an 'unlabeled' event on a given + issue or pull request. + * `UNLOCKED_EVENT`: Represents an 'unlocked' event on a given + issue or pull request. + * `UNMARKED_AS_DUPLICATE_EVENT`: Represents an + 'unmarked_as_duplicate' event on a given issue or pull request. + * `UNPINNED_EVENT`: Represents an 'unpinned' event on a given + issue or pull request. + * `UNSUBSCRIBED_EVENT`: Represents an 'unsubscribed' event on a + given `Subscribable`. + * `USER_BLOCKED_EVENT`: Represents a 'user_blocked' event on a + given user. + """ + + __schema__ = github_schema + __choices__ = ( + "ADDED_TO_MERGE_QUEUE_EVENT", + "ADDED_TO_PROJECT_EVENT", + "ASSIGNED_EVENT", + "AUTOMATIC_BASE_CHANGE_FAILED_EVENT", + "AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT", + "AUTO_MERGE_DISABLED_EVENT", + "AUTO_MERGE_ENABLED_EVENT", + "AUTO_REBASE_ENABLED_EVENT", + "AUTO_SQUASH_ENABLED_EVENT", + "BASE_REF_CHANGED_EVENT", + "BASE_REF_DELETED_EVENT", + "BASE_REF_FORCE_PUSHED_EVENT", + "CLOSED_EVENT", + "COMMENT_DELETED_EVENT", + "CONNECTED_EVENT", + "CONVERTED_NOTE_TO_ISSUE_EVENT", + "CONVERTED_TO_DISCUSSION_EVENT", + "CONVERT_TO_DRAFT_EVENT", + "CROSS_REFERENCED_EVENT", + "DEMILESTONED_EVENT", + "DEPLOYED_EVENT", + "DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT", + "DISCONNECTED_EVENT", + "HEAD_REF_DELETED_EVENT", + "HEAD_REF_FORCE_PUSHED_EVENT", + "HEAD_REF_RESTORED_EVENT", + "ISSUE_COMMENT", + "LABELED_EVENT", + "LOCKED_EVENT", + "MARKED_AS_DUPLICATE_EVENT", + "MENTIONED_EVENT", + "MERGED_EVENT", + "MILESTONED_EVENT", + "MOVED_COLUMNS_IN_PROJECT_EVENT", + "PINNED_EVENT", + "PULL_REQUEST_COMMIT", + "PULL_REQUEST_COMMIT_COMMENT_THREAD", + "PULL_REQUEST_REVIEW", + "PULL_REQUEST_REVIEW_THREAD", + "PULL_REQUEST_REVISION_MARKER", + "READY_FOR_REVIEW_EVENT", + "REFERENCED_EVENT", + "REMOVED_FROM_MERGE_QUEUE_EVENT", + "REMOVED_FROM_PROJECT_EVENT", + "RENAMED_TITLE_EVENT", + "REOPENED_EVENT", + "REVIEW_DISMISSED_EVENT", + "REVIEW_REQUESTED_EVENT", + "REVIEW_REQUEST_REMOVED_EVENT", + "SUBSCRIBED_EVENT", + "TRANSFERRED_EVENT", + "UNASSIGNED_EVENT", + "UNLABELED_EVENT", + "UNLOCKED_EVENT", + "UNMARKED_AS_DUPLICATE_EVENT", + "UNPINNED_EVENT", + "UNSUBSCRIBED_EVENT", + "USER_BLOCKED_EVENT", + ) + + +class PullRequestUpdateState(sgqlc.types.Enum): + """The possible target states when updating a pull request. + + Enumeration Choices: + + * `CLOSED`: A pull request that has been closed without being + merged. + * `OPEN`: A pull request that is still open. + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "OPEN") + + +class ReactionContent(sgqlc.types.Enum): + """Emojis that can be attached to Issues, Pull Requests and Comments. + + Enumeration Choices: + + * `CONFUSED`: Represents the `:confused:` emoji. + * `EYES`: Represents the `:eyes:` emoji. + * `HEART`: Represents the `:heart:` emoji. + * `HOORAY`: Represents the `:hooray:` emoji. + * `LAUGH`: Represents the `:laugh:` emoji. + * `ROCKET`: Represents the `:rocket:` emoji. + * `THUMBS_DOWN`: Represents the `:-1:` emoji. + * `THUMBS_UP`: Represents the `:+1:` emoji. + """ + + __schema__ = github_schema + __choices__ = ("CONFUSED", "EYES", "HEART", "HOORAY", "LAUGH", "ROCKET", "THUMBS_DOWN", "THUMBS_UP") + + +class ReactionOrderField(sgqlc.types.Enum): + """A list of fields that reactions can be ordered by. + + Enumeration Choices: + + * `CREATED_AT`: Allows ordering a list of reactions by when they + were created. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class RefOrderField(sgqlc.types.Enum): + """Properties by which ref connections can be ordered. + + Enumeration Choices: + + * `ALPHABETICAL`: Order refs by their alphanumeric name + * `TAG_COMMIT_DATE`: Order refs by underlying commit date if the + ref prefix is refs/tags/ + """ + + __schema__ = github_schema + __choices__ = ("ALPHABETICAL", "TAG_COMMIT_DATE") + + +class ReleaseOrderField(sgqlc.types.Enum): + """Properties by which release connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order releases by creation time + * `NAME`: Order releases alphabetically by name + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME") + + +class RepoAccessAuditEntryVisibility(sgqlc.types.Enum): + """The privacy of a repository + + Enumeration Choices: + + * `INTERNAL`: The repository is visible only to users in the same + business. + * `PRIVATE`: The repository is visible only to those with explicit + access. + * `PUBLIC`: The repository is visible to everyone. + """ + + __schema__ = github_schema + __choices__ = ("INTERNAL", "PRIVATE", "PUBLIC") + + +class RepoAddMemberAuditEntryVisibility(sgqlc.types.Enum): + """The privacy of a repository + + Enumeration Choices: + + * `INTERNAL`: The repository is visible only to users in the same + business. + * `PRIVATE`: The repository is visible only to those with explicit + access. + * `PUBLIC`: The repository is visible to everyone. + """ + + __schema__ = github_schema + __choices__ = ("INTERNAL", "PRIVATE", "PUBLIC") + + +class RepoArchivedAuditEntryVisibility(sgqlc.types.Enum): + """The privacy of a repository + + Enumeration Choices: + + * `INTERNAL`: The repository is visible only to users in the same + business. + * `PRIVATE`: The repository is visible only to those with explicit + access. + * `PUBLIC`: The repository is visible to everyone. + """ + + __schema__ = github_schema + __choices__ = ("INTERNAL", "PRIVATE", "PUBLIC") + + +class RepoChangeMergeSettingAuditEntryMergeType(sgqlc.types.Enum): + """The merge options available for pull requests to this repository. + + Enumeration Choices: + + * `MERGE`: The pull request is added to the base branch in a merge + commit. + * `REBASE`: Commits from the pull request are added onto the base + branch individually without a merge commit. + * `SQUASH`: The pull request's commits are squashed into a single + commit before they are merged to the base branch. + """ + + __schema__ = github_schema + __choices__ = ("MERGE", "REBASE", "SQUASH") + + +class RepoCreateAuditEntryVisibility(sgqlc.types.Enum): + """The privacy of a repository + + Enumeration Choices: + + * `INTERNAL`: The repository is visible only to users in the same + business. + * `PRIVATE`: The repository is visible only to those with explicit + access. + * `PUBLIC`: The repository is visible to everyone. + """ + + __schema__ = github_schema + __choices__ = ("INTERNAL", "PRIVATE", "PUBLIC") + + +class RepoDestroyAuditEntryVisibility(sgqlc.types.Enum): + """The privacy of a repository + + Enumeration Choices: + + * `INTERNAL`: The repository is visible only to users in the same + business. + * `PRIVATE`: The repository is visible only to those with explicit + access. + * `PUBLIC`: The repository is visible to everyone. + """ + + __schema__ = github_schema + __choices__ = ("INTERNAL", "PRIVATE", "PUBLIC") + + +class RepoRemoveMemberAuditEntryVisibility(sgqlc.types.Enum): + """The privacy of a repository + + Enumeration Choices: + + * `INTERNAL`: The repository is visible only to users in the same + business. + * `PRIVATE`: The repository is visible only to those with explicit + access. + * `PUBLIC`: The repository is visible to everyone. + """ + + __schema__ = github_schema + __choices__ = ("INTERNAL", "PRIVATE", "PUBLIC") + + +class ReportedContentClassifiers(sgqlc.types.Enum): + """The reasons a piece of content can be reported or minimized. + + Enumeration Choices: + + * `ABUSE`: An abusive or harassing piece of content + * `DUPLICATE`: A duplicated piece of content + * `OFF_TOPIC`: An irrelevant piece of content + * `OUTDATED`: An outdated piece of content + * `RESOLVED`: The content has been resolved + * `SPAM`: A spammy piece of content + """ + + __schema__ = github_schema + __choices__ = ("ABUSE", "DUPLICATE", "OFF_TOPIC", "OUTDATED", "RESOLVED", "SPAM") + + +class RepositoryAffiliation(sgqlc.types.Enum): + """The affiliation of a user to a repository + + Enumeration Choices: + + * `COLLABORATOR`: Repositories that the user has been added to as + a collaborator. + * `ORGANIZATION_MEMBER`: Repositories that the user has access to + through being a member of an organization. This includes every + repository on every team that the user is on. + * `OWNER`: Repositories that are owned by the authenticated user. + """ + + __schema__ = github_schema + __choices__ = ("COLLABORATOR", "ORGANIZATION_MEMBER", "OWNER") + + +class RepositoryContributionType(sgqlc.types.Enum): + """The reason a repository is listed as 'contributed'. + + Enumeration Choices: + + * `COMMIT`: Created a commit + * `ISSUE`: Created an issue + * `PULL_REQUEST`: Created a pull request + * `PULL_REQUEST_REVIEW`: Reviewed a pull request + * `REPOSITORY`: Created the repository + """ + + __schema__ = github_schema + __choices__ = ("COMMIT", "ISSUE", "PULL_REQUEST", "PULL_REQUEST_REVIEW", "REPOSITORY") + + +class RepositoryInteractionLimit(sgqlc.types.Enum): + """A repository interaction limit. + + Enumeration Choices: + + * `COLLABORATORS_ONLY`: Users that are not collaborators will not + be able to interact with the repository. + * `CONTRIBUTORS_ONLY`: Users that have not previously committed to + a repository’s default branch will be unable to interact with + the repository. + * `EXISTING_USERS`: Users that have recently created their account + will be unable to interact with the repository. + * `NO_LIMIT`: No interaction limits are enabled. + """ + + __schema__ = github_schema + __choices__ = ("COLLABORATORS_ONLY", "CONTRIBUTORS_ONLY", "EXISTING_USERS", "NO_LIMIT") + + +class RepositoryInteractionLimitExpiry(sgqlc.types.Enum): + """The length for a repository interaction limit to be enabled for. + + Enumeration Choices: + + * `ONE_DAY`: The interaction limit will expire after 1 day. + * `ONE_MONTH`: The interaction limit will expire after 1 month. + * `ONE_WEEK`: The interaction limit will expire after 1 week. + * `SIX_MONTHS`: The interaction limit will expire after 6 months. + * `THREE_DAYS`: The interaction limit will expire after 3 days. + """ + + __schema__ = github_schema + __choices__ = ("ONE_DAY", "ONE_MONTH", "ONE_WEEK", "SIX_MONTHS", "THREE_DAYS") + + +class RepositoryInteractionLimitOrigin(sgqlc.types.Enum): + """Indicates where an interaction limit is configured. + + Enumeration Choices: + + * `ORGANIZATION`: A limit that is configured at the organization + level. + * `REPOSITORY`: A limit that is configured at the repository + level. + * `USER`: A limit that is configured at the user-wide level. + """ + + __schema__ = github_schema + __choices__ = ("ORGANIZATION", "REPOSITORY", "USER") + + +class RepositoryInvitationOrderField(sgqlc.types.Enum): + """Properties by which repository invitation connections can be + ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order repository invitations by creation time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class RepositoryLockReason(sgqlc.types.Enum): + """The possible reasons a given repository could be in a locked + state. + + Enumeration Choices: + + * `BILLING`: The repository is locked due to a billing related + reason. + * `MIGRATING`: The repository is locked due to a migration. + * `MOVING`: The repository is locked due to a move. + * `RENAME`: The repository is locked due to a rename. + * `TRADE_RESTRICTION`: The repository is locked due to a trade + controls related reason. + """ + + __schema__ = github_schema + __choices__ = ("BILLING", "MIGRATING", "MOVING", "RENAME", "TRADE_RESTRICTION") + + +class RepositoryMigrationOrderDirection(sgqlc.types.Enum): + """Possible directions in which to order a list of repository + migrations when provided an `orderBy` argument. + + Enumeration Choices: + + * `ASC`: Specifies an ascending order for a given `orderBy` + argument. + * `DESC`: Specifies a descending order for a given `orderBy` + argument. + """ + + __schema__ = github_schema + __choices__ = ("ASC", "DESC") + + +class RepositoryMigrationOrderField(sgqlc.types.Enum): + """Properties by which repository migrations can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order mannequins why when they were created. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class RepositoryOrderField(sgqlc.types.Enum): + """Properties by which repository connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order repositories by creation time + * `NAME`: Order repositories by name + * `PUSHED_AT`: Order repositories by push time + * `STARGAZERS`: Order repositories by number of stargazers + * `UPDATED_AT`: Order repositories by update time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME", "PUSHED_AT", "STARGAZERS", "UPDATED_AT") + + +class RepositoryPermission(sgqlc.types.Enum): + """The access level to a repository + + Enumeration Choices: + + * `ADMIN`: Can read, clone, and push to this repository. Can also + manage issues, pull requests, and repository settings, including + adding collaborators + * `MAINTAIN`: Can read, clone, and push to this repository. They + can also manage issues, pull requests, and some repository + settings + * `READ`: Can read and clone this repository. Can also open and + comment on issues and pull requests + * `TRIAGE`: Can read and clone this repository. Can also manage + issues and pull requests + * `WRITE`: Can read, clone, and push to this repository. Can also + manage issues and pull requests + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "MAINTAIN", "READ", "TRIAGE", "WRITE") + + +class RepositoryPrivacy(sgqlc.types.Enum): + """The privacy of a repository + + Enumeration Choices: + + * `PRIVATE`: Private + * `PUBLIC`: Public + """ + + __schema__ = github_schema + __choices__ = ("PRIVATE", "PUBLIC") + + +class RepositoryRuleType(sgqlc.types.Enum): + """The rule types supported in rulesets + + Enumeration Choices: + + * `BRANCH_NAME_PATTERN`: Branch name pattern + * `COMMITTER_EMAIL_PATTERN`: Committer email pattern + * `COMMIT_AUTHOR_EMAIL_PATTERN`: Commit author email pattern + * `COMMIT_MESSAGE_PATTERN`: Commit message pattern + * `CREATION`: Only allow users with bypass permission to create + matching refs. + * `DELETION`: Only allow users with bypass permissions to delete + matching refs. + * `NON_FAST_FORWARD`: Prevent users with push access from force + pushing to branches. + * `PULL_REQUEST`: Require all commits be made to a non-target + branch and submitted via a pull request before they can be + merged. + * `REQUIRED_DEPLOYMENTS`: Choose which environments must be + successfully deployed to before branches can be merged into a + branch that matches this rule. + * `REQUIRED_LINEAR_HISTORY`: Prevent merge commits from being + pushed to matching branches. + * `REQUIRED_SIGNATURES`: Commits pushed to matching branches must + have verified signatures. + * `REQUIRED_STATUS_CHECKS`: Choose which status checks must pass + before branches can be merged into a branch that matches this + rule. When enabled, commits must first be pushed to another + branch, then merged or pushed directly to a branch that matches + this rule after status checks have passed. + * `TAG_NAME_PATTERN`: Tag name pattern + * `UPDATE`: Only allow users with bypass permission to update + matching refs. + """ + + __schema__ = github_schema + __choices__ = ( + "BRANCH_NAME_PATTERN", + "COMMITTER_EMAIL_PATTERN", + "COMMIT_AUTHOR_EMAIL_PATTERN", + "COMMIT_MESSAGE_PATTERN", + "CREATION", + "DELETION", + "NON_FAST_FORWARD", + "PULL_REQUEST", + "REQUIRED_DEPLOYMENTS", + "REQUIRED_LINEAR_HISTORY", + "REQUIRED_SIGNATURES", + "REQUIRED_STATUS_CHECKS", + "TAG_NAME_PATTERN", + "UPDATE", + ) + + +class RepositoryRulesetTarget(sgqlc.types.Enum): + """The targets supported for rulesets + + Enumeration Choices: + + * `BRANCH`: Branch + * `TAG`: Tag + """ + + __schema__ = github_schema + __choices__ = ("BRANCH", "TAG") + + +class RepositoryVisibility(sgqlc.types.Enum): + """The repository's visibility level. + + Enumeration Choices: + + * `INTERNAL`: The repository is visible only to users in the same + business. + * `PRIVATE`: The repository is visible only to those with explicit + access. + * `PUBLIC`: The repository is visible to everyone. + """ + + __schema__ = github_schema + __choices__ = ("INTERNAL", "PRIVATE", "PUBLIC") + + +class RepositoryVulnerabilityAlertDependencyScope(sgqlc.types.Enum): + """The possible scopes of an alert's dependency. + + Enumeration Choices: + + * `DEVELOPMENT`: A dependency that is only used in development + * `RUNTIME`: A dependency that is leveraged during application + runtime + """ + + __schema__ = github_schema + __choices__ = ("DEVELOPMENT", "RUNTIME") + + +class RepositoryVulnerabilityAlertState(sgqlc.types.Enum): + """The possible states of an alert + + Enumeration Choices: + + * `AUTO_DISMISSED`: An alert that has been automatically closed by + Dependabot. + * `DISMISSED`: An alert that has been manually closed by a user. + * `FIXED`: An alert that has been resolved by a code change. + * `OPEN`: An alert that is still open. + """ + + __schema__ = github_schema + __choices__ = ("AUTO_DISMISSED", "DISMISSED", "FIXED", "OPEN") + + +class RequestableCheckStatusState(sgqlc.types.Enum): + """The possible states that can be requested when creating a check + run. + + Enumeration Choices: + + * `COMPLETED`: The check suite or run has been completed. + * `IN_PROGRESS`: The check suite or run is in progress. + * `PENDING`: The check suite or run is in pending state. + * `QUEUED`: The check suite or run has been queued. + * `WAITING`: The check suite or run is in waiting state. + """ + + __schema__ = github_schema + __choices__ = ("COMPLETED", "IN_PROGRESS", "PENDING", "QUEUED", "WAITING") + + +class RoleInOrganization(sgqlc.types.Enum): + """Possible roles a user may have in relation to an organization. + + Enumeration Choices: + + * `DIRECT_MEMBER`: A user who is a direct member of the + organization. + * `OWNER`: A user with full administrative access to the + organization. + * `UNAFFILIATED`: A user who is unaffiliated with the + organization. + """ + + __schema__ = github_schema + __choices__ = ("DIRECT_MEMBER", "OWNER", "UNAFFILIATED") + + +class RuleBypassMode(sgqlc.types.Enum): + """The bypass mode for a rule or ruleset. + + Enumeration Choices: + + * `NONE`: Bypassing is disabled + * `ORGANIZATION`: Those with bypass permission at the organization + level can bypass + * `ORGANIZATION_ALWAYS`: Those with bypass permission at the + organization level can always bypass + * `ORGANIZATION_NONE`: Bypassing is disabled + * `ORGANIZATION_PRS_ONLY`: Those with bypass permission at the + organization level can bypass for pull requests only + * `REPOSITORY`: Those with bypass permission at the repository + level can bypass + """ + + __schema__ = github_schema + __choices__ = ("NONE", "ORGANIZATION", "ORGANIZATION_ALWAYS", "ORGANIZATION_NONE", "ORGANIZATION_PRS_ONLY", "REPOSITORY") + + +class RuleEnforcement(sgqlc.types.Enum): + """The level of enforcement for a rule or ruleset. + + Enumeration Choices: + + * `ACTIVE`: Rules will be enforced + * `DISABLED`: Do not evaluate or enforce rules + * `EVALUATE`: Allow admins to test rules before enforcing them. + Admins can view insights on the Rule Insights page (`evaluate` + is only available with GitHub Enterprise). + """ + + __schema__ = github_schema + __choices__ = ("ACTIVE", "DISABLED", "EVALUATE") + + +class SamlDigestAlgorithm(sgqlc.types.Enum): + """The possible digest algorithms used to sign SAML requests for an + identity provider. + + Enumeration Choices: + + * `SHA1`: SHA1 + * `SHA256`: SHA256 + * `SHA384`: SHA384 + * `SHA512`: SHA512 + """ + + __schema__ = github_schema + __choices__ = ("SHA1", "SHA256", "SHA384", "SHA512") + + +class SamlSignatureAlgorithm(sgqlc.types.Enum): + """The possible signature algorithms used to sign SAML requests for a + Identity Provider. + + Enumeration Choices: + + * `RSA_SHA1`: RSA-SHA1 + * `RSA_SHA256`: RSA-SHA256 + * `RSA_SHA384`: RSA-SHA384 + * `RSA_SHA512`: RSA-SHA512 + """ + + __schema__ = github_schema + __choices__ = ("RSA_SHA1", "RSA_SHA256", "RSA_SHA384", "RSA_SHA512") + + +class SavedReplyOrderField(sgqlc.types.Enum): + """Properties by which saved reply connections can be ordered. + + Enumeration Choices: + + * `UPDATED_AT`: Order saved reply by when they were updated. + """ + + __schema__ = github_schema + __choices__ = ("UPDATED_AT",) + + +class SearchType(sgqlc.types.Enum): + """Represents the individual results of a search. + + Enumeration Choices: + + * `DISCUSSION`: Returns matching discussions in repositories. + * `ISSUE`: Returns results matching issues in repositories. + * `REPOSITORY`: Returns results matching repositories. + * `USER`: Returns results matching users and organizations on + GitHub. + """ + + __schema__ = github_schema + __choices__ = ("DISCUSSION", "ISSUE", "REPOSITORY", "USER") + + +class SecurityAdvisoryClassification(sgqlc.types.Enum): + """Classification of the advisory. + + Enumeration Choices: + + * `GENERAL`: Classification of general advisories. + * `MALWARE`: Classification of malware advisories. + """ + + __schema__ = github_schema + __choices__ = ("GENERAL", "MALWARE") + + +class SecurityAdvisoryEcosystem(sgqlc.types.Enum): + """The possible ecosystems of a security vulnerability's package. + + Enumeration Choices: + + * `ACTIONS`: GitHub Actions + * `COMPOSER`: PHP packages hosted at packagist.org + * `ERLANG`: Erlang/Elixir packages hosted at hex.pm + * `GO`: Go modules + * `MAVEN`: Java artifacts hosted at the Maven central repository + * `NPM`: JavaScript packages hosted at npmjs.com + * `NUGET`: .NET packages hosted at the NuGet Gallery + * `PIP`: Python packages hosted at PyPI.org + * `PUB`: Dart packages hosted at pub.dev + * `RUBYGEMS`: Ruby gems hosted at RubyGems.org + * `RUST`: Rust crates + * `SWIFT`: Swift packages + """ + + __schema__ = github_schema + __choices__ = ("ACTIONS", "COMPOSER", "ERLANG", "GO", "MAVEN", "NPM", "NUGET", "PIP", "PUB", "RUBYGEMS", "RUST", "SWIFT") + + +class SecurityAdvisoryIdentifierType(sgqlc.types.Enum): + """Identifier formats available for advisories. + + Enumeration Choices: + + * `CVE`: Common Vulnerabilities and Exposures Identifier. + * `GHSA`: GitHub Security Advisory ID. + """ + + __schema__ = github_schema + __choices__ = ("CVE", "GHSA") + + +class SecurityAdvisoryOrderField(sgqlc.types.Enum): + """Properties by which security advisory connections can be ordered. + + Enumeration Choices: + + * `PUBLISHED_AT`: Order advisories by publication time + * `UPDATED_AT`: Order advisories by update time + """ + + __schema__ = github_schema + __choices__ = ("PUBLISHED_AT", "UPDATED_AT") + + +class SecurityAdvisorySeverity(sgqlc.types.Enum): + """Severity of the vulnerability. + + Enumeration Choices: + + * `CRITICAL`: Critical. + * `HIGH`: High. + * `LOW`: Low. + * `MODERATE`: Moderate. + """ + + __schema__ = github_schema + __choices__ = ("CRITICAL", "HIGH", "LOW", "MODERATE") + + +class SecurityVulnerabilityOrderField(sgqlc.types.Enum): + """Properties by which security vulnerability connections can be + ordered. + + Enumeration Choices: + + * `UPDATED_AT`: Order vulnerability by update time + """ + + __schema__ = github_schema + __choices__ = ("UPDATED_AT",) + + +class SocialAccountProvider(sgqlc.types.Enum): + """Software or company that hosts social media accounts. + + Enumeration Choices: + + * `FACEBOOK`: Social media and networking website. + * `GENERIC`: Catch-all for social media providers that do not yet + have specific handling. + * `HOMETOWN`: Fork of Mastodon with a greater focus on local + posting. + * `INSTAGRAM`: Social media website with a focus on photo and + video sharing. + * `LINKEDIN`: Professional networking website. + * `MASTODON`: Open-source federated microblogging service. + * `REDDIT`: Social news aggregation and discussion website. + * `TWITCH`: Live-streaming service. + * `TWITTER`: Microblogging website. + * `YOUTUBE`: Online video platform. + """ + + __schema__ = github_schema + __choices__ = ("FACEBOOK", "GENERIC", "HOMETOWN", "INSTAGRAM", "LINKEDIN", "MASTODON", "REDDIT", "TWITCH", "TWITTER", "YOUTUBE") + + +class SponsorOrderField(sgqlc.types.Enum): + """Properties by which sponsor connections can be ordered. + + Enumeration Choices: + + * `LOGIN`: Order sponsorable entities by login (username). + * `RELEVANCE`: Order sponsors by their relevance to the viewer. + """ + + __schema__ = github_schema + __choices__ = ("LOGIN", "RELEVANCE") + + +class SponsorableOrderField(sgqlc.types.Enum): + """Properties by which sponsorable connections can be ordered. + + Enumeration Choices: + + * `LOGIN`: Order sponsorable entities by login (username). + """ + + __schema__ = github_schema + __choices__ = ("LOGIN",) + + +class SponsorsActivityAction(sgqlc.types.Enum): + """The possible actions that GitHub Sponsors activities can + represent. + + Enumeration Choices: + + * `CANCELLED_SPONSORSHIP`: The activity was cancelling a + sponsorship. + * `NEW_SPONSORSHIP`: The activity was starting a sponsorship. + * `PENDING_CHANGE`: The activity was scheduling a downgrade or + cancellation. + * `REFUND`: The activity was funds being refunded to the sponsor + or GitHub. + * `SPONSOR_MATCH_DISABLED`: The activity was disabling matching + for a previously matched sponsorship. + * `TIER_CHANGE`: The activity was changing the sponsorship tier, + either directly by the sponsor or by a scheduled/pending change. + """ + + __schema__ = github_schema + __choices__ = ("CANCELLED_SPONSORSHIP", "NEW_SPONSORSHIP", "PENDING_CHANGE", "REFUND", "SPONSOR_MATCH_DISABLED", "TIER_CHANGE") + + +class SponsorsActivityOrderField(sgqlc.types.Enum): + """Properties by which GitHub Sponsors activity connections can be + ordered. + + Enumeration Choices: + + * `TIMESTAMP`: Order activities by when they happened. + """ + + __schema__ = github_schema + __choices__ = ("TIMESTAMP",) + + +class SponsorsActivityPeriod(sgqlc.types.Enum): + """The possible time periods for which Sponsors activities can be + requested. + + Enumeration Choices: + + * `ALL`: Don't restrict the activity to any date range, include + all activity. + * `DAY`: The previous calendar day. + * `MONTH`: The previous thirty days. + * `WEEK`: The previous seven days. + """ + + __schema__ = github_schema + __choices__ = ("ALL", "DAY", "MONTH", "WEEK") + + +class SponsorsCountryOrRegionCode(sgqlc.types.Enum): + """Represents countries or regions for billing and residence for a + GitHub Sponsors profile. + + Enumeration Choices: + + * `AD`: Andorra + * `AE`: United Arab Emirates + * `AF`: Afghanistan + * `AG`: Antigua and Barbuda + * `AI`: Anguilla + * `AL`: Albania + * `AM`: Armenia + * `AO`: Angola + * `AQ`: Antarctica + * `AR`: Argentina + * `AS`: American Samoa + * `AT`: Austria + * `AU`: Australia + * `AW`: Aruba + * `AX`: Åland + * `AZ`: Azerbaijan + * `BA`: Bosnia and Herzegovina + * `BB`: Barbados + * `BD`: Bangladesh + * `BE`: Belgium + * `BF`: Burkina Faso + * `BG`: Bulgaria + * `BH`: Bahrain + * `BI`: Burundi + * `BJ`: Benin + * `BL`: Saint Barthélemy + * `BM`: Bermuda + * `BN`: Brunei Darussalam + * `BO`: Bolivia + * `BQ`: Bonaire, Sint Eustatius and Saba + * `BR`: Brazil + * `BS`: Bahamas + * `BT`: Bhutan + * `BV`: Bouvet Island + * `BW`: Botswana + * `BY`: Belarus + * `BZ`: Belize + * `CA`: Canada + * `CC`: Cocos (Keeling) Islands + * `CD`: Congo (Kinshasa) + * `CF`: Central African Republic + * `CG`: Congo (Brazzaville) + * `CH`: Switzerland + * `CI`: Côte d'Ivoire + * `CK`: Cook Islands + * `CL`: Chile + * `CM`: Cameroon + * `CN`: China + * `CO`: Colombia + * `CR`: Costa Rica + * `CV`: Cape Verde + * `CW`: Curaçao + * `CX`: Christmas Island + * `CY`: Cyprus + * `CZ`: Czech Republic + * `DE`: Germany + * `DJ`: Djibouti + * `DK`: Denmark + * `DM`: Dominica + * `DO`: Dominican Republic + * `DZ`: Algeria + * `EC`: Ecuador + * `EE`: Estonia + * `EG`: Egypt + * `EH`: Western Sahara + * `ER`: Eritrea + * `ES`: Spain + * `ET`: Ethiopia + * `FI`: Finland + * `FJ`: Fiji + * `FK`: Falkland Islands + * `FM`: Micronesia + * `FO`: Faroe Islands + * `FR`: France + * `GA`: Gabon + * `GB`: United Kingdom + * `GD`: Grenada + * `GE`: Georgia + * `GF`: French Guiana + * `GG`: Guernsey + * `GH`: Ghana + * `GI`: Gibraltar + * `GL`: Greenland + * `GM`: Gambia + * `GN`: Guinea + * `GP`: Guadeloupe + * `GQ`: Equatorial Guinea + * `GR`: Greece + * `GS`: South Georgia and South Sandwich Islands + * `GT`: Guatemala + * `GU`: Guam + * `GW`: Guinea-Bissau + * `GY`: Guyana + * `HK`: Hong Kong + * `HM`: Heard and McDonald Islands + * `HN`: Honduras + * `HR`: Croatia + * `HT`: Haiti + * `HU`: Hungary + * `ID`: Indonesia + * `IE`: Ireland + * `IL`: Israel + * `IM`: Isle of Man + * `IN`: India + * `IO`: British Indian Ocean Territory + * `IQ`: Iraq + * `IR`: Iran + * `IS`: Iceland + * `IT`: Italy + * `JE`: Jersey + * `JM`: Jamaica + * `JO`: Jordan + * `JP`: Japan + * `KE`: Kenya + * `KG`: Kyrgyzstan + * `KH`: Cambodia + * `KI`: Kiribati + * `KM`: Comoros + * `KN`: Saint Kitts and Nevis + * `KR`: Korea, South + * `KW`: Kuwait + * `KY`: Cayman Islands + * `KZ`: Kazakhstan + * `LA`: Laos + * `LB`: Lebanon + * `LC`: Saint Lucia + * `LI`: Liechtenstein + * `LK`: Sri Lanka + * `LR`: Liberia + * `LS`: Lesotho + * `LT`: Lithuania + * `LU`: Luxembourg + * `LV`: Latvia + * `LY`: Libya + * `MA`: Morocco + * `MC`: Monaco + * `MD`: Moldova + * `ME`: Montenegro + * `MF`: Saint Martin (French part) + * `MG`: Madagascar + * `MH`: Marshall Islands + * `MK`: Macedonia + * `ML`: Mali + * `MM`: Myanmar + * `MN`: Mongolia + * `MO`: Macau + * `MP`: Northern Mariana Islands + * `MQ`: Martinique + * `MR`: Mauritania + * `MS`: Montserrat + * `MT`: Malta + * `MU`: Mauritius + * `MV`: Maldives + * `MW`: Malawi + * `MX`: Mexico + * `MY`: Malaysia + * `MZ`: Mozambique + * `NA`: Namibia + * `NC`: New Caledonia + * `NE`: Niger + * `NF`: Norfolk Island + * `NG`: Nigeria + * `NI`: Nicaragua + * `NL`: Netherlands + * `NO`: Norway + * `NP`: Nepal + * `NR`: Nauru + * `NU`: Niue + * `NZ`: New Zealand + * `OM`: Oman + * `PA`: Panama + * `PE`: Peru + * `PF`: French Polynesia + * `PG`: Papua New Guinea + * `PH`: Philippines + * `PK`: Pakistan + * `PL`: Poland + * `PM`: Saint Pierre and Miquelon + * `PN`: Pitcairn + * `PR`: Puerto Rico + * `PS`: Palestine + * `PT`: Portugal + * `PW`: Palau + * `PY`: Paraguay + * `QA`: Qatar + * `RE`: Reunion + * `RO`: Romania + * `RS`: Serbia + * `RU`: Russian Federation + * `RW`: Rwanda + * `SA`: Saudi Arabia + * `SB`: Solomon Islands + * `SC`: Seychelles + * `SD`: Sudan + * `SE`: Sweden + * `SG`: Singapore + * `SH`: Saint Helena + * `SI`: Slovenia + * `SJ`: Svalbard and Jan Mayen Islands + * `SK`: Slovakia + * `SL`: Sierra Leone + * `SM`: San Marino + * `SN`: Senegal + * `SO`: Somalia + * `SR`: Suriname + * `SS`: South Sudan + * `ST`: Sao Tome and Principe + * `SV`: El Salvador + * `SX`: Sint Maarten (Dutch part) + * `SZ`: Swaziland + * `TC`: Turks and Caicos Islands + * `TD`: Chad + * `TF`: French Southern Lands + * `TG`: Togo + * `TH`: Thailand + * `TJ`: Tajikistan + * `TK`: Tokelau + * `TL`: Timor-Leste + * `TM`: Turkmenistan + * `TN`: Tunisia + * `TO`: Tonga + * `TR`: Turkey + * `TT`: Trinidad and Tobago + * `TV`: Tuvalu + * `TW`: Taiwan + * `TZ`: Tanzania + * `UA`: Ukraine + * `UG`: Uganda + * `UM`: United States Minor Outlying Islands + * `US`: United States of America + * `UY`: Uruguay + * `UZ`: Uzbekistan + * `VA`: Vatican City + * `VC`: Saint Vincent and the Grenadines + * `VE`: Venezuela + * `VG`: Virgin Islands, British + * `VI`: Virgin Islands, U.S. + * `VN`: Vietnam + * `VU`: Vanuatu + * `WF`: Wallis and Futuna Islands + * `WS`: Samoa + * `YE`: Yemen + * `YT`: Mayotte + * `ZA`: South Africa + * `ZM`: Zambia + * `ZW`: Zimbabwe + """ + + __schema__ = github_schema + __choices__ = ( + "AD", + "AE", + "AF", + "AG", + "AI", + "AL", + "AM", + "AO", + "AQ", + "AR", + "AS", + "AT", + "AU", + "AW", + "AX", + "AZ", + "BA", + "BB", + "BD", + "BE", + "BF", + "BG", + "BH", + "BI", + "BJ", + "BL", + "BM", + "BN", + "BO", + "BQ", + "BR", + "BS", + "BT", + "BV", + "BW", + "BY", + "BZ", + "CA", + "CC", + "CD", + "CF", + "CG", + "CH", + "CI", + "CK", + "CL", + "CM", + "CN", + "CO", + "CR", + "CV", + "CW", + "CX", + "CY", + "CZ", + "DE", + "DJ", + "DK", + "DM", + "DO", + "DZ", + "EC", + "EE", + "EG", + "EH", + "ER", + "ES", + "ET", + "FI", + "FJ", + "FK", + "FM", + "FO", + "FR", + "GA", + "GB", + "GD", + "GE", + "GF", + "GG", + "GH", + "GI", + "GL", + "GM", + "GN", + "GP", + "GQ", + "GR", + "GS", + "GT", + "GU", + "GW", + "GY", + "HK", + "HM", + "HN", + "HR", + "HT", + "HU", + "ID", + "IE", + "IL", + "IM", + "IN", + "IO", + "IQ", + "IR", + "IS", + "IT", + "JE", + "JM", + "JO", + "JP", + "KE", + "KG", + "KH", + "KI", + "KM", + "KN", + "KR", + "KW", + "KY", + "KZ", + "LA", + "LB", + "LC", + "LI", + "LK", + "LR", + "LS", + "LT", + "LU", + "LV", + "LY", + "MA", + "MC", + "MD", + "ME", + "MF", + "MG", + "MH", + "MK", + "ML", + "MM", + "MN", + "MO", + "MP", + "MQ", + "MR", + "MS", + "MT", + "MU", + "MV", + "MW", + "MX", + "MY", + "MZ", + "NA", + "NC", + "NE", + "NF", + "NG", + "NI", + "NL", + "NO", + "NP", + "NR", + "NU", + "NZ", + "OM", + "PA", + "PE", + "PF", + "PG", + "PH", + "PK", + "PL", + "PM", + "PN", + "PR", + "PS", + "PT", + "PW", + "PY", + "QA", + "RE", + "RO", + "RS", + "RU", + "RW", + "SA", + "SB", + "SC", + "SD", + "SE", + "SG", + "SH", + "SI", + "SJ", + "SK", + "SL", + "SM", + "SN", + "SO", + "SR", + "SS", + "ST", + "SV", + "SX", + "SZ", + "TC", + "TD", + "TF", + "TG", + "TH", + "TJ", + "TK", + "TL", + "TM", + "TN", + "TO", + "TR", + "TT", + "TV", + "TW", + "TZ", + "UA", + "UG", + "UM", + "US", + "UY", + "UZ", + "VA", + "VC", + "VE", + "VG", + "VI", + "VN", + "VU", + "WF", + "WS", + "YE", + "YT", + "ZA", + "ZM", + "ZW", + ) + + +class SponsorsGoalKind(sgqlc.types.Enum): + """The different kinds of goals a GitHub Sponsors member can have. + + Enumeration Choices: + + * `MONTHLY_SPONSORSHIP_AMOUNT`: The goal is about getting a + certain amount in USD from sponsorships each month. + * `TOTAL_SPONSORS_COUNT`: The goal is about reaching a certain + number of sponsors. + """ + + __schema__ = github_schema + __choices__ = ("MONTHLY_SPONSORSHIP_AMOUNT", "TOTAL_SPONSORS_COUNT") + + +class SponsorsListingFeaturedItemFeatureableType(sgqlc.types.Enum): + """The different kinds of records that can be featured on a GitHub + Sponsors profile page. + + Enumeration Choices: + + * `REPOSITORY`: A repository owned by the user or organization + with the GitHub Sponsors profile. + * `USER`: A user who belongs to the organization with the GitHub + Sponsors profile. + """ + + __schema__ = github_schema + __choices__ = ("REPOSITORY", "USER") + + +class SponsorsTierOrderField(sgqlc.types.Enum): + """Properties by which Sponsors tiers connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order tiers by creation time. + * `MONTHLY_PRICE_IN_CENTS`: Order tiers by their monthly price in + cents + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "MONTHLY_PRICE_IN_CENTS") + + +class SponsorshipNewsletterOrderField(sgqlc.types.Enum): + """Properties by which sponsorship update connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order sponsorship newsletters by when they were + created. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class SponsorshipOrderField(sgqlc.types.Enum): + """Properties by which sponsorship connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order sponsorship by creation time. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class SponsorshipPrivacy(sgqlc.types.Enum): + """The privacy of a sponsorship + + Enumeration Choices: + + * `PRIVATE`: Private + * `PUBLIC`: Public + """ + + __schema__ = github_schema + __choices__ = ("PRIVATE", "PUBLIC") + + +class SquashMergeCommitMessage(sgqlc.types.Enum): + """The possible default commit messages for squash merges. + + Enumeration Choices: + + * `BLANK`: Default to a blank commit message. + * `COMMIT_MESSAGES`: Default to the branch's commit messages. + * `PR_BODY`: Default to the pull request's body. + """ + + __schema__ = github_schema + __choices__ = ("BLANK", "COMMIT_MESSAGES", "PR_BODY") + + +class SquashMergeCommitTitle(sgqlc.types.Enum): + """The possible default commit titles for squash merges. + + Enumeration Choices: + + * `COMMIT_OR_PR_TITLE`: Default to the commit's title (if only one + commit) or the pull request's title (when more than one commit). + * `PR_TITLE`: Default to the pull request's title. + """ + + __schema__ = github_schema + __choices__ = ("COMMIT_OR_PR_TITLE", "PR_TITLE") + + +class StarOrderField(sgqlc.types.Enum): + """Properties by which star connections can be ordered. + + Enumeration Choices: + + * `STARRED_AT`: Allows ordering a list of stars by when they were + created. + """ + + __schema__ = github_schema + __choices__ = ("STARRED_AT",) + + +class StatusState(sgqlc.types.Enum): + """The possible commit status states. + + Enumeration Choices: + + * `ERROR`: Status is errored. + * `EXPECTED`: Status is expected. + * `FAILURE`: Status is failing. + * `PENDING`: Status is pending. + * `SUCCESS`: Status is successful. + """ + + __schema__ = github_schema + __choices__ = ("ERROR", "EXPECTED", "FAILURE", "PENDING", "SUCCESS") + + +String = sgqlc.types.String + + +class SubscriptionState(sgqlc.types.Enum): + """The possible states of a subscription. + + Enumeration Choices: + + * `IGNORED`: The User is never notified. + * `SUBSCRIBED`: The User is notified of all conversations. + * `UNSUBSCRIBED`: The User is only notified when participating or + @mentioned. + """ + + __schema__ = github_schema + __choices__ = ("IGNORED", "SUBSCRIBED", "UNSUBSCRIBED") + + +class TeamDiscussionCommentOrderField(sgqlc.types.Enum): + """Properties by which team discussion comment connections can be + ordered. + + Enumeration Choices: + + * `NUMBER`: Allows sequential ordering of team discussion comments + (which is equivalent to chronological ordering). + """ + + __schema__ = github_schema + __choices__ = ("NUMBER",) + + +class TeamDiscussionOrderField(sgqlc.types.Enum): + """Properties by which team discussion connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Allows chronological ordering of team discussions. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class TeamMemberOrderField(sgqlc.types.Enum): + """Properties by which team member connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order team members by creation time + * `LOGIN`: Order team members by login + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "LOGIN") + + +class TeamMemberRole(sgqlc.types.Enum): + """The possible team member roles; either 'maintainer' or 'member'. + + Enumeration Choices: + + * `MAINTAINER`: A team maintainer has permission to add and remove + team members. + * `MEMBER`: A team member has no administrative permissions on the + team. + """ + + __schema__ = github_schema + __choices__ = ("MAINTAINER", "MEMBER") + + +class TeamMembershipType(sgqlc.types.Enum): + """Defines which types of team members are included in the returned + list. Can be one of IMMEDIATE, CHILD_TEAM or ALL. + + Enumeration Choices: + + * `ALL`: Includes immediate and child team members for the team. + * `CHILD_TEAM`: Includes only child team members for the team. + * `IMMEDIATE`: Includes only immediate members of the team. + """ + + __schema__ = github_schema + __choices__ = ("ALL", "CHILD_TEAM", "IMMEDIATE") + + +class TeamNotificationSetting(sgqlc.types.Enum): + """The possible team notification values. + + Enumeration Choices: + + * `NOTIFICATIONS_DISABLED`: No one will receive notifications. + * `NOTIFICATIONS_ENABLED`: Everyone will receive notifications + when the team is @mentioned. + """ + + __schema__ = github_schema + __choices__ = ("NOTIFICATIONS_DISABLED", "NOTIFICATIONS_ENABLED") + + +class TeamOrderField(sgqlc.types.Enum): + """Properties by which team connections can be ordered. + + Enumeration Choices: + + * `NAME`: Allows ordering a list of teams by name. + """ + + __schema__ = github_schema + __choices__ = ("NAME",) + + +class TeamPrivacy(sgqlc.types.Enum): + """The possible team privacy values. + + Enumeration Choices: + + * `SECRET`: A secret team can only be seen by its members. + * `VISIBLE`: A visible team can be seen and @mentioned by every + member of the organization. + """ + + __schema__ = github_schema + __choices__ = ("SECRET", "VISIBLE") + + +class TeamRepositoryOrderField(sgqlc.types.Enum): + """Properties by which team repository connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order repositories by creation time + * `NAME`: Order repositories by name + * `PERMISSION`: Order repositories by permission + * `PUSHED_AT`: Order repositories by push time + * `STARGAZERS`: Order repositories by number of stargazers + * `UPDATED_AT`: Order repositories by update time + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "NAME", "PERMISSION", "PUSHED_AT", "STARGAZERS", "UPDATED_AT") + + +class TeamRole(sgqlc.types.Enum): + """The role of a user on a team. + + Enumeration Choices: + + * `ADMIN`: User has admin rights on the team. + * `MEMBER`: User is a member of the team. + """ + + __schema__ = github_schema + __choices__ = ("ADMIN", "MEMBER") + + +class TopicSuggestionDeclineReason(sgqlc.types.Enum): + """Reason that the suggested topic is declined. + + Enumeration Choices: + + * `NOT_RELEVANT`: The suggested topic is not relevant to the + repository. + * `PERSONAL_PREFERENCE`: The viewer does not like the suggested + topic. + * `TOO_GENERAL`: The suggested topic is too general for the + repository. + * `TOO_SPECIFIC`: The suggested topic is too specific for the + repository (e.g. #ruby-on-rails-version-4-2-1). + """ + + __schema__ = github_schema + __choices__ = ("NOT_RELEVANT", "PERSONAL_PREFERENCE", "TOO_GENERAL", "TOO_SPECIFIC") + + +class TrackedIssueStates(sgqlc.types.Enum): + """The possible states of a tracked issue. + + Enumeration Choices: + + * `CLOSED`: The tracked issue is closed + * `OPEN`: The tracked issue is open + """ + + __schema__ = github_schema + __choices__ = ("CLOSED", "OPEN") + + +class URI(sgqlc.types.Scalar): + """An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI + string. + """ + + __schema__ = github_schema + + +class UserBlockDuration(sgqlc.types.Enum): + """The possible durations that a user can be blocked for. + + Enumeration Choices: + + * `ONE_DAY`: The user was blocked for 1 day + * `ONE_MONTH`: The user was blocked for 30 days + * `ONE_WEEK`: The user was blocked for 7 days + * `PERMANENT`: The user was blocked permanently + * `THREE_DAYS`: The user was blocked for 3 days + """ + + __schema__ = github_schema + __choices__ = ("ONE_DAY", "ONE_MONTH", "ONE_WEEK", "PERMANENT", "THREE_DAYS") + + +class UserStatusOrderField(sgqlc.types.Enum): + """Properties by which user status connections can be ordered. + + Enumeration Choices: + + * `UPDATED_AT`: Order user statuses by when they were updated. + """ + + __schema__ = github_schema + __choices__ = ("UPDATED_AT",) + + +class VerifiableDomainOrderField(sgqlc.types.Enum): + """Properties by which verifiable domain connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order verifiable domains by their creation date. + * `DOMAIN`: Order verifiable domains by the domain name. + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT", "DOMAIN") + + +class WorkflowRunOrderField(sgqlc.types.Enum): + """Properties by which workflow run connections can be ordered. + + Enumeration Choices: + + * `CREATED_AT`: Order workflow runs by most recently created + """ + + __schema__ = github_schema + __choices__ = ("CREATED_AT",) + + +class WorkflowState(sgqlc.types.Enum): + """The possible states for a workflow. + + Enumeration Choices: + + * `ACTIVE`: The workflow is active. + * `DELETED`: The workflow was deleted from the git repository. + * `DISABLED_FORK`: The workflow was disabled by default on a fork. + * `DISABLED_INACTIVITY`: The workflow was disabled for inactivity + in the repository. + * `DISABLED_MANUALLY`: The workflow was disabled manually. + """ + + __schema__ = github_schema + __choices__ = ("ACTIVE", "DELETED", "DISABLED_FORK", "DISABLED_INACTIVITY", "DISABLED_MANUALLY") + + +class X509Certificate(sgqlc.types.Scalar): + """A valid x509 certificate string""" + + __schema__ = github_schema + + +######################################################################## +# Input Objects +######################################################################## +class AbortQueuedMigrationsInput(sgqlc.types.Input): + """Autogenerated input type of AbortQueuedMigrations""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the organization that is running the migrations.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AcceptEnterpriseAdministratorInvitationInput(sgqlc.types.Input): + """Autogenerated input type of + AcceptEnterpriseAdministratorInvitation + """ + + __schema__ = github_schema + __field_names__ = ("invitation_id", "client_mutation_id") + invitation_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="invitationId") + """The id of the invitation being accepted""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AcceptTopicSuggestionInput(sgqlc.types.Input): + """Autogenerated input type of AcceptTopicSuggestion""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "name", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the suggested topic.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddAssigneesToAssignableInput(sgqlc.types.Input): + """Autogenerated input type of AddAssigneesToAssignable""" + + __schema__ = github_schema + __field_names__ = ("assignable_id", "assignee_ids", "client_mutation_id") + assignable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="assignableId") + """The id of the assignable object to add assignees to.""" + + assignee_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="assigneeIds") + """The id of users to add as assignees.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddCommentInput(sgqlc.types.Input): + """Autogenerated input type of AddComment""" + + __schema__ = github_schema + __field_names__ = ("subject_id", "body", "client_mutation_id") + subject_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subjectId") + """The Node ID of the subject to modify.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The contents of the comment.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddDiscussionCommentInput(sgqlc.types.Input): + """Autogenerated input type of AddDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("discussion_id", "reply_to_id", "body", "client_mutation_id") + discussion_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="discussionId") + """The Node ID of the discussion to comment on.""" + + reply_to_id = sgqlc.types.Field(ID, graphql_name="replyToId") + """The Node ID of the discussion comment within this discussion to + reply to. + """ + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The contents of the comment.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddDiscussionPollVoteInput(sgqlc.types.Input): + """Autogenerated input type of AddDiscussionPollVote""" + + __schema__ = github_schema + __field_names__ = ("poll_option_id", "client_mutation_id") + poll_option_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pollOptionId") + """The Node ID of the discussion poll option to vote for.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddEnterpriseOrganizationMemberInput(sgqlc.types.Input): + """Autogenerated input type of AddEnterpriseOrganizationMember""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "organization_id", "user_ids", "role", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise which owns the organization.""" + + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization the users will be added to.""" + + user_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="userIds") + """The IDs of the enterprise members to add.""" + + role = sgqlc.types.Field(OrganizationMemberRole, graphql_name="role") + """The role to assign the users in the organization""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddEnterpriseSupportEntitlementInput(sgqlc.types.Input): + """Autogenerated input type of AddEnterpriseSupportEntitlement""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "login", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the Enterprise which the admin belongs to.""" + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of a member who will receive the support entitlement.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddLabelsToLabelableInput(sgqlc.types.Input): + """Autogenerated input type of AddLabelsToLabelable""" + + __schema__ = github_schema + __field_names__ = ("labelable_id", "label_ids", "client_mutation_id") + labelable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="labelableId") + """The id of the labelable object to add labels to.""" + + label_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="labelIds") + """The ids of the labels to add.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddProjectCardInput(sgqlc.types.Input): + """Autogenerated input type of AddProjectCard""" + + __schema__ = github_schema + __field_names__ = ("project_column_id", "content_id", "note", "client_mutation_id") + project_column_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectColumnId") + """The Node ID of the ProjectColumn.""" + + content_id = sgqlc.types.Field(ID, graphql_name="contentId") + """The content of the card. Must be a member of the ProjectCardItem + union + """ + + note = sgqlc.types.Field(String, graphql_name="note") + """The note on the card.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddProjectColumnInput(sgqlc.types.Input): + """Autogenerated input type of AddProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("project_id", "name", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The Node ID of the project.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the column.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddProjectV2DraftIssueInput(sgqlc.types.Input): + """Autogenerated input type of AddProjectV2DraftIssue""" + + __schema__ = github_schema + __field_names__ = ("project_id", "title", "body", "assignee_ids", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to add the draft issue to.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the draft issue. A project item can also be created + by providing the URL of an Issue or Pull Request if you have + access. + """ + + body = sgqlc.types.Field(String, graphql_name="body") + """The body of the draft issue.""" + + assignee_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="assigneeIds") + """The IDs of the assignees of the draft issue.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddProjectV2ItemByIdInput(sgqlc.types.Input): + """Autogenerated input type of AddProjectV2ItemById""" + + __schema__ = github_schema + __field_names__ = ("project_id", "content_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to add the item to.""" + + content_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="contentId") + """The id of the Issue or Pull Request to add.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddPullRequestReviewCommentInput(sgqlc.types.Input): + """Autogenerated input type of AddPullRequestReviewComment""" + + __schema__ = github_schema + __field_names__ = ( + "pull_request_id", + "pull_request_review_id", + "commit_oid", + "body", + "path", + "position", + "in_reply_to", + "client_mutation_id", + ) + pull_request_id = sgqlc.types.Field(ID, graphql_name="pullRequestId") + """The node ID of the pull request reviewing **Upcoming Change on + 2023-10-01 UTC** **Description:** `pullRequestId` will be removed. + use addPullRequestReviewThread or addPullRequestReviewThreadReply + instead **Reason:** We are deprecating the + addPullRequestReviewComment mutation + """ + + pull_request_review_id = sgqlc.types.Field(ID, graphql_name="pullRequestReviewId") + """The Node ID of the review to modify. **Upcoming Change on + 2023-10-01 UTC** **Description:** `pullRequestReviewId` will be + removed. use addPullRequestReviewThread or + addPullRequestReviewThreadReply instead **Reason:** We are + deprecating the addPullRequestReviewComment mutation + """ + + commit_oid = sgqlc.types.Field(GitObjectID, graphql_name="commitOID") + """The SHA of the commit to comment on. **Upcoming Change on + 2023-10-01 UTC** **Description:** `commitOID` will be removed. use + addPullRequestReviewThread or addPullRequestReviewThreadReply + instead **Reason:** We are deprecating the + addPullRequestReviewComment mutation + """ + + body = sgqlc.types.Field(String, graphql_name="body") + """The text of the comment. This field is required **Upcoming Change + on 2023-10-01 UTC** **Description:** `body` will be removed. use + addPullRequestReviewThread or addPullRequestReviewThreadReply + instead **Reason:** We are deprecating the + addPullRequestReviewComment mutation + """ + + path = sgqlc.types.Field(String, graphql_name="path") + """The relative path of the file to comment on. **Upcoming Change on + 2023-10-01 UTC** **Description:** `path` will be removed. use + addPullRequestReviewThread or addPullRequestReviewThreadReply + instead **Reason:** We are deprecating the + addPullRequestReviewComment mutation + """ + + position = sgqlc.types.Field(Int, graphql_name="position") + """The line index in the diff to comment on. **Upcoming Change on + 2023-10-01 UTC** **Description:** `position` will be removed. use + addPullRequestReviewThread or addPullRequestReviewThreadReply + instead **Reason:** We are deprecating the + addPullRequestReviewComment mutation + """ + + in_reply_to = sgqlc.types.Field(ID, graphql_name="inReplyTo") + """The comment id to reply to. **Upcoming Change on 2023-10-01 UTC** + **Description:** `inReplyTo` will be removed. use + addPullRequestReviewThread or addPullRequestReviewThreadReply + instead **Reason:** We are deprecating the + addPullRequestReviewComment mutation + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddPullRequestReviewInput(sgqlc.types.Input): + """Autogenerated input type of AddPullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "commit_oid", "body", "event", "comments", "threads", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The Node ID of the pull request to modify.""" + + commit_oid = sgqlc.types.Field(GitObjectID, graphql_name="commitOID") + """The commit OID the review pertains to.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The contents of the review body comment.""" + + event = sgqlc.types.Field(PullRequestReviewEvent, graphql_name="event") + """The event to perform on the pull request review.""" + + comments = sgqlc.types.Field(sgqlc.types.list_of("DraftPullRequestReviewComment"), graphql_name="comments") + """The review line comments. **Upcoming Change on 2023-10-01 UTC** + **Description:** `comments` will be removed. use the `threads` + argument instead **Reason:** We are deprecating comment fields + that use diff-relative positioning + """ + + threads = sgqlc.types.Field(sgqlc.types.list_of("DraftPullRequestReviewThread"), graphql_name="threads") + """The review line comment threads.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddPullRequestReviewThreadInput(sgqlc.types.Input): + """Autogenerated input type of AddPullRequestReviewThread""" + + __schema__ = github_schema + __field_names__ = ( + "path", + "body", + "pull_request_id", + "pull_request_review_id", + "line", + "side", + "start_line", + "start_side", + "subject_type", + "client_mutation_id", + ) + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """Path to the file being commented on.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """Body of the thread's first comment.""" + + pull_request_id = sgqlc.types.Field(ID, graphql_name="pullRequestId") + """The node ID of the pull request reviewing""" + + pull_request_review_id = sgqlc.types.Field(ID, graphql_name="pullRequestReviewId") + """The Node ID of the review to modify.""" + + line = sgqlc.types.Field(Int, graphql_name="line") + """The line of the blob to which the thread refers, required for + line-level threads. The end of the line range for multi-line + comments. + """ + + side = sgqlc.types.Field(DiffSide, graphql_name="side") + """The side of the diff on which the line resides. For multi-line + comments, this is the side for the end of the line range. + """ + + start_line = sgqlc.types.Field(Int, graphql_name="startLine") + """The first line of the range to which the comment refers.""" + + start_side = sgqlc.types.Field(DiffSide, graphql_name="startSide") + """The side of the diff on which the start line resides.""" + + subject_type = sgqlc.types.Field(PullRequestReviewThreadSubjectType, graphql_name="subjectType") + """The level at which the comments in the corresponding thread are + targeted, can be a diff line or a file + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddReactionInput(sgqlc.types.Input): + """Autogenerated input type of AddReaction""" + + __schema__ = github_schema + __field_names__ = ("subject_id", "content", "client_mutation_id") + subject_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subjectId") + """The Node ID of the subject to modify.""" + + content = sgqlc.types.Field(sgqlc.types.non_null(ReactionContent), graphql_name="content") + """The name of the emoji to react with.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddStarInput(sgqlc.types.Input): + """Autogenerated input type of AddStar""" + + __schema__ = github_schema + __field_names__ = ("starrable_id", "client_mutation_id") + starrable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="starrableId") + """The Starrable ID to star.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddUpvoteInput(sgqlc.types.Input): + """Autogenerated input type of AddUpvote""" + + __schema__ = github_schema + __field_names__ = ("subject_id", "client_mutation_id") + subject_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subjectId") + """The Node ID of the discussion or comment to upvote.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddVerifiableDomainInput(sgqlc.types.Input): + """Autogenerated input type of AddVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "domain", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the owner to add the domain to""" + + domain = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="domain") + """The URL of the domain""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ApproveDeploymentsInput(sgqlc.types.Input): + """Autogenerated input type of ApproveDeployments""" + + __schema__ = github_schema + __field_names__ = ("workflow_run_id", "environment_ids", "comment", "client_mutation_id") + workflow_run_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="workflowRunId") + """The node ID of the workflow run containing the pending + deployments. + """ + + environment_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="environmentIds") + """The ids of environments to reject deployments""" + + comment = sgqlc.types.Field(String, graphql_name="comment") + """Optional comment for approving deployments""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ApproveVerifiableDomainInput(sgqlc.types.Input): + """Autogenerated input type of ApproveVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the verifiable domain to approve.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ArchiveProjectV2ItemInput(sgqlc.types.Input): + """Autogenerated input type of ArchiveProjectV2Item""" + + __schema__ = github_schema + __field_names__ = ("project_id", "item_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to archive the item from.""" + + item_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="itemId") + """The ID of the ProjectV2Item to archive.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ArchiveRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of ArchiveRepository""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to mark as archived.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AuditLogOrder(sgqlc.types.Input): + """Ordering options for Audit Log connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(AuditLogOrderField, graphql_name="field") + """The field to order Audit Logs by.""" + + direction = sgqlc.types.Field(OrderDirection, graphql_name="direction") + """The ordering direction.""" + + +class BranchNamePatternParametersInput(sgqlc.types.Input): + """Parameters to be used for the branch_name_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(Boolean, graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class BulkSponsorship(sgqlc.types.Input): + """Information about a sponsorship to make for a user or organization + with a GitHub Sponsors profile, as part of sponsoring many users + or organizations at once. + """ + + __schema__ = github_schema + __field_names__ = ("sponsorable_id", "sponsorable_login", "amount") + sponsorable_id = sgqlc.types.Field(ID, graphql_name="sponsorableId") + """The ID of the user or organization who is receiving the + sponsorship. Required if sponsorableLogin is not given. + """ + + sponsorable_login = sgqlc.types.Field(String, graphql_name="sponsorableLogin") + """The username of the user or organization who is receiving the + sponsorship. Required if sponsorableId is not given. + """ + + amount = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="amount") + """The amount to pay to the sponsorable in US dollars. Valid values: + 1-12000. + """ + + +class CancelEnterpriseAdminInvitationInput(sgqlc.types.Input): + """Autogenerated input type of CancelEnterpriseAdminInvitation""" + + __schema__ = github_schema + __field_names__ = ("invitation_id", "client_mutation_id") + invitation_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="invitationId") + """The Node ID of the pending enterprise administrator invitation.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CancelSponsorshipInput(sgqlc.types.Input): + """Autogenerated input type of CancelSponsorship""" + + __schema__ = github_schema + __field_names__ = ("sponsor_id", "sponsor_login", "sponsorable_id", "sponsorable_login", "client_mutation_id") + sponsor_id = sgqlc.types.Field(ID, graphql_name="sponsorId") + """The ID of the user or organization who is acting as the sponsor, + paying for the sponsorship. Required if sponsorLogin is not given. + """ + + sponsor_login = sgqlc.types.Field(String, graphql_name="sponsorLogin") + """The username of the user or organization who is acting as the + sponsor, paying for the sponsorship. Required if sponsorId is not + given. + """ + + sponsorable_id = sgqlc.types.Field(ID, graphql_name="sponsorableId") + """The ID of the user or organization who is receiving the + sponsorship. Required if sponsorableLogin is not given. + """ + + sponsorable_login = sgqlc.types.Field(String, graphql_name="sponsorableLogin") + """The username of the user or organization who is receiving the + sponsorship. Required if sponsorableId is not given. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ChangeUserStatusInput(sgqlc.types.Input): + """Autogenerated input type of ChangeUserStatus""" + + __schema__ = github_schema + __field_names__ = ("emoji", "message", "organization_id", "limited_availability", "expires_at", "client_mutation_id") + emoji = sgqlc.types.Field(String, graphql_name="emoji") + """The emoji to represent your status. Can either be a native Unicode + emoji or an emoji name with colons, e.g., :grinning:. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A short description of your current status.""" + + organization_id = sgqlc.types.Field(ID, graphql_name="organizationId") + """The ID of the organization whose members will be allowed to see + the status. If omitted, the status will be publicly visible. + """ + + limited_availability = sgqlc.types.Field(Boolean, graphql_name="limitedAvailability") + """Whether this status should indicate you are not fully available on + GitHub, e.g., you are away. + """ + + expires_at = sgqlc.types.Field(DateTime, graphql_name="expiresAt") + """If set, the user status will not be shown after this date.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CheckAnnotationData(sgqlc.types.Input): + """Information from a check run analysis to specific lines of code.""" + + __schema__ = github_schema + __field_names__ = ("path", "location", "annotation_level", "message", "title", "raw_details") + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path of the file to add an annotation to.""" + + location = sgqlc.types.Field(sgqlc.types.non_null("CheckAnnotationRange"), graphql_name="location") + """The location of the annotation""" + + annotation_level = sgqlc.types.Field(sgqlc.types.non_null(CheckAnnotationLevel), graphql_name="annotationLevel") + """Represents an annotation's information level""" + + message = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="message") + """A short description of the feedback for these lines of code.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The title that represents the annotation.""" + + raw_details = sgqlc.types.Field(String, graphql_name="rawDetails") + """Details about this annotation.""" + + +class CheckAnnotationRange(sgqlc.types.Input): + """Information from a check run analysis to specific lines of code.""" + + __schema__ = github_schema + __field_names__ = ("start_line", "start_column", "end_line", "end_column") + start_line = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="startLine") + """The starting line of the range.""" + + start_column = sgqlc.types.Field(Int, graphql_name="startColumn") + """The starting column of the range.""" + + end_line = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="endLine") + """The ending line of the range.""" + + end_column = sgqlc.types.Field(Int, graphql_name="endColumn") + """The ending column of the range.""" + + +class CheckRunAction(sgqlc.types.Input): + """Possible further actions the integrator can perform.""" + + __schema__ = github_schema + __field_names__ = ("label", "description", "identifier") + label = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="label") + """The text to be displayed on a button in the web UI.""" + + description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="description") + """A short explanation of what this action would do.""" + + identifier = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="identifier") + """A reference for the action on the integrator's system.""" + + +class CheckRunFilter(sgqlc.types.Input): + """The filters that are available when fetching check runs.""" + + __schema__ = github_schema + __field_names__ = ("check_type", "app_id", "check_name", "status", "statuses", "conclusions") + check_type = sgqlc.types.Field(CheckRunType, graphql_name="checkType") + """Filters the check runs by this type.""" + + app_id = sgqlc.types.Field(Int, graphql_name="appId") + """Filters the check runs created by this application ID.""" + + check_name = sgqlc.types.Field(String, graphql_name="checkName") + """Filters the check runs by this name.""" + + status = sgqlc.types.Field(CheckStatusState, graphql_name="status") + """Filters the check runs by this status. Superceded by statuses.""" + + statuses = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(CheckStatusState)), graphql_name="statuses") + """Filters the check runs by this status. Overrides status.""" + + conclusions = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(CheckConclusionState)), graphql_name="conclusions") + """Filters the check runs by these conclusions.""" + + +class CheckRunOutput(sgqlc.types.Input): + """Descriptive details about the check run.""" + + __schema__ = github_schema + __field_names__ = ("title", "summary", "text", "annotations", "images") + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """A title to provide for this check run.""" + + summary = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="summary") + """The summary of the check run (supports Commonmark).""" + + text = sgqlc.types.Field(String, graphql_name="text") + """The details of the check run (supports Commonmark).""" + + annotations = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(CheckAnnotationData)), graphql_name="annotations") + """The annotations that are made as part of the check run.""" + + images = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("CheckRunOutputImage")), graphql_name="images") + """Images attached to the check run output displayed in the GitHub + pull request UI. + """ + + +class CheckRunOutputImage(sgqlc.types.Input): + """Images attached to the check run output displayed in the GitHub + pull request UI. + """ + + __schema__ = github_schema + __field_names__ = ("alt", "image_url", "caption") + alt = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="alt") + """The alternative text for the image.""" + + image_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="imageUrl") + """The full URL of the image.""" + + caption = sgqlc.types.Field(String, graphql_name="caption") + """A short image description.""" + + +class CheckSuiteAutoTriggerPreference(sgqlc.types.Input): + """The auto-trigger preferences that are available for check suites.""" + + __schema__ = github_schema + __field_names__ = ("app_id", "setting") + app_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="appId") + """The node ID of the application that owns the check suite.""" + + setting = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="setting") + """Set to `true` to enable automatic creation of CheckSuite events + upon pushes to the repository. + """ + + +class CheckSuiteFilter(sgqlc.types.Input): + """The filters that are available when fetching check suites.""" + + __schema__ = github_schema + __field_names__ = ("app_id", "check_name") + app_id = sgqlc.types.Field(Int, graphql_name="appId") + """Filters the check suites created by this application ID.""" + + check_name = sgqlc.types.Field(String, graphql_name="checkName") + """Filters the check suites by this name.""" + + +class ClearLabelsFromLabelableInput(sgqlc.types.Input): + """Autogenerated input type of ClearLabelsFromLabelable""" + + __schema__ = github_schema + __field_names__ = ("labelable_id", "client_mutation_id") + labelable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="labelableId") + """The id of the labelable object to clear the labels from.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ClearProjectV2ItemFieldValueInput(sgqlc.types.Input): + """Autogenerated input type of ClearProjectV2ItemFieldValue""" + + __schema__ = github_schema + __field_names__ = ("project_id", "item_id", "field_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project.""" + + item_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="itemId") + """The ID of the item to be cleared.""" + + field_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="fieldId") + """The ID of the field to be cleared.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CloneProjectInput(sgqlc.types.Input): + """Autogenerated input type of CloneProject""" + + __schema__ = github_schema + __field_names__ = ("target_owner_id", "source_id", "include_workflows", "name", "body", "public", "client_mutation_id") + target_owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="targetOwnerId") + """The owner ID to create the project under.""" + + source_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="sourceId") + """The source project to clone.""" + + include_workflows = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="includeWorkflows") + """Whether or not to clone the source project's workflows.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the project.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The description of the project.""" + + public = sgqlc.types.Field(Boolean, graphql_name="public") + """The visibility of the project, defaults to false (private).""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CloneTemplateRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of CloneTemplateRepository""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "name", "owner_id", "description", "visibility", "include_all_branches", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the template repository.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the new repository.""" + + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the owner for the new repository.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """A short description of the new repository.""" + + visibility = sgqlc.types.Field(sgqlc.types.non_null(RepositoryVisibility), graphql_name="visibility") + """Indicates the repository's visibility level.""" + + include_all_branches = sgqlc.types.Field(Boolean, graphql_name="includeAllBranches") + """Whether to copy all branches from the template to the new + repository. Defaults to copying only the default branch of the + template. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CloseDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of CloseDiscussion""" + + __schema__ = github_schema + __field_names__ = ("discussion_id", "reason", "client_mutation_id") + discussion_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="discussionId") + """ID of the discussion to be closed.""" + + reason = sgqlc.types.Field(DiscussionCloseReason, graphql_name="reason") + """The reason why the discussion is being closed.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CloseIssueInput(sgqlc.types.Input): + """Autogenerated input type of CloseIssue""" + + __schema__ = github_schema + __field_names__ = ("issue_id", "state_reason", "client_mutation_id") + issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="issueId") + """ID of the issue to be closed.""" + + state_reason = sgqlc.types.Field(IssueClosedStateReason, graphql_name="stateReason") + """The reason the issue is to be closed.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ClosePullRequestInput(sgqlc.types.Input): + """Autogenerated input type of ClosePullRequest""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """ID of the pull request to be closed.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CommitAuthor(sgqlc.types.Input): + """Specifies an author for filtering Git commits.""" + + __schema__ = github_schema + __field_names__ = ("id", "emails") + id = sgqlc.types.Field(ID, graphql_name="id") + """ID of a User to filter by. If non-null, only commits authored by + this user will be returned. This field takes precedence over + emails. + """ + + emails = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="emails") + """Email addresses to filter by. Commits authored by any of the + specified email addresses will be returned. + """ + + +class CommitAuthorEmailPatternParametersInput(sgqlc.types.Input): + """Parameters to be used for the commit_author_email_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(Boolean, graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class CommitContributionOrder(sgqlc.types.Input): + """Ordering options for commit contribution connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(CommitContributionOrderField), graphql_name="field") + """The field by which to order commit contributions.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class CommitMessage(sgqlc.types.Input): + """A message to include with a new commit""" + + __schema__ = github_schema + __field_names__ = ("headline", "body") + headline = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="headline") + """The headline of the message.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The body of the message.""" + + +class CommitMessagePatternParametersInput(sgqlc.types.Input): + """Parameters to be used for the commit_message_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(Boolean, graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class CommittableBranch(sgqlc.types.Input): + """A git ref for a commit to be appended to. The ref must be a + branch, i.e. its fully qualified name must start with + `refs/heads/` (although the input is not required to be fully + qualified). The Ref may be specified by its global node ID or by + the `repositoryNameWithOwner` and `branchName`. ### Examples + Specify a branch using a global node ID: { "id": + "MDM6UmVmMTpyZWZzL2hlYWRzL21haW4=" } Specify a branch using + `repositoryNameWithOwner` and `branchName`: { + "repositoryNameWithOwner": "github/graphql-client", + "branchName": "main" } + """ + + __schema__ = github_schema + __field_names__ = ("id", "repository_name_with_owner", "branch_name") + id = sgqlc.types.Field(ID, graphql_name="id") + """The Node ID of the Ref to be updated.""" + + repository_name_with_owner = sgqlc.types.Field(String, graphql_name="repositoryNameWithOwner") + """The nameWithOwner of the repository to commit to.""" + + branch_name = sgqlc.types.Field(String, graphql_name="branchName") + """The unqualified name of the branch to append the commit to.""" + + +class CommitterEmailPatternParametersInput(sgqlc.types.Input): + """Parameters to be used for the committer_email_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(Boolean, graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class ContributionOrder(sgqlc.types.Input): + """Ordering options for contribution connections.""" + + __schema__ = github_schema + __field_names__ = ("direction",) + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class ConvertProjectCardNoteToIssueInput(sgqlc.types.Input): + """Autogenerated input type of ConvertProjectCardNoteToIssue""" + + __schema__ = github_schema + __field_names__ = ("project_card_id", "repository_id", "title", "body", "client_mutation_id") + project_card_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectCardId") + """The ProjectCard ID to convert.""" + + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to create the issue in.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The title of the newly created issue. Defaults to the card's note + text. + """ + + body = sgqlc.types.Field(String, graphql_name="body") + """The body of the newly created issue.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ConvertPullRequestToDraftInput(sgqlc.types.Input): + """Autogenerated input type of ConvertPullRequestToDraft""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """ID of the pull request to convert to draft""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CopyProjectV2Input(sgqlc.types.Input): + """Autogenerated input type of CopyProjectV2""" + + __schema__ = github_schema + __field_names__ = ("project_id", "owner_id", "title", "include_draft_issues", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the source Project to copy.""" + + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The owner ID of the new project.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the project.""" + + include_draft_issues = sgqlc.types.Field(Boolean, graphql_name="includeDraftIssues") + """Include draft issues in the new project""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateAttributionInvitationInput(sgqlc.types.Input): + """Autogenerated input type of CreateAttributionInvitation""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "source_id", "target_id", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The Node ID of the owner scoping the reattributable data.""" + + source_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="sourceId") + """The Node ID of the account owning the data to reattribute.""" + + target_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="targetId") + """The Node ID of the account which may claim the data.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateBranchProtectionRuleInput(sgqlc.types.Input): + """Autogenerated input type of CreateBranchProtectionRule""" + + __schema__ = github_schema + __field_names__ = ( + "repository_id", + "pattern", + "requires_approving_reviews", + "required_approving_review_count", + "requires_commit_signatures", + "requires_linear_history", + "blocks_creations", + "allows_force_pushes", + "allows_deletions", + "is_admin_enforced", + "requires_status_checks", + "requires_strict_status_checks", + "requires_code_owner_reviews", + "dismisses_stale_reviews", + "restricts_review_dismissals", + "review_dismissal_actor_ids", + "bypass_pull_request_actor_ids", + "bypass_force_push_actor_ids", + "restricts_pushes", + "push_actor_ids", + "required_status_check_contexts", + "required_status_checks", + "requires_deployments", + "required_deployment_environments", + "requires_conversation_resolution", + "require_last_push_approval", + "lock_branch", + "lock_allows_fetch_and_merge", + "client_mutation_id", + ) + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The global relay id of the repository in which a new branch + protection rule should be created in. + """ + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The glob-like pattern used to determine matching branches.""" + + requires_approving_reviews = sgqlc.types.Field(Boolean, graphql_name="requiresApprovingReviews") + """Are approving reviews required to update matching branches.""" + + required_approving_review_count = sgqlc.types.Field(Int, graphql_name="requiredApprovingReviewCount") + """Number of approving reviews required to update matching branches.""" + + requires_commit_signatures = sgqlc.types.Field(Boolean, graphql_name="requiresCommitSignatures") + """Are commits required to be signed.""" + + requires_linear_history = sgqlc.types.Field(Boolean, graphql_name="requiresLinearHistory") + """Are merge commits prohibited from being pushed to this branch.""" + + blocks_creations = sgqlc.types.Field(Boolean, graphql_name="blocksCreations") + """Is branch creation a protected operation.""" + + allows_force_pushes = sgqlc.types.Field(Boolean, graphql_name="allowsForcePushes") + """Are force pushes allowed on this branch.""" + + allows_deletions = sgqlc.types.Field(Boolean, graphql_name="allowsDeletions") + """Can this branch be deleted.""" + + is_admin_enforced = sgqlc.types.Field(Boolean, graphql_name="isAdminEnforced") + """Can admins overwrite branch protection.""" + + requires_status_checks = sgqlc.types.Field(Boolean, graphql_name="requiresStatusChecks") + """Are status checks required to update matching branches.""" + + requires_strict_status_checks = sgqlc.types.Field(Boolean, graphql_name="requiresStrictStatusChecks") + """Are branches required to be up to date before merging.""" + + requires_code_owner_reviews = sgqlc.types.Field(Boolean, graphql_name="requiresCodeOwnerReviews") + """Are reviews from code owners required to update matching branches.""" + + dismisses_stale_reviews = sgqlc.types.Field(Boolean, graphql_name="dismissesStaleReviews") + """Will new commits pushed to matching branches dismiss pull request + review approvals. + """ + + restricts_review_dismissals = sgqlc.types.Field(Boolean, graphql_name="restrictsReviewDismissals") + """Is dismissal of pull request reviews restricted.""" + + review_dismissal_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="reviewDismissalActorIds") + """A list of User, Team, or App IDs allowed to dismiss reviews on + pull requests targeting matching branches. + """ + + bypass_pull_request_actor_ids = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="bypassPullRequestActorIds" + ) + """A list of User, Team, or App IDs allowed to bypass pull requests + targeting matching branches. + """ + + bypass_force_push_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="bypassForcePushActorIds") + """A list of User, Team, or App IDs allowed to bypass force push + targeting matching branches. + """ + + restricts_pushes = sgqlc.types.Field(Boolean, graphql_name="restrictsPushes") + """Is pushing to matching branches restricted.""" + + push_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="pushActorIds") + """A list of User, Team, or App IDs allowed to push to matching + branches. + """ + + required_status_check_contexts = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="requiredStatusCheckContexts" + ) + """List of required status check contexts that must pass for commits + to be accepted to matching branches. + """ + + required_status_checks = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null("RequiredStatusCheckInput")), graphql_name="requiredStatusChecks" + ) + """The list of required status checks""" + + requires_deployments = sgqlc.types.Field(Boolean, graphql_name="requiresDeployments") + """Are successful deployments required before merging.""" + + required_deployment_environments = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="requiredDeploymentEnvironments" + ) + """The list of required deployment environments""" + + requires_conversation_resolution = sgqlc.types.Field(Boolean, graphql_name="requiresConversationResolution") + """Are conversations required to be resolved before merging.""" + + require_last_push_approval = sgqlc.types.Field(Boolean, graphql_name="requireLastPushApproval") + """Whether the most recent push must be approved by someone other + than the person who pushed it + """ + + lock_branch = sgqlc.types.Field(Boolean, graphql_name="lockBranch") + """Whether to set the branch as read-only. If this is true, users + will not be able to push to the branch. + """ + + lock_allows_fetch_and_merge = sgqlc.types.Field(Boolean, graphql_name="lockAllowsFetchAndMerge") + """Whether users can pull changes from upstream when the branch is + locked. Set to `true` to allow fork syncing. Set to `false` to + prevent fork syncing. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateCheckRunInput(sgqlc.types.Input): + """Autogenerated input type of CreateCheckRun""" + + __schema__ = github_schema + __field_names__ = ( + "repository_id", + "name", + "head_sha", + "details_url", + "external_id", + "status", + "started_at", + "conclusion", + "completed_at", + "output", + "actions", + "client_mutation_id", + ) + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The node ID of the repository.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the check.""" + + head_sha = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="headSha") + """The SHA of the head commit.""" + + details_url = sgqlc.types.Field(URI, graphql_name="detailsUrl") + """The URL of the integrator's site that has the full details of the + check. + """ + + external_id = sgqlc.types.Field(String, graphql_name="externalId") + """A reference for the run on the integrator's system.""" + + status = sgqlc.types.Field(RequestableCheckStatusState, graphql_name="status") + """The current status.""" + + started_at = sgqlc.types.Field(DateTime, graphql_name="startedAt") + """The time that the check run began.""" + + conclusion = sgqlc.types.Field(CheckConclusionState, graphql_name="conclusion") + """The final conclusion of the check.""" + + completed_at = sgqlc.types.Field(DateTime, graphql_name="completedAt") + """The time that the check run finished.""" + + output = sgqlc.types.Field(CheckRunOutput, graphql_name="output") + """Descriptive details about the run.""" + + actions = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(CheckRunAction)), graphql_name="actions") + """Possible further actions the integrator can perform, which a user + may trigger. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateCheckSuiteInput(sgqlc.types.Input): + """Autogenerated input type of CreateCheckSuite""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "head_sha", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + head_sha = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="headSha") + """The SHA of the head commit.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateCommitOnBranchInput(sgqlc.types.Input): + """Autogenerated input type of CreateCommitOnBranch""" + + __schema__ = github_schema + __field_names__ = ("branch", "file_changes", "message", "expected_head_oid", "client_mutation_id") + branch = sgqlc.types.Field(sgqlc.types.non_null(CommittableBranch), graphql_name="branch") + """The Ref to be updated. Must be a branch.""" + + file_changes = sgqlc.types.Field("FileChanges", graphql_name="fileChanges") + """A description of changes to files in this commit.""" + + message = sgqlc.types.Field(sgqlc.types.non_null(CommitMessage), graphql_name="message") + """The commit message the be included with the commit.""" + + expected_head_oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="expectedHeadOid") + """The git commit oid expected at the head of the branch prior to the + commit + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of CreateDiscussion""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "title", "body", "category_id", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The id of the repository on which to create the discussion.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the discussion.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The body of the discussion.""" + + category_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="categoryId") + """The id of the discussion category to associate with this + discussion. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateEnterpriseOrganizationInput(sgqlc.types.Input): + """Autogenerated input type of CreateEnterpriseOrganization""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "login", "profile_name", "billing_email", "admin_logins", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise owning the new organization.""" + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of the new organization.""" + + profile_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="profileName") + """The profile name of the new organization.""" + + billing_email = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="billingEmail") + """The email used for sending billing receipts.""" + + admin_logins = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="adminLogins") + """The logins for the administrators of the new organization.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateEnvironmentInput(sgqlc.types.Input): + """Autogenerated input type of CreateEnvironment""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "name", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The node ID of the repository.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the environment.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateIpAllowListEntryInput(sgqlc.types.Input): + """Autogenerated input type of CreateIpAllowListEntry""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "allow_list_value", "name", "is_active", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the owner for which to create the new IP allow list + entry. + """ + + allow_list_value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="allowListValue") + """An IP address or range of addresses in CIDR notation.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """An optional name for the IP allow list entry.""" + + is_active = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isActive") + """Whether the IP allow list entry is active when an IP allow list is + enabled. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateIssueInput(sgqlc.types.Input): + """Autogenerated input type of CreateIssue""" + + __schema__ = github_schema + __field_names__ = ( + "repository_id", + "title", + "body", + "assignee_ids", + "milestone_id", + "label_ids", + "project_ids", + "issue_template", + "client_mutation_id", + ) + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title for the issue.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The body for the issue description.""" + + assignee_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="assigneeIds") + """The Node ID for the user assignee for this issue.""" + + milestone_id = sgqlc.types.Field(ID, graphql_name="milestoneId") + """The Node ID of the milestone for this issue.""" + + label_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="labelIds") + """An array of Node IDs of labels for this issue.""" + + project_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="projectIds") + """An array of Node IDs for projects associated with this issue.""" + + issue_template = sgqlc.types.Field(String, graphql_name="issueTemplate") + """The name of an issue template in the repository, assigns labels + and assignees from the template to the issue + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateLinkedBranchInput(sgqlc.types.Input): + """Autogenerated input type of CreateLinkedBranch""" + + __schema__ = github_schema + __field_names__ = ("issue_id", "oid", "name", "repository_id", "client_mutation_id") + issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="issueId") + """ID of the issue to link to.""" + + oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="oid") + """The commit SHA to base the new branch on.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The name of the new branch. Defaults to issue number and title.""" + + repository_id = sgqlc.types.Field(ID, graphql_name="repositoryId") + """ID of the repository to create the branch in. Defaults to the + issue repository. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateMigrationSourceInput(sgqlc.types.Input): + """Autogenerated input type of CreateMigrationSource""" + + __schema__ = github_schema + __field_names__ = ("name", "url", "access_token", "type", "owner_id", "github_pat", "client_mutation_id") + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The migration source name.""" + + url = sgqlc.types.Field(String, graphql_name="url") + """The migration source URL, for example `https://github.com` or + `https://monalisa.ghe.com`. + """ + + access_token = sgqlc.types.Field(String, graphql_name="accessToken") + """The migration source access token.""" + + type = sgqlc.types.Field(sgqlc.types.non_null(MigrationSourceType), graphql_name="type") + """The migration source type.""" + + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the organization that will own the migration source.""" + + github_pat = sgqlc.types.Field(String, graphql_name="githubPat") + """The GitHub personal access token of the user importing to the + target repository. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateProjectInput(sgqlc.types.Input): + """Autogenerated input type of CreateProject""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "name", "body", "template", "repository_ids", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The owner ID to create the project under.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of project.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The description of project.""" + + template = sgqlc.types.Field(ProjectTemplate, graphql_name="template") + """The name of the GitHub-provided template.""" + + repository_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="repositoryIds") + """A list of repository IDs to create as linked repositories for the + project + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateProjectV2FieldInput(sgqlc.types.Input): + """Autogenerated input type of CreateProjectV2Field""" + + __schema__ = github_schema + __field_names__ = ("project_id", "data_type", "name", "single_select_options", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to create the field in.""" + + data_type = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2CustomFieldType), graphql_name="dataType") + """The data type of the field.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the field.""" + + single_select_options = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null("ProjectV2SingleSelectFieldOptionInput")), graphql_name="singleSelectOptions" + ) + """Options for a single select field. At least one value is required + if data_type is SINGLE_SELECT + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateProjectV2Input(sgqlc.types.Input): + """Autogenerated input type of CreateProjectV2""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "title", "repository_id", "team_id", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The owner ID to create the project under.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the project.""" + + repository_id = sgqlc.types.Field(ID, graphql_name="repositoryId") + """The repository to link the project to.""" + + team_id = sgqlc.types.Field(ID, graphql_name="teamId") + """The team to link the project to. The team will be granted read + permissions. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreatePullRequestInput(sgqlc.types.Input): + """Autogenerated input type of CreatePullRequest""" + + __schema__ = github_schema + __field_names__ = ( + "repository_id", + "base_ref_name", + "head_ref_name", + "head_repository_id", + "title", + "body", + "maintainer_can_modify", + "draft", + "client_mutation_id", + ) + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + base_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="baseRefName") + """The name of the branch you want your changes pulled into. This + should be an existing branch on the current repository. You cannot + update the base branch on a pull request to point to another + repository. + """ + + head_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="headRefName") + """The name of the branch where your changes are implemented. For + cross-repository pull requests in the same network, namespace + `head_ref_name` with a user like this: `username:branch`. + """ + + head_repository_id = sgqlc.types.Field(ID, graphql_name="headRepositoryId") + """The Node ID of the head repository.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the pull request.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The contents of the pull request.""" + + maintainer_can_modify = sgqlc.types.Field(Boolean, graphql_name="maintainerCanModify") + """Indicates whether maintainers can modify the pull request.""" + + draft = sgqlc.types.Field(Boolean, graphql_name="draft") + """Indicates whether this pull request should be a draft.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateRefInput(sgqlc.types.Input): + """Autogenerated input type of CreateRef""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "name", "oid", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the Repository to create the Ref in.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The fully qualified name of the new Ref (ie: + `refs/heads/my_new_branch`). + """ + + oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="oid") + """The GitObjectID that the new Ref shall target. Must point to a + commit. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of CreateRepository""" + + __schema__ = github_schema + __field_names__ = ( + "name", + "owner_id", + "description", + "visibility", + "template", + "homepage_url", + "has_wiki_enabled", + "has_issues_enabled", + "team_id", + "client_mutation_id", + ) + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the new repository.""" + + owner_id = sgqlc.types.Field(ID, graphql_name="ownerId") + """The ID of the owner for the new repository.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """A short description of the new repository.""" + + visibility = sgqlc.types.Field(sgqlc.types.non_null(RepositoryVisibility), graphql_name="visibility") + """Indicates the repository's visibility level.""" + + template = sgqlc.types.Field(Boolean, graphql_name="template") + """Whether this repository should be marked as a template such that + anyone who can access it can create new repositories with the same + files and directory structure. + """ + + homepage_url = sgqlc.types.Field(URI, graphql_name="homepageUrl") + """The URL for a web page about this repository.""" + + has_wiki_enabled = sgqlc.types.Field(Boolean, graphql_name="hasWikiEnabled") + """Indicates if the repository should have the wiki feature enabled.""" + + has_issues_enabled = sgqlc.types.Field(Boolean, graphql_name="hasIssuesEnabled") + """Indicates if the repository should have the issues feature + enabled. + """ + + team_id = sgqlc.types.Field(ID, graphql_name="teamId") + """When an organization is specified as the owner, this ID identifies + the team that should be granted access to the new repository. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateRepositoryRulesetInput(sgqlc.types.Input): + """Autogenerated input type of CreateRepositoryRuleset""" + + __schema__ = github_schema + __field_names__ = ( + "source_id", + "name", + "target", + "rules", + "conditions", + "enforcement", + "bypass_mode", + "bypass_actor_ids", + "client_mutation_id", + ) + source_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="sourceId") + """The global relay id of the source in which a new ruleset should be + created in. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the ruleset.""" + + target = sgqlc.types.Field(RepositoryRulesetTarget, graphql_name="target") + """The target of the ruleset.""" + + rules = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("RepositoryRuleInput")), graphql_name="rules") + """The list of rules for this ruleset""" + + conditions = sgqlc.types.Field(sgqlc.types.non_null("RepositoryRuleConditionsInput"), graphql_name="conditions") + """The set of conditions for this ruleset""" + + enforcement = sgqlc.types.Field(sgqlc.types.non_null(RuleEnforcement), graphql_name="enforcement") + """The enforcement level for this ruleset""" + + bypass_mode = sgqlc.types.Field(RuleBypassMode, graphql_name="bypassMode") + """The bypass mode for this ruleset""" + + bypass_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="bypassActorIds") + """A list of Team or App IDs allowed to bypass rules in this ruleset.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateSponsorsListingInput(sgqlc.types.Input): + """Autogenerated input type of CreateSponsorsListing""" + + __schema__ = github_schema + __field_names__ = ( + "sponsorable_login", + "fiscal_host_login", + "fiscally_hosted_project_profile_url", + "billing_country_or_region_code", + "residence_country_or_region_code", + "contact_email", + "full_description", + "client_mutation_id", + ) + sponsorable_login = sgqlc.types.Field(String, graphql_name="sponsorableLogin") + """The username of the organization to create a GitHub Sponsors + profile for, if desired. Defaults to creating a GitHub Sponsors + profile for the authenticated user if omitted. + """ + + fiscal_host_login = sgqlc.types.Field(String, graphql_name="fiscalHostLogin") + """The username of the supported fiscal host's GitHub organization, + if you want to receive sponsorship payouts through a fiscal host + rather than directly to a bank account. For example, 'Open-Source- + Collective' for Open Source Collective or 'numfocus' for numFOCUS. + Case insensitive. See https://docs.github.com/sponsors/receiving- + sponsorships-through-github-sponsors/using-a-fiscal-host-to- + receive-github-sponsors-payouts for more information. + """ + + fiscally_hosted_project_profile_url = sgqlc.types.Field(String, graphql_name="fiscallyHostedProjectProfileUrl") + """The URL for your profile page on the fiscal host's website, e.g., + https://opencollective.com/babel or + https://numfocus.org/project/bokeh. Required if fiscalHostLogin is + specified. + """ + + billing_country_or_region_code = sgqlc.types.Field(SponsorsCountryOrRegionCode, graphql_name="billingCountryOrRegionCode") + """The country or region where the sponsorable's bank account is + located. Required if fiscalHostLogin is not specified, ignored + when fiscalHostLogin is specified. + """ + + residence_country_or_region_code = sgqlc.types.Field(SponsorsCountryOrRegionCode, graphql_name="residenceCountryOrRegionCode") + """The country or region where the sponsorable resides. This is for + tax purposes. Required if the sponsorable is yourself, ignored + when sponsorableLogin specifies an organization. + """ + + contact_email = sgqlc.types.Field(String, graphql_name="contactEmail") + """The email address we should use to contact you about the GitHub + Sponsors profile being created. This will not be shared publicly. + Must be a verified email address already on your GitHub account. + Only relevant when the sponsorable is yourself. Defaults to your + primary email address on file if omitted. + """ + + full_description = sgqlc.types.Field(String, graphql_name="fullDescription") + """Provide an introduction to serve as the main focus that appears on + your GitHub Sponsors profile. It's a great opportunity to help + potential sponsors learn more about you, your work, and why their + sponsorship is important to you. GitHub-flavored Markdown is + supported. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateSponsorsTierInput(sgqlc.types.Input): + """Autogenerated input type of CreateSponsorsTier""" + + __schema__ = github_schema + __field_names__ = ( + "sponsorable_id", + "sponsorable_login", + "amount", + "is_recurring", + "repository_id", + "repository_owner_login", + "repository_name", + "welcome_message", + "description", + "publish", + "client_mutation_id", + ) + sponsorable_id = sgqlc.types.Field(ID, graphql_name="sponsorableId") + """The ID of the user or organization who owns the GitHub Sponsors + profile. Defaults to the current user if omitted and + sponsorableLogin is not given. + """ + + sponsorable_login = sgqlc.types.Field(String, graphql_name="sponsorableLogin") + """The username of the user or organization who owns the GitHub + Sponsors profile. Defaults to the current user if omitted and + sponsorableId is not given. + """ + + amount = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="amount") + """The value of the new tier in US dollars. Valid values: 1-12000.""" + + is_recurring = sgqlc.types.Field(Boolean, graphql_name="isRecurring") + """Whether sponsorships using this tier should happen monthly/yearly + or just once. + """ + + repository_id = sgqlc.types.Field(ID, graphql_name="repositoryId") + """Optional ID of the private repository that sponsors at this tier + should gain read-only access to. Must be owned by an organization. + """ + + repository_owner_login = sgqlc.types.Field(String, graphql_name="repositoryOwnerLogin") + """Optional login of the organization owner of the private repository + that sponsors at this tier should gain read-only access to. + Necessary if repositoryName is given. Will be ignored if + repositoryId is given. + """ + + repository_name = sgqlc.types.Field(String, graphql_name="repositoryName") + """Optional name of the private repository that sponsors at this tier + should gain read-only access to. Must be owned by an organization. + Necessary if repositoryOwnerLogin is given. Will be ignored if + repositoryId is given. + """ + + welcome_message = sgqlc.types.Field(String, graphql_name="welcomeMessage") + """Optional message new sponsors at this tier will receive.""" + + description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="description") + """A description of what this tier is, what perks sponsors might + receive, what a sponsorship at this tier means for you, etc. + """ + + publish = sgqlc.types.Field(Boolean, graphql_name="publish") + """Whether to make the tier available immediately for sponsors to + choose. Defaults to creating a draft tier that will not be + publicly visible. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateSponsorshipInput(sgqlc.types.Input): + """Autogenerated input type of CreateSponsorship""" + + __schema__ = github_schema + __field_names__ = ( + "sponsor_id", + "sponsor_login", + "sponsorable_id", + "sponsorable_login", + "tier_id", + "amount", + "is_recurring", + "receive_emails", + "privacy_level", + "client_mutation_id", + ) + sponsor_id = sgqlc.types.Field(ID, graphql_name="sponsorId") + """The ID of the user or organization who is acting as the sponsor, + paying for the sponsorship. Required if sponsorLogin is not given. + """ + + sponsor_login = sgqlc.types.Field(String, graphql_name="sponsorLogin") + """The username of the user or organization who is acting as the + sponsor, paying for the sponsorship. Required if sponsorId is not + given. + """ + + sponsorable_id = sgqlc.types.Field(ID, graphql_name="sponsorableId") + """The ID of the user or organization who is receiving the + sponsorship. Required if sponsorableLogin is not given. + """ + + sponsorable_login = sgqlc.types.Field(String, graphql_name="sponsorableLogin") + """The username of the user or organization who is receiving the + sponsorship. Required if sponsorableId is not given. + """ + + tier_id = sgqlc.types.Field(ID, graphql_name="tierId") + """The ID of one of sponsorable's existing tiers to sponsor at. + Required if amount is not specified. + """ + + amount = sgqlc.types.Field(Int, graphql_name="amount") + """The amount to pay to the sponsorable in US dollars. Required if a + tierId is not specified. Valid values: 1-12000. + """ + + is_recurring = sgqlc.types.Field(Boolean, graphql_name="isRecurring") + """Whether the sponsorship should happen monthly/yearly or just this + one time. Required if a tierId is not specified. + """ + + receive_emails = sgqlc.types.Field(Boolean, graphql_name="receiveEmails") + """Whether the sponsor should receive email updates from the + sponsorable. + """ + + privacy_level = sgqlc.types.Field(SponsorshipPrivacy, graphql_name="privacyLevel") + """Specify whether others should be able to see that the sponsor is + sponsoring the sponsorable. Public visibility still does not + reveal which tier is used. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateSponsorshipsInput(sgqlc.types.Input): + """Autogenerated input type of CreateSponsorships""" + + __schema__ = github_schema + __field_names__ = ("sponsor_login", "sponsorships", "receive_emails", "privacy_level", "client_mutation_id") + sponsor_login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="sponsorLogin") + """The username of the user or organization who is acting as the + sponsor, paying for the sponsorships. + """ + + sponsorships = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(BulkSponsorship))), graphql_name="sponsorships" + ) + """The list of maintainers to sponsor and for how much apiece.""" + + receive_emails = sgqlc.types.Field(Boolean, graphql_name="receiveEmails") + """Whether the sponsor should receive email updates from the + sponsorables. + """ + + privacy_level = sgqlc.types.Field(SponsorshipPrivacy, graphql_name="privacyLevel") + """Specify whether others should be able to see that the sponsor is + sponsoring the sponsorables. Public visibility still does not + reveal the dollar value of the sponsorship. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateTeamDiscussionCommentInput(sgqlc.types.Input): + """Autogenerated input type of CreateTeamDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("discussion_id", "body", "client_mutation_id") + discussion_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="discussionId") + """The ID of the discussion to which the comment belongs.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The content of the comment.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateTeamDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of CreateTeamDiscussion""" + + __schema__ = github_schema + __field_names__ = ("team_id", "title", "body", "private", "client_mutation_id") + team_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="teamId") + """The ID of the team to which the discussion belongs.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the discussion.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The content of the discussion.""" + + private = sgqlc.types.Field(Boolean, graphql_name="private") + """If true, restricts the visibility of this discussion to team + members and organization admins. If false or not specified, allows + any organization member to view this discussion. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeclineTopicSuggestionInput(sgqlc.types.Input): + """Autogenerated input type of DeclineTopicSuggestion""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "name", "reason", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the suggested topic.""" + + reason = sgqlc.types.Field(sgqlc.types.non_null(TopicSuggestionDeclineReason), graphql_name="reason") + """The reason why the suggested topic is declined.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteBranchProtectionRuleInput(sgqlc.types.Input): + """Autogenerated input type of DeleteBranchProtectionRule""" + + __schema__ = github_schema + __field_names__ = ("branch_protection_rule_id", "client_mutation_id") + branch_protection_rule_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="branchProtectionRuleId") + """The global relay id of the branch protection rule to be deleted.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteDeploymentInput(sgqlc.types.Input): + """Autogenerated input type of DeleteDeployment""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The Node ID of the deployment to be deleted.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteDiscussionCommentInput(sgqlc.types.Input): + """Autogenerated input type of DeleteDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The Node id of the discussion comment to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of DeleteDiscussion""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The id of the discussion to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteEnvironmentInput(sgqlc.types.Input): + """Autogenerated input type of DeleteEnvironment""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The Node ID of the environment to be deleted.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteIpAllowListEntryInput(sgqlc.types.Input): + """Autogenerated input type of DeleteIpAllowListEntry""" + + __schema__ = github_schema + __field_names__ = ("ip_allow_list_entry_id", "client_mutation_id") + ip_allow_list_entry_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ipAllowListEntryId") + """The ID of the IP allow list entry to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteIssueCommentInput(sgqlc.types.Input): + """Autogenerated input type of DeleteIssueComment""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the comment to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteIssueInput(sgqlc.types.Input): + """Autogenerated input type of DeleteIssue""" + + __schema__ = github_schema + __field_names__ = ("issue_id", "client_mutation_id") + issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="issueId") + """The ID of the issue to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteLinkedBranchInput(sgqlc.types.Input): + """Autogenerated input type of DeleteLinkedBranch""" + + __schema__ = github_schema + __field_names__ = ("linked_branch_id", "client_mutation_id") + linked_branch_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="linkedBranchId") + """The ID of the linked branch""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteProjectCardInput(sgqlc.types.Input): + """Autogenerated input type of DeleteProjectCard""" + + __schema__ = github_schema + __field_names__ = ("card_id", "client_mutation_id") + card_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="cardId") + """The id of the card to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteProjectColumnInput(sgqlc.types.Input): + """Autogenerated input type of DeleteProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("column_id", "client_mutation_id") + column_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="columnId") + """The id of the column to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteProjectInput(sgqlc.types.Input): + """Autogenerated input type of DeleteProject""" + + __schema__ = github_schema + __field_names__ = ("project_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The Project ID to update.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteProjectV2FieldInput(sgqlc.types.Input): + """Autogenerated input type of DeleteProjectV2Field""" + + __schema__ = github_schema + __field_names__ = ("field_id", "client_mutation_id") + field_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="fieldId") + """The ID of the field to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteProjectV2Input(sgqlc.types.Input): + """Autogenerated input type of DeleteProjectV2""" + + __schema__ = github_schema + __field_names__ = ("project_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteProjectV2ItemInput(sgqlc.types.Input): + """Autogenerated input type of DeleteProjectV2Item""" + + __schema__ = github_schema + __field_names__ = ("project_id", "item_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project from which the item should be removed.""" + + item_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="itemId") + """The ID of the item to be removed.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteProjectV2WorkflowInput(sgqlc.types.Input): + """Autogenerated input type of DeleteProjectV2Workflow""" + + __schema__ = github_schema + __field_names__ = ("workflow_id", "client_mutation_id") + workflow_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="workflowId") + """The ID of the workflow to be removed.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeletePullRequestReviewCommentInput(sgqlc.types.Input): + """Autogenerated input type of DeletePullRequestReviewComment""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the comment to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeletePullRequestReviewInput(sgqlc.types.Input): + """Autogenerated input type of DeletePullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("pull_request_review_id", "client_mutation_id") + pull_request_review_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestReviewId") + """The Node ID of the pull request review to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteRefInput(sgqlc.types.Input): + """Autogenerated input type of DeleteRef""" + + __schema__ = github_schema + __field_names__ = ("ref_id", "client_mutation_id") + ref_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="refId") + """The Node ID of the Ref to be deleted.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteRepositoryRulesetInput(sgqlc.types.Input): + """Autogenerated input type of DeleteRepositoryRuleset""" + + __schema__ = github_schema + __field_names__ = ("repository_ruleset_id", "client_mutation_id") + repository_ruleset_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryRulesetId") + """The global relay id of the repository ruleset to be deleted.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteTeamDiscussionCommentInput(sgqlc.types.Input): + """Autogenerated input type of DeleteTeamDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the comment to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteTeamDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of DeleteTeamDiscussion""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The discussion ID to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteVerifiableDomainInput(sgqlc.types.Input): + """Autogenerated input type of DeleteVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the verifiable domain to delete.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeploymentOrder(sgqlc.types.Input): + """Ordering options for deployment connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(DeploymentOrderField), graphql_name="field") + """The field to order deployments by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class DequeuePullRequestInput(sgqlc.types.Input): + """Autogenerated input type of DequeuePullRequest""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the pull request to be dequeued.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DisablePullRequestAutoMergeInput(sgqlc.types.Input): + """Autogenerated input type of DisablePullRequestAutoMerge""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """ID of the pull request to disable auto merge on.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DiscussionOrder(sgqlc.types.Input): + """Ways in which lists of discussions can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(DiscussionOrderField), graphql_name="field") + """The field by which to order discussions.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order discussions by the specified + field. + """ + + +class DiscussionPollOptionOrder(sgqlc.types.Input): + """Ordering options for discussion poll option connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(DiscussionPollOptionOrderField), graphql_name="field") + """The field to order poll options by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class DismissPullRequestReviewInput(sgqlc.types.Input): + """Autogenerated input type of DismissPullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("pull_request_review_id", "message", "client_mutation_id") + pull_request_review_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestReviewId") + """The Node ID of the pull request review to modify.""" + + message = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="message") + """The contents of the pull request review dismissal message.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DismissRepositoryVulnerabilityAlertInput(sgqlc.types.Input): + """Autogenerated input type of DismissRepositoryVulnerabilityAlert""" + + __schema__ = github_schema + __field_names__ = ("repository_vulnerability_alert_id", "dismiss_reason", "client_mutation_id") + repository_vulnerability_alert_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryVulnerabilityAlertId") + """The Dependabot alert ID to dismiss.""" + + dismiss_reason = sgqlc.types.Field(sgqlc.types.non_null(DismissReason), graphql_name="dismissReason") + """The reason the Dependabot alert is being dismissed.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DraftPullRequestReviewComment(sgqlc.types.Input): + """Specifies a review comment to be left with a Pull Request Review.""" + + __schema__ = github_schema + __field_names__ = ("path", "position", "body") + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """Path to the file being commented on.""" + + position = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="position") + """Position in the file to leave a comment on.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """Body of the comment to leave.""" + + +class DraftPullRequestReviewThread(sgqlc.types.Input): + """Specifies a review comment thread to be left with a Pull Request + Review. + """ + + __schema__ = github_schema + __field_names__ = ("path", "line", "side", "start_line", "start_side", "body") + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """Path to the file being commented on.""" + + line = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="line") + """The line of the blob to which the thread refers. The end of the + line range for multi-line comments. + """ + + side = sgqlc.types.Field(DiffSide, graphql_name="side") + """The side of the diff on which the line resides. For multi-line + comments, this is the side for the end of the line range. + """ + + start_line = sgqlc.types.Field(Int, graphql_name="startLine") + """The first line of the range to which the comment refers.""" + + start_side = sgqlc.types.Field(DiffSide, graphql_name="startSide") + """The side of the diff on which the start line resides.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """Body of the comment to leave.""" + + +class EnablePullRequestAutoMergeInput(sgqlc.types.Input): + """Autogenerated input type of EnablePullRequestAutoMerge""" + + __schema__ = github_schema + __field_names__ = ( + "pull_request_id", + "commit_headline", + "commit_body", + "merge_method", + "author_email", + "expected_head_oid", + "client_mutation_id", + ) + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """ID of the pull request to enable auto-merge on.""" + + commit_headline = sgqlc.types.Field(String, graphql_name="commitHeadline") + """Commit headline to use for the commit when the PR is mergable; if + omitted, a default message will be used. NOTE: when merging with a + merge queue any input value for commit headline is ignored. + """ + + commit_body = sgqlc.types.Field(String, graphql_name="commitBody") + """Commit body to use for the commit when the PR is mergable; if + omitted, a default message will be used. NOTE: when merging with a + merge queue any input value for commit message is ignored. + """ + + merge_method = sgqlc.types.Field(PullRequestMergeMethod, graphql_name="mergeMethod") + """The merge method to use. If omitted, defaults to `MERGE`. NOTE: + when merging with a merge queue any input value for merge method + is ignored. + """ + + author_email = sgqlc.types.Field(String, graphql_name="authorEmail") + """The email address to associate with this merge.""" + + expected_head_oid = sgqlc.types.Field(GitObjectID, graphql_name="expectedHeadOid") + """The expected head OID of the pull request.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class EnqueuePullRequestInput(sgqlc.types.Input): + """Autogenerated input type of EnqueuePullRequest""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "jump", "expected_head_oid", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The ID of the pull request to enqueue.""" + + jump = sgqlc.types.Field(Boolean, graphql_name="jump") + """Add the pull request to the front of the queue.""" + + expected_head_oid = sgqlc.types.Field(GitObjectID, graphql_name="expectedHeadOid") + """The expected head OID of the pull request.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class EnterpriseAdministratorInvitationOrder(sgqlc.types.Input): + """Ordering options for enterprise administrator invitation + connections + """ + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseAdministratorInvitationOrderField), graphql_name="field") + """The field to order enterprise administrator invitations by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class EnterpriseMemberOrder(sgqlc.types.Input): + """Ordering options for enterprise member connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseMemberOrderField), graphql_name="field") + """The field to order enterprise members by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class EnterpriseServerInstallationOrder(sgqlc.types.Input): + """Ordering options for Enterprise Server installation connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseServerInstallationOrderField), graphql_name="field") + """The field to order Enterprise Server installations by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class EnterpriseServerUserAccountEmailOrder(sgqlc.types.Input): + """Ordering options for Enterprise Server user account email + connections. + """ + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseServerUserAccountEmailOrderField), graphql_name="field") + """The field to order emails by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class EnterpriseServerUserAccountOrder(sgqlc.types.Input): + """Ordering options for Enterprise Server user account connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseServerUserAccountOrderField), graphql_name="field") + """The field to order user accounts by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class EnterpriseServerUserAccountsUploadOrder(sgqlc.types.Input): + """Ordering options for Enterprise Server user accounts upload + connections. + """ + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseServerUserAccountsUploadOrderField), graphql_name="field") + """The field to order user accounts uploads by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class FileAddition(sgqlc.types.Input): + """A command to add a file at the given path with the given contents + as part of a commit. Any existing file at that that path will be + replaced. + """ + + __schema__ = github_schema + __field_names__ = ("path", "contents") + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path in the repository where the file will be located""" + + contents = sgqlc.types.Field(sgqlc.types.non_null(Base64String), graphql_name="contents") + """The base64 encoded contents of the file""" + + +class FileChanges(sgqlc.types.Input): + """A description of a set of changes to a file tree to be made as + part of a git commit, modeled as zero or more file `additions` and + zero or more file `deletions`. Both fields are optional; omitting + both will produce a commit with no file changes. `deletions` and + `additions` describe changes to files identified by their path in + the git tree using unix-style path separators, i.e. `/`. The root + of a git tree is an empty string, so paths are not slash-prefixed. + `path` values must be unique across all `additions` and + `deletions` provided. Any duplication will result in a validation + error. ### Encoding File contents must be provided in full for + each `FileAddition`. The `contents` of a `FileAddition` must be + encoded using RFC 4648 compliant base64, i.e. correct padding is + required and no characters outside the standard alphabet may be + used. Invalid base64 encoding will be rejected with a validation + error. The encoded contents may be binary. For text files, no + assumptions are made about the character encoding of the file + contents (after base64 decoding). No charset transcoding or line- + ending normalization will be performed; it is the client's + responsibility to manage the character encoding of files they + provide. However, for maximum compatibility we recommend using + UTF-8 encoding and ensuring that all files in a repository use a + consistent line-ending convention (`\n` or `\r\n`), and that all + files end with a newline. ### Modeling file changes Each of the + the five types of conceptual changes that can be made in a git + commit can be described using the `FileChanges` type as follows: + 1. New file addition: create file `hello world\n` at path + `docs/README.txt`: { "additions" [ { + "path": "docs/README.txt", "contents": + base64encode("hello world\n") } ] } 2. + Existing file modification: change existing `docs/README.txt` to + have new content `new content here\n`: { + "additions" [ { "path": "docs/README.txt", + "contents": base64encode("new content here\n") } + ] } 3. Existing file deletion: remove existing file + `docs/README.txt`. Note that the path is required to exist -- + specifying a path that does not exist on the given branch will + abort the commit and return an error. { + "deletions" [ { "path": "docs/README.txt" + } ] } 4. File rename with no changes: rename + `docs/README.txt` with previous content `hello world\n` to the + same content at `newdocs/README.txt`: { + "deletions" [ { "path": "docs/README.txt", + } ], "additions" [ { + "path": "newdocs/README.txt", "contents": + base64encode("hello world\n") } ] } + 5. File rename with changes: rename `docs/README.txt` with + previous content `hello world\n` to a file at path + `newdocs/README.txt` with content `new contents\n`: { + "deletions" [ { "path": "docs/README.txt", + } ], "additions" [ { + "path": "newdocs/README.txt", "contents": + base64encode("new contents\n") } ] } + """ + + __schema__ = github_schema + __field_names__ = ("deletions", "additions") + deletions = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("FileDeletion")), graphql_name="deletions") + """Files to delete.""" + + additions = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(FileAddition)), graphql_name="additions") + """File to add or change.""" + + +class FileDeletion(sgqlc.types.Input): + """A command to delete the file at the given path as part of a + commit. + """ + + __schema__ = github_schema + __field_names__ = ("path",) + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path to delete""" + + +class FollowOrganizationInput(sgqlc.types.Input): + """Autogenerated input type of FollowOrganization""" + + __schema__ = github_schema + __field_names__ = ("organization_id", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """ID of the organization to follow.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class FollowUserInput(sgqlc.types.Input): + """Autogenerated input type of FollowUser""" + + __schema__ = github_schema + __field_names__ = ("user_id", "client_mutation_id") + user_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="userId") + """ID of the user to follow.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class GistOrder(sgqlc.types.Input): + """Ordering options for gist connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(GistOrderField), graphql_name="field") + """The field to order repositories by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class GrantEnterpriseOrganizationsMigratorRoleInput(sgqlc.types.Input): + """Autogenerated input type of + GrantEnterpriseOrganizationsMigratorRole + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "login", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise to which all organizations managed by it + will be granted the migrator role. + """ + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of the user to grant the migrator role""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class GrantMigratorRoleInput(sgqlc.types.Input): + """Autogenerated input type of GrantMigratorRole""" + + __schema__ = github_schema + __field_names__ = ("organization_id", "actor", "actor_type", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization that the user/team belongs to.""" + + actor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="actor") + """The user login or Team slug to grant the migrator role.""" + + actor_type = sgqlc.types.Field(sgqlc.types.non_null(ActorType), graphql_name="actorType") + """Specifies the type of the actor, can be either USER or TEAM.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class InviteEnterpriseAdminInput(sgqlc.types.Input): + """Autogenerated input type of InviteEnterpriseAdmin""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "invitee", "email", "role", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise to which you want to invite an + administrator. + """ + + invitee = sgqlc.types.Field(String, graphql_name="invitee") + """The login of a user to invite as an administrator.""" + + email = sgqlc.types.Field(String, graphql_name="email") + """The email of the person to invite as an administrator.""" + + role = sgqlc.types.Field(EnterpriseAdministratorRole, graphql_name="role") + """The role of the administrator.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class IpAllowListEntryOrder(sgqlc.types.Input): + """Ordering options for IP allow list entry connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(IpAllowListEntryOrderField), graphql_name="field") + """The field to order IP allow list entries by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class IssueCommentOrder(sgqlc.types.Input): + """Ways in which lists of issue comments can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(IssueCommentOrderField), graphql_name="field") + """The field in which to order issue comments by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order issue comments by the specified + field. + """ + + +class IssueFilters(sgqlc.types.Input): + """Ways in which to filter lists of issues.""" + + __schema__ = github_schema + __field_names__ = ( + "assignee", + "created_by", + "labels", + "mentioned", + "milestone", + "milestone_number", + "since", + "states", + "viewer_subscribed", + ) + assignee = sgqlc.types.Field(String, graphql_name="assignee") + """List issues assigned to given name. Pass in `null` for issues with + no assigned user, and `*` for issues assigned to any user. + """ + + created_by = sgqlc.types.Field(String, graphql_name="createdBy") + """List issues created by given name.""" + + labels = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels") + """List issues where the list of label names exist on the issue.""" + + mentioned = sgqlc.types.Field(String, graphql_name="mentioned") + """List issues where the given name is mentioned in the issue.""" + + milestone = sgqlc.types.Field(String, graphql_name="milestone") + """List issues by given milestone argument. If an string + representation of an integer is passed, it should refer to a + milestone by its database ID. Pass in `null` for issues with no + milestone, and `*` for issues that are assigned to any milestone. + """ + + milestone_number = sgqlc.types.Field(String, graphql_name="milestoneNumber") + """List issues by given milestone argument. If an string + representation of an integer is passed, it should refer to a + milestone by its number field. Pass in `null` for issues with no + milestone, and `*` for issues that are assigned to any milestone. + """ + + since = sgqlc.types.Field(DateTime, graphql_name="since") + """List issues that have been updated at or after the given date.""" + + states = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(IssueState)), graphql_name="states") + """List issues filtered by the list of states given.""" + + viewer_subscribed = sgqlc.types.Field(Boolean, graphql_name="viewerSubscribed") + """List issues subscribed to by viewer.""" + + +class IssueOrder(sgqlc.types.Input): + """Ways in which lists of issues can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(IssueOrderField), graphql_name="field") + """The field in which to order issues by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order issues by the specified field.""" + + +class LabelOrder(sgqlc.types.Input): + """Ways in which lists of labels can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(LabelOrderField), graphql_name="field") + """The field in which to order labels by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order labels by the specified field.""" + + +class LanguageOrder(sgqlc.types.Input): + """Ordering options for language connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(LanguageOrderField), graphql_name="field") + """The field to order languages by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class LinkProjectV2ToRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of LinkProjectV2ToRepository""" + + __schema__ = github_schema + __field_names__ = ("project_id", "repository_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the project to link to the repository.""" + + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to link to the project.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class LinkProjectV2ToTeamInput(sgqlc.types.Input): + """Autogenerated input type of LinkProjectV2ToTeam""" + + __schema__ = github_schema + __field_names__ = ("project_id", "team_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the project to link to the team.""" + + team_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="teamId") + """The ID of the team to link to the project.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class LinkRepositoryToProjectInput(sgqlc.types.Input): + """Autogenerated input type of LinkRepositoryToProject""" + + __schema__ = github_schema + __field_names__ = ("project_id", "repository_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to link to a Repository""" + + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the Repository to link to a Project.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class LockLockableInput(sgqlc.types.Input): + """Autogenerated input type of LockLockable""" + + __schema__ = github_schema + __field_names__ = ("lockable_id", "lock_reason", "client_mutation_id") + lockable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="lockableId") + """ID of the item to be locked.""" + + lock_reason = sgqlc.types.Field(LockReason, graphql_name="lockReason") + """A reason for why the item will be locked.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MannequinOrder(sgqlc.types.Input): + """Ordering options for mannequins.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(MannequinOrderField), graphql_name="field") + """The field to order mannequins by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class MarkDiscussionCommentAsAnswerInput(sgqlc.types.Input): + """Autogenerated input type of MarkDiscussionCommentAsAnswer""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The Node ID of the discussion comment to mark as an answer.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MarkFileAsViewedInput(sgqlc.types.Input): + """Autogenerated input type of MarkFileAsViewed""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "path", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The Node ID of the pull request.""" + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path of the file to mark as viewed""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MarkProjectV2AsTemplateInput(sgqlc.types.Input): + """Autogenerated input type of MarkProjectV2AsTemplate""" + + __schema__ = github_schema + __field_names__ = ("project_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to mark as a template.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MarkPullRequestReadyForReviewInput(sgqlc.types.Input): + """Autogenerated input type of MarkPullRequestReadyForReview""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """ID of the pull request to be marked as ready for review.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MergeBranchInput(sgqlc.types.Input): + """Autogenerated input type of MergeBranch""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "base", "head", "commit_message", "author_email", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the Repository containing the base branch that will + be modified. + """ + + base = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="base") + """The name of the base branch that the provided head will be merged + into. + """ + + head = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="head") + """The head to merge into the base branch. This can be a branch name + or a commit GitObjectID. + """ + + commit_message = sgqlc.types.Field(String, graphql_name="commitMessage") + """Message to use for the merge commit. If omitted, a default will be + used. + """ + + author_email = sgqlc.types.Field(String, graphql_name="authorEmail") + """The email address to associate with this commit.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MergePullRequestInput(sgqlc.types.Input): + """Autogenerated input type of MergePullRequest""" + + __schema__ = github_schema + __field_names__ = ( + "pull_request_id", + "commit_headline", + "commit_body", + "expected_head_oid", + "merge_method", + "author_email", + "client_mutation_id", + ) + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """ID of the pull request to be merged.""" + + commit_headline = sgqlc.types.Field(String, graphql_name="commitHeadline") + """Commit headline to use for the merge commit; if omitted, a default + message will be used. + """ + + commit_body = sgqlc.types.Field(String, graphql_name="commitBody") + """Commit body to use for the merge commit; if omitted, a default + message will be used + """ + + expected_head_oid = sgqlc.types.Field(GitObjectID, graphql_name="expectedHeadOid") + """OID that the pull request head ref must match to allow merge; if + omitted, no check is performed. + """ + + merge_method = sgqlc.types.Field(PullRequestMergeMethod, graphql_name="mergeMethod") + """The merge method to use. If omitted, defaults to 'MERGE' """ + + author_email = sgqlc.types.Field(String, graphql_name="authorEmail") + """The email address to associate with this merge.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MilestoneOrder(sgqlc.types.Input): + """Ordering options for milestone connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(MilestoneOrderField), graphql_name="field") + """The field to order milestones by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class MinimizeCommentInput(sgqlc.types.Input): + """Autogenerated input type of MinimizeComment""" + + __schema__ = github_schema + __field_names__ = ("subject_id", "classifier", "client_mutation_id") + subject_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subjectId") + """The Node ID of the subject to modify.""" + + classifier = sgqlc.types.Field(sgqlc.types.non_null(ReportedContentClassifiers), graphql_name="classifier") + """The classification of comment""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MoveProjectCardInput(sgqlc.types.Input): + """Autogenerated input type of MoveProjectCard""" + + __schema__ = github_schema + __field_names__ = ("card_id", "column_id", "after_card_id", "client_mutation_id") + card_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="cardId") + """The id of the card to move.""" + + column_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="columnId") + """The id of the column to move it into.""" + + after_card_id = sgqlc.types.Field(ID, graphql_name="afterCardId") + """Place the new card after the card with this id. Pass null to place + it at the top. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MoveProjectColumnInput(sgqlc.types.Input): + """Autogenerated input type of MoveProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("column_id", "after_column_id", "client_mutation_id") + column_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="columnId") + """The id of the column to move.""" + + after_column_id = sgqlc.types.Field(ID, graphql_name="afterColumnId") + """Place the new column after the column with this id. Pass null to + place it at the front. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class OrgEnterpriseOwnerOrder(sgqlc.types.Input): + """Ordering options for an organization's enterprise owner + connections. + """ + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(OrgEnterpriseOwnerOrderField), graphql_name="field") + """The field to order enterprise owners by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class OrganizationOrder(sgqlc.types.Input): + """Ordering options for organization connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(OrganizationOrderField), graphql_name="field") + """The field to order organizations by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class PackageFileOrder(sgqlc.types.Input): + """Ways in which lists of package files can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(PackageFileOrderField, graphql_name="field") + """The field in which to order package files by.""" + + direction = sgqlc.types.Field(OrderDirection, graphql_name="direction") + """The direction in which to order package files by the specified + field. + """ + + +class PackageOrder(sgqlc.types.Input): + """Ways in which lists of packages can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(PackageOrderField, graphql_name="field") + """The field in which to order packages by.""" + + direction = sgqlc.types.Field(OrderDirection, graphql_name="direction") + """The direction in which to order packages by the specified field.""" + + +class PackageVersionOrder(sgqlc.types.Input): + """Ways in which lists of package versions can be ordered upon + return. + """ + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(PackageVersionOrderField, graphql_name="field") + """The field in which to order package versions by.""" + + direction = sgqlc.types.Field(OrderDirection, graphql_name="direction") + """The direction in which to order package versions by the specified + field. + """ + + +class PinIssueInput(sgqlc.types.Input): + """Autogenerated input type of PinIssue""" + + __schema__ = github_schema + __field_names__ = ("issue_id", "client_mutation_id") + issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="issueId") + """The ID of the issue to be pinned""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ProjectOrder(sgqlc.types.Input): + """Ways in which lists of projects can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ProjectOrderField), graphql_name="field") + """The field in which to order projects by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order projects by the specified field.""" + + +class ProjectV2Collaborator(sgqlc.types.Input): + """A collaborator to update on a project. Only one of the userId or + teamId should be provided. + """ + + __schema__ = github_schema + __field_names__ = ("user_id", "team_id", "role") + user_id = sgqlc.types.Field(ID, graphql_name="userId") + """The ID of the user as a collaborator.""" + + team_id = sgqlc.types.Field(ID, graphql_name="teamId") + """The ID of the team as a collaborator.""" + + role = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2Roles), graphql_name="role") + """The role to grant the collaborator""" + + +class ProjectV2FieldOrder(sgqlc.types.Input): + """Ordering options for project v2 field connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2FieldOrderField), graphql_name="field") + """The field to order the project v2 fields by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class ProjectV2FieldValue(sgqlc.types.Input): + """The values that can be used to update a field of an item inside a + Project. Only 1 value can be updated at a time. + """ + + __schema__ = github_schema + __field_names__ = ("text", "number", "date", "single_select_option_id", "iteration_id") + text = sgqlc.types.Field(String, graphql_name="text") + """The text to set on the field.""" + + number = sgqlc.types.Field(Float, graphql_name="number") + """The number to set on the field.""" + + date = sgqlc.types.Field(Date, graphql_name="date") + """The ISO 8601 date to set on the field.""" + + single_select_option_id = sgqlc.types.Field(String, graphql_name="singleSelectOptionId") + """The id of the single select option to set on the field.""" + + iteration_id = sgqlc.types.Field(String, graphql_name="iterationId") + """The id of the iteration to set on the field.""" + + +class ProjectV2Filters(sgqlc.types.Input): + """Ways in which to filter lists of projects.""" + + __schema__ = github_schema + __field_names__ = ("state",) + state = sgqlc.types.Field(ProjectV2State, graphql_name="state") + """List project v2 filtered by the state given.""" + + +class ProjectV2ItemFieldValueOrder(sgqlc.types.Input): + """Ordering options for project v2 item field value connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2ItemFieldValueOrderField), graphql_name="field") + """The field to order the project v2 item field values by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class ProjectV2ItemOrder(sgqlc.types.Input): + """Ordering options for project v2 item connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2ItemOrderField), graphql_name="field") + """The field to order the project v2 items by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class ProjectV2Order(sgqlc.types.Input): + """Ways in which lists of projects can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2OrderField), graphql_name="field") + """The field in which to order projects by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order projects by the specified field.""" + + +class ProjectV2SingleSelectFieldOptionInput(sgqlc.types.Input): + """Represents a single select field option""" + + __schema__ = github_schema + __field_names__ = ("name", "color", "description") + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the option""" + + color = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2SingleSelectFieldOptionColor), graphql_name="color") + """The display color of the option""" + + description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="description") + """The description text of the option""" + + +class ProjectV2ViewOrder(sgqlc.types.Input): + """Ordering options for project v2 view connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2ViewOrderField), graphql_name="field") + """The field to order the project v2 views by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class ProjectV2WorkflowOrder(sgqlc.types.Input): + """Ordering options for project v2 workflows connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2WorkflowsOrderField), graphql_name="field") + """The field to order the project v2 workflows by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class PublishSponsorsTierInput(sgqlc.types.Input): + """Autogenerated input type of PublishSponsorsTier""" + + __schema__ = github_schema + __field_names__ = ("tier_id", "client_mutation_id") + tier_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="tierId") + """The ID of the draft tier to publish.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class PullRequestOrder(sgqlc.types.Input): + """Ways in which lists of issues can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(PullRequestOrderField), graphql_name="field") + """The field in which to order pull requests by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order pull requests by the specified + field. + """ + + +class PullRequestParametersInput(sgqlc.types.Input): + """Require all commits be made to a non-target branch and submitted + via a pull request before they can be merged. + """ + + __schema__ = github_schema + __field_names__ = ( + "dismiss_stale_reviews_on_push", + "require_code_owner_review", + "require_last_push_approval", + "required_approving_review_count", + "required_review_thread_resolution", + ) + dismiss_stale_reviews_on_push = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="dismissStaleReviewsOnPush") + """New, reviewable commits pushed will dismiss previous pull request + review approvals. + """ + + require_code_owner_review = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requireCodeOwnerReview") + """Require an approving review in pull requests that modify files + that have a designated code owner. + """ + + require_last_push_approval = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requireLastPushApproval") + """Whether the most recent reviewable push must be approved by + someone other than the person who pushed it. + """ + + required_approving_review_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="requiredApprovingReviewCount") + """The number of approving reviews that are required before a pull + request can be merged. + """ + + required_review_thread_resolution = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiredReviewThreadResolution") + """All conversations on code must be resolved before a pull request + can be merged. + """ + + +class ReactionOrder(sgqlc.types.Input): + """Ways in which lists of reactions can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ReactionOrderField), graphql_name="field") + """The field in which to order reactions by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order reactions by the specified field.""" + + +class RefNameConditionTargetInput(sgqlc.types.Input): + """Parameters to be used for the ref_name condition""" + + __schema__ = github_schema + __field_names__ = ("exclude", "include") + exclude = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="exclude") + """Array of ref names or patterns to exclude. The condition will not + pass if any of these patterns match. + """ + + include = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="include") + """Array of ref names or patterns to include. One of these patterns + must match for the condition to pass. Also accepts + `~DEFAULT_BRANCH` to include the default branch or `~ALL` to + include all branches. + """ + + +class RefOrder(sgqlc.types.Input): + """Ways in which lists of git refs can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(RefOrderField), graphql_name="field") + """The field in which to order refs by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order refs by the specified field.""" + + +class RegenerateEnterpriseIdentityProviderRecoveryCodesInput(sgqlc.types.Input): + """Autogenerated input type of + RegenerateEnterpriseIdentityProviderRecoveryCodes + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set an identity provider.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RegenerateVerifiableDomainTokenInput(sgqlc.types.Input): + """Autogenerated input type of RegenerateVerifiableDomainToken""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the verifiable domain to regenerate the verification + token of. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RejectDeploymentsInput(sgqlc.types.Input): + """Autogenerated input type of RejectDeployments""" + + __schema__ = github_schema + __field_names__ = ("workflow_run_id", "environment_ids", "comment", "client_mutation_id") + workflow_run_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="workflowRunId") + """The node ID of the workflow run containing the pending + deployments. + """ + + environment_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="environmentIds") + """The ids of environments to reject deployments""" + + comment = sgqlc.types.Field(String, graphql_name="comment") + """Optional comment for rejecting deployments""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ReleaseOrder(sgqlc.types.Input): + """Ways in which lists of releases can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(ReleaseOrderField), graphql_name="field") + """The field in which to order releases by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order releases by the specified field.""" + + +class RemoveAssigneesFromAssignableInput(sgqlc.types.Input): + """Autogenerated input type of RemoveAssigneesFromAssignable""" + + __schema__ = github_schema + __field_names__ = ("assignable_id", "assignee_ids", "client_mutation_id") + assignable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="assignableId") + """The id of the assignable object to remove assignees from.""" + + assignee_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="assigneeIds") + """The id of users to remove as assignees.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveEnterpriseAdminInput(sgqlc.types.Input): + """Autogenerated input type of RemoveEnterpriseAdmin""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "login", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The Enterprise ID from which to remove the administrator.""" + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of the user to remove as an administrator.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveEnterpriseIdentityProviderInput(sgqlc.types.Input): + """Autogenerated input type of RemoveEnterpriseIdentityProvider""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise from which to remove the identity + provider. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveEnterpriseMemberInput(sgqlc.types.Input): + """Autogenerated input type of RemoveEnterpriseMember""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "user_id", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise from which the user should be removed.""" + + user_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="userId") + """The ID of the user to remove from the enterprise.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveEnterpriseOrganizationInput(sgqlc.types.Input): + """Autogenerated input type of RemoveEnterpriseOrganization""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "organization_id", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise from which the organization should be + removed. + """ + + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization to remove from the enterprise.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveEnterpriseSupportEntitlementInput(sgqlc.types.Input): + """Autogenerated input type of RemoveEnterpriseSupportEntitlement""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "login", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the Enterprise which the admin belongs to.""" + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of a member who will lose the support entitlement.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveLabelsFromLabelableInput(sgqlc.types.Input): + """Autogenerated input type of RemoveLabelsFromLabelable""" + + __schema__ = github_schema + __field_names__ = ("labelable_id", "label_ids", "client_mutation_id") + labelable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="labelableId") + """The id of the Labelable to remove labels from.""" + + label_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="labelIds") + """The ids of labels to remove.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveOutsideCollaboratorInput(sgqlc.types.Input): + """Autogenerated input type of RemoveOutsideCollaborator""" + + __schema__ = github_schema + __field_names__ = ("user_id", "organization_id", "client_mutation_id") + user_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="userId") + """The ID of the outside collaborator to remove.""" + + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization to remove the outside collaborator + from. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveReactionInput(sgqlc.types.Input): + """Autogenerated input type of RemoveReaction""" + + __schema__ = github_schema + __field_names__ = ("subject_id", "content", "client_mutation_id") + subject_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subjectId") + """The Node ID of the subject to modify.""" + + content = sgqlc.types.Field(sgqlc.types.non_null(ReactionContent), graphql_name="content") + """The name of the emoji reaction to remove.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveStarInput(sgqlc.types.Input): + """Autogenerated input type of RemoveStar""" + + __schema__ = github_schema + __field_names__ = ("starrable_id", "client_mutation_id") + starrable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="starrableId") + """The Starrable ID to unstar.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveUpvoteInput(sgqlc.types.Input): + """Autogenerated input type of RemoveUpvote""" + + __schema__ = github_schema + __field_names__ = ("subject_id", "client_mutation_id") + subject_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subjectId") + """The Node ID of the discussion or comment to remove upvote.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ReopenDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of ReopenDiscussion""" + + __schema__ = github_schema + __field_names__ = ("discussion_id", "client_mutation_id") + discussion_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="discussionId") + """ID of the discussion to be reopened.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ReopenIssueInput(sgqlc.types.Input): + """Autogenerated input type of ReopenIssue""" + + __schema__ = github_schema + __field_names__ = ("issue_id", "client_mutation_id") + issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="issueId") + """ID of the issue to be opened.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ReopenPullRequestInput(sgqlc.types.Input): + """Autogenerated input type of ReopenPullRequest""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """ID of the pull request to be reopened.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RepositoryInvitationOrder(sgqlc.types.Input): + """Ordering options for repository invitation connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(RepositoryInvitationOrderField), graphql_name="field") + """The field to order repository invitations by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class RepositoryMigrationOrder(sgqlc.types.Input): + """Ordering options for repository migrations.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(RepositoryMigrationOrderField), graphql_name="field") + """The field to order repository migrations by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(RepositoryMigrationOrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class RepositoryNameConditionTargetInput(sgqlc.types.Input): + """Parameters to be used for the repository_name condition""" + + __schema__ = github_schema + __field_names__ = ("exclude", "include", "protected") + exclude = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="exclude") + """Array of repository names or patterns to exclude. The condition + will not pass if any of these patterns match. + """ + + include = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="include") + """Array of repository names or patterns to include. One of these + patterns must match for the condition to pass. Also accepts `~ALL` + to include all repositories. + """ + + protected = sgqlc.types.Field(Boolean, graphql_name="protected") + """Target changes that match these patterns will be prevented except + by those with bypass permissions. + """ + + +class RepositoryOrder(sgqlc.types.Input): + """Ordering options for repository connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(RepositoryOrderField), graphql_name="field") + """The field to order repositories by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class RepositoryRuleConditionsInput(sgqlc.types.Input): + """Specifies the conditions required for a ruleset to evaluate""" + + __schema__ = github_schema + __field_names__ = ("ref_name", "repository_name") + ref_name = sgqlc.types.Field(RefNameConditionTargetInput, graphql_name="refName") + """Configuration for the ref_name condition""" + + repository_name = sgqlc.types.Field(RepositoryNameConditionTargetInput, graphql_name="repositoryName") + """Configuration for the repository_name condition""" + + +class RepositoryRuleInput(sgqlc.types.Input): + """Specifies the attributes for a new or updated rule.""" + + __schema__ = github_schema + __field_names__ = ("id", "type", "parameters") + id = sgqlc.types.Field(ID, graphql_name="id") + """Optional ID of this rule when updating""" + + type = sgqlc.types.Field(sgqlc.types.non_null(RepositoryRuleType), graphql_name="type") + """The type of rule to create.""" + + parameters = sgqlc.types.Field("RuleParametersInput", graphql_name="parameters") + """The parameters for the rule.""" + + +class RequestReviewsInput(sgqlc.types.Input): + """Autogenerated input type of RequestReviews""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "user_ids", "team_ids", "union", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The Node ID of the pull request to modify.""" + + user_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="userIds") + """The Node IDs of the user to request.""" + + team_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="teamIds") + """The Node IDs of the team to request.""" + + union = sgqlc.types.Field(Boolean, graphql_name="union") + """Add users to the set rather than replace.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RequiredDeploymentsParametersInput(sgqlc.types.Input): + """Choose which environments must be successfully deployed to before + branches can be merged into a branch that matches this rule. + """ + + __schema__ = github_schema + __field_names__ = ("required_deployment_environments",) + required_deployment_environments = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="requiredDeploymentEnvironments" + ) + """The environments that must be successfully deployed to before + branches can be merged. + """ + + +class RequiredStatusCheckInput(sgqlc.types.Input): + """Specifies the attributes for a new or updated required status + check. + """ + + __schema__ = github_schema + __field_names__ = ("context", "app_id") + context = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="context") + """Status check context that must pass for commits to be accepted to + the matching branch. + """ + + app_id = sgqlc.types.Field(ID, graphql_name="appId") + """The ID of the App that must set the status in order for it to be + accepted. Omit this value to use whichever app has recently been + setting this status, or use "any" to allow any app to set the + status. + """ + + +class RequiredStatusChecksParametersInput(sgqlc.types.Input): + """Choose which status checks must pass before branches can be merged + into a branch that matches this rule. When enabled, commits must + first be pushed to another branch, then merged or pushed directly + to a branch that matches this rule after status checks have + passed. + """ + + __schema__ = github_schema + __field_names__ = ("required_status_checks", "strict_required_status_checks_policy") + required_status_checks = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("StatusCheckConfigurationInput"))), + graphql_name="requiredStatusChecks", + ) + """Status checks that are required.""" + + strict_required_status_checks_policy = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="strictRequiredStatusChecksPolicy") + """Whether pull requests targeting a matching branch must be tested + with the latest code. This setting will not take effect unless at + least one status check is enabled. + """ + + +class RerequestCheckSuiteInput(sgqlc.types.Input): + """Autogenerated input type of RerequestCheckSuite""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "check_suite_id", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + check_suite_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="checkSuiteId") + """The Node ID of the check suite.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ResolveReviewThreadInput(sgqlc.types.Input): + """Autogenerated input type of ResolveReviewThread""" + + __schema__ = github_schema + __field_names__ = ("thread_id", "client_mutation_id") + thread_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="threadId") + """The ID of the thread to resolve""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RetireSponsorsTierInput(sgqlc.types.Input): + """Autogenerated input type of RetireSponsorsTier""" + + __schema__ = github_schema + __field_names__ = ("tier_id", "client_mutation_id") + tier_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="tierId") + """The ID of the published tier to retire.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RevertPullRequestInput(sgqlc.types.Input): + """Autogenerated input type of RevertPullRequest""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "title", "body", "draft", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The ID of the pull request to revert.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The title of the revert pull request.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The description of the revert pull request.""" + + draft = sgqlc.types.Field(Boolean, graphql_name="draft") + """Indicates whether the revert pull request should be a draft.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RevokeEnterpriseOrganizationsMigratorRoleInput(sgqlc.types.Input): + """Autogenerated input type of + RevokeEnterpriseOrganizationsMigratorRole + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "login", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise to which all organizations managed by it + will be granted the migrator role. + """ + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of the user to revoke the migrator role""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RevokeMigratorRoleInput(sgqlc.types.Input): + """Autogenerated input type of RevokeMigratorRole""" + + __schema__ = github_schema + __field_names__ = ("organization_id", "actor", "actor_type", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization that the user/team belongs to.""" + + actor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="actor") + """The user login or Team slug to revoke the migrator role from.""" + + actor_type = sgqlc.types.Field(sgqlc.types.non_null(ActorType), graphql_name="actorType") + """Specifies the type of the actor, can be either USER or TEAM.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RuleParametersInput(sgqlc.types.Input): + """Specifies the parameters for a `RepositoryRule` object. Only one + of the fields should be specified. + """ + + __schema__ = github_schema + __field_names__ = ( + "update", + "required_deployments", + "pull_request", + "required_status_checks", + "commit_message_pattern", + "commit_author_email_pattern", + "committer_email_pattern", + "branch_name_pattern", + "tag_name_pattern", + ) + update = sgqlc.types.Field("UpdateParametersInput", graphql_name="update") + """Parameters used for the `update` rule type""" + + required_deployments = sgqlc.types.Field(RequiredDeploymentsParametersInput, graphql_name="requiredDeployments") + """Parameters used for the `required_deployments` rule type""" + + pull_request = sgqlc.types.Field(PullRequestParametersInput, graphql_name="pullRequest") + """Parameters used for the `pull_request` rule type""" + + required_status_checks = sgqlc.types.Field(RequiredStatusChecksParametersInput, graphql_name="requiredStatusChecks") + """Parameters used for the `required_status_checks` rule type""" + + commit_message_pattern = sgqlc.types.Field(CommitMessagePatternParametersInput, graphql_name="commitMessagePattern") + """Parameters used for the `commit_message_pattern` rule type""" + + commit_author_email_pattern = sgqlc.types.Field(CommitAuthorEmailPatternParametersInput, graphql_name="commitAuthorEmailPattern") + """Parameters used for the `commit_author_email_pattern` rule type""" + + committer_email_pattern = sgqlc.types.Field(CommitterEmailPatternParametersInput, graphql_name="committerEmailPattern") + """Parameters used for the `committer_email_pattern` rule type""" + + branch_name_pattern = sgqlc.types.Field(BranchNamePatternParametersInput, graphql_name="branchNamePattern") + """Parameters used for the `branch_name_pattern` rule type""" + + tag_name_pattern = sgqlc.types.Field("TagNamePatternParametersInput", graphql_name="tagNamePattern") + """Parameters used for the `tag_name_pattern` rule type""" + + +class SavedReplyOrder(sgqlc.types.Input): + """Ordering options for saved reply connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SavedReplyOrderField), graphql_name="field") + """The field to order saved replies by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SecurityAdvisoryIdentifierFilter(sgqlc.types.Input): + """An advisory identifier to filter results on.""" + + __schema__ = github_schema + __field_names__ = ("type", "value") + type = sgqlc.types.Field(sgqlc.types.non_null(SecurityAdvisoryIdentifierType), graphql_name="type") + """The identifier type.""" + + value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="value") + """The identifier string. Supports exact or partial matching.""" + + +class SecurityAdvisoryOrder(sgqlc.types.Input): + """Ordering options for security advisory connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SecurityAdvisoryOrderField), graphql_name="field") + """The field to order security advisories by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SecurityVulnerabilityOrder(sgqlc.types.Input): + """Ordering options for security vulnerability connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SecurityVulnerabilityOrderField), graphql_name="field") + """The field to order security vulnerabilities by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SetEnterpriseIdentityProviderInput(sgqlc.types.Input): + """Autogenerated input type of SetEnterpriseIdentityProvider""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "sso_url", "issuer", "idp_certificate", "signature_method", "digest_method", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set an identity provider.""" + + sso_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="ssoUrl") + """The URL endpoint for the identity provider's SAML SSO.""" + + issuer = sgqlc.types.Field(String, graphql_name="issuer") + """The Issuer Entity ID for the SAML identity provider""" + + idp_certificate = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="idpCertificate") + """The x509 certificate used by the identity provider to sign + assertions and responses. + """ + + signature_method = sgqlc.types.Field(sgqlc.types.non_null(SamlSignatureAlgorithm), graphql_name="signatureMethod") + """The signature algorithm used to sign SAML requests for the + identity provider. + """ + + digest_method = sgqlc.types.Field(sgqlc.types.non_null(SamlDigestAlgorithm), graphql_name="digestMethod") + """The digest algorithm used to sign SAML requests for the identity + provider. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class SetOrganizationInteractionLimitInput(sgqlc.types.Input): + """Autogenerated input type of SetOrganizationInteractionLimit""" + + __schema__ = github_schema + __field_names__ = ("organization_id", "limit", "expiry", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization to set a limit for.""" + + limit = sgqlc.types.Field(sgqlc.types.non_null(RepositoryInteractionLimit), graphql_name="limit") + """The limit to set.""" + + expiry = sgqlc.types.Field(RepositoryInteractionLimitExpiry, graphql_name="expiry") + """When this limit should expire.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class SetRepositoryInteractionLimitInput(sgqlc.types.Input): + """Autogenerated input type of SetRepositoryInteractionLimit""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "limit", "expiry", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to set a limit for.""" + + limit = sgqlc.types.Field(sgqlc.types.non_null(RepositoryInteractionLimit), graphql_name="limit") + """The limit to set.""" + + expiry = sgqlc.types.Field(RepositoryInteractionLimitExpiry, graphql_name="expiry") + """When this limit should expire.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class SetUserInteractionLimitInput(sgqlc.types.Input): + """Autogenerated input type of SetUserInteractionLimit""" + + __schema__ = github_schema + __field_names__ = ("user_id", "limit", "expiry", "client_mutation_id") + user_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="userId") + """The ID of the user to set a limit for.""" + + limit = sgqlc.types.Field(sgqlc.types.non_null(RepositoryInteractionLimit), graphql_name="limit") + """The limit to set.""" + + expiry = sgqlc.types.Field(RepositoryInteractionLimitExpiry, graphql_name="expiry") + """When this limit should expire.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class SponsorOrder(sgqlc.types.Input): + """Ordering options for connections to get sponsor entities for + GitHub Sponsors. + """ + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SponsorOrderField), graphql_name="field") + """The field to order sponsor entities by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SponsorableOrder(sgqlc.types.Input): + """Ordering options for connections to get sponsorable entities for + GitHub Sponsors. + """ + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SponsorableOrderField), graphql_name="field") + """The field to order sponsorable entities by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SponsorsActivityOrder(sgqlc.types.Input): + """Ordering options for GitHub Sponsors activity connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SponsorsActivityOrderField), graphql_name="field") + """The field to order activity by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SponsorsTierOrder(sgqlc.types.Input): + """Ordering options for Sponsors tiers connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SponsorsTierOrderField), graphql_name="field") + """The field to order tiers by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SponsorshipNewsletterOrder(sgqlc.types.Input): + """Ordering options for sponsorship newsletter connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SponsorshipNewsletterOrderField), graphql_name="field") + """The field to order sponsorship newsletters by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class SponsorshipOrder(sgqlc.types.Input): + """Ordering options for sponsorship connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(SponsorshipOrderField), graphql_name="field") + """The field to order sponsorship by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class StarOrder(sgqlc.types.Input): + """Ways in which star connections can be ordered.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(StarOrderField), graphql_name="field") + """The field in which to order nodes by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order nodes.""" + + +class StartOrganizationMigrationInput(sgqlc.types.Input): + """Autogenerated input type of StartOrganizationMigration""" + + __schema__ = github_schema + __field_names__ = ("source_org_url", "target_org_name", "target_enterprise_id", "source_access_token", "client_mutation_id") + source_org_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="sourceOrgUrl") + """The URL of the organization to migrate.""" + + target_org_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="targetOrgName") + """The name of the target organization.""" + + target_enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="targetEnterpriseId") + """The ID of the enterprise the target organization belongs to.""" + + source_access_token = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="sourceAccessToken") + """The migration source access token.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class StartRepositoryMigrationInput(sgqlc.types.Input): + """Autogenerated input type of StartRepositoryMigration""" + + __schema__ = github_schema + __field_names__ = ( + "source_id", + "owner_id", + "source_repository_url", + "repository_name", + "continue_on_error", + "git_archive_url", + "metadata_archive_url", + "access_token", + "github_pat", + "skip_releases", + "target_repo_visibility", + "lock_source", + "client_mutation_id", + ) + source_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="sourceId") + """The ID of the migration source.""" + + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the organization that will own the imported repository.""" + + source_repository_url = sgqlc.types.Field(URI, graphql_name="sourceRepositoryUrl") + """The URL of the source repository.""" + + repository_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="repositoryName") + """The name of the imported repository.""" + + continue_on_error = sgqlc.types.Field(Boolean, graphql_name="continueOnError") + """Whether to continue the migration on error. Defaults to `false`.""" + + git_archive_url = sgqlc.types.Field(String, graphql_name="gitArchiveUrl") + """The signed URL to access the user-uploaded git archive.""" + + metadata_archive_url = sgqlc.types.Field(String, graphql_name="metadataArchiveUrl") + """The signed URL to access the user-uploaded metadata archive.""" + + access_token = sgqlc.types.Field(String, graphql_name="accessToken") + """The migration source access token.""" + + github_pat = sgqlc.types.Field(String, graphql_name="githubPat") + """The GitHub personal access token of the user importing to the + target repository. + """ + + skip_releases = sgqlc.types.Field(Boolean, graphql_name="skipReleases") + """Whether to skip migrating releases for the repository.""" + + target_repo_visibility = sgqlc.types.Field(String, graphql_name="targetRepoVisibility") + """The visibility of the imported repository.""" + + lock_source = sgqlc.types.Field(Boolean, graphql_name="lockSource") + """Whether to lock the source repository.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class StatusCheckConfigurationInput(sgqlc.types.Input): + """Required status check""" + + __schema__ = github_schema + __field_names__ = ("context", "integration_id") + context = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="context") + """The status check context name that must be present on the commit.""" + + integration_id = sgqlc.types.Field(Int, graphql_name="integrationId") + """The optional integration ID that this status check must originate + from. + """ + + +class SubmitPullRequestReviewInput(sgqlc.types.Input): + """Autogenerated input type of SubmitPullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "pull_request_review_id", "event", "body", "client_mutation_id") + pull_request_id = sgqlc.types.Field(ID, graphql_name="pullRequestId") + """The Pull Request ID to submit any pending reviews.""" + + pull_request_review_id = sgqlc.types.Field(ID, graphql_name="pullRequestReviewId") + """The Pull Request Review ID to submit.""" + + event = sgqlc.types.Field(sgqlc.types.non_null(PullRequestReviewEvent), graphql_name="event") + """The event to send to the Pull Request Review.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The text field to set on the Pull Request Review.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class TagNamePatternParametersInput(sgqlc.types.Input): + """Parameters to be used for the tag_name_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(Boolean, graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class TeamDiscussionCommentOrder(sgqlc.types.Input): + """Ways in which team discussion comment connections can be ordered.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(TeamDiscussionCommentOrderField), graphql_name="field") + """The field by which to order nodes.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order nodes.""" + + +class TeamDiscussionOrder(sgqlc.types.Input): + """Ways in which team discussion connections can be ordered.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(TeamDiscussionOrderField), graphql_name="field") + """The field by which to order nodes.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order nodes.""" + + +class TeamMemberOrder(sgqlc.types.Input): + """Ordering options for team member connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(TeamMemberOrderField), graphql_name="field") + """The field to order team members by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class TeamOrder(sgqlc.types.Input): + """Ways in which team connections can be ordered.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(TeamOrderField), graphql_name="field") + """The field in which to order nodes by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order nodes.""" + + +class TeamRepositoryOrder(sgqlc.types.Input): + """Ordering options for team repository connections""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(TeamRepositoryOrderField), graphql_name="field") + """The field to order repositories by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class TransferEnterpriseOrganizationInput(sgqlc.types.Input): + """Autogenerated input type of TransferEnterpriseOrganization""" + + __schema__ = github_schema + __field_names__ = ("organization_id", "destination_enterprise_id", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization to transfer.""" + + destination_enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="destinationEnterpriseId") + """The ID of the enterprise where the organization should be + transferred. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class TransferIssueInput(sgqlc.types.Input): + """Autogenerated input type of TransferIssue""" + + __schema__ = github_schema + __field_names__ = ("issue_id", "repository_id", "create_labels_if_missing", "client_mutation_id") + issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="issueId") + """The Node ID of the issue to be transferred""" + + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository the issue should be transferred to""" + + create_labels_if_missing = sgqlc.types.Field(Boolean, graphql_name="createLabelsIfMissing") + """Whether to create labels if they don't exist in the target + repository (matched by name) + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnarchiveProjectV2ItemInput(sgqlc.types.Input): + """Autogenerated input type of UnarchiveProjectV2Item""" + + __schema__ = github_schema + __field_names__ = ("project_id", "item_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to archive the item from.""" + + item_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="itemId") + """The ID of the ProjectV2Item to unarchive.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnarchiveRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of UnarchiveRepository""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to unarchive.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnfollowOrganizationInput(sgqlc.types.Input): + """Autogenerated input type of UnfollowOrganization""" + + __schema__ = github_schema + __field_names__ = ("organization_id", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """ID of the organization to unfollow.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnfollowUserInput(sgqlc.types.Input): + """Autogenerated input type of UnfollowUser""" + + __schema__ = github_schema + __field_names__ = ("user_id", "client_mutation_id") + user_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="userId") + """ID of the user to unfollow.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnlinkProjectV2FromRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of UnlinkProjectV2FromRepository""" + + __schema__ = github_schema + __field_names__ = ("project_id", "repository_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the project to unlink from the repository.""" + + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to unlink from the project.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnlinkProjectV2FromTeamInput(sgqlc.types.Input): + """Autogenerated input type of UnlinkProjectV2FromTeam""" + + __schema__ = github_schema + __field_names__ = ("project_id", "team_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the project to unlink from the team.""" + + team_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="teamId") + """The ID of the team to unlink from the project.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnlinkRepositoryFromProjectInput(sgqlc.types.Input): + """Autogenerated input type of UnlinkRepositoryFromProject""" + + __schema__ = github_schema + __field_names__ = ("project_id", "repository_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project linked to the Repository.""" + + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the Repository linked to the Project.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnlockLockableInput(sgqlc.types.Input): + """Autogenerated input type of UnlockLockable""" + + __schema__ = github_schema + __field_names__ = ("lockable_id", "client_mutation_id") + lockable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="lockableId") + """ID of the item to be unlocked.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnmarkDiscussionCommentAsAnswerInput(sgqlc.types.Input): + """Autogenerated input type of UnmarkDiscussionCommentAsAnswer""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The Node ID of the discussion comment to unmark as an answer.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnmarkFileAsViewedInput(sgqlc.types.Input): + """Autogenerated input type of UnmarkFileAsViewed""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "path", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The Node ID of the pull request.""" + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path of the file to mark as unviewed""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnmarkIssueAsDuplicateInput(sgqlc.types.Input): + """Autogenerated input type of UnmarkIssueAsDuplicate""" + + __schema__ = github_schema + __field_names__ = ("duplicate_id", "canonical_id", "client_mutation_id") + duplicate_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="duplicateId") + """ID of the issue or pull request currently marked as a duplicate.""" + + canonical_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="canonicalId") + """ID of the issue or pull request currently considered + canonical/authoritative/original. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnmarkProjectV2AsTemplateInput(sgqlc.types.Input): + """Autogenerated input type of UnmarkProjectV2AsTemplate""" + + __schema__ = github_schema + __field_names__ = ("project_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to unmark as a template.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnminimizeCommentInput(sgqlc.types.Input): + """Autogenerated input type of UnminimizeComment""" + + __schema__ = github_schema + __field_names__ = ("subject_id", "client_mutation_id") + subject_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subjectId") + """The Node ID of the subject to modify.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnpinIssueInput(sgqlc.types.Input): + """Autogenerated input type of UnpinIssue""" + + __schema__ = github_schema + __field_names__ = ("issue_id", "client_mutation_id") + issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="issueId") + """The ID of the issue to be unpinned""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UnresolveReviewThreadInput(sgqlc.types.Input): + """Autogenerated input type of UnresolveReviewThread""" + + __schema__ = github_schema + __field_names__ = ("thread_id", "client_mutation_id") + thread_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="threadId") + """The ID of the thread to unresolve""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateBranchProtectionRuleInput(sgqlc.types.Input): + """Autogenerated input type of UpdateBranchProtectionRule""" + + __schema__ = github_schema + __field_names__ = ( + "branch_protection_rule_id", + "pattern", + "requires_approving_reviews", + "required_approving_review_count", + "requires_commit_signatures", + "requires_linear_history", + "blocks_creations", + "allows_force_pushes", + "allows_deletions", + "is_admin_enforced", + "requires_status_checks", + "requires_strict_status_checks", + "requires_code_owner_reviews", + "dismisses_stale_reviews", + "restricts_review_dismissals", + "review_dismissal_actor_ids", + "bypass_pull_request_actor_ids", + "bypass_force_push_actor_ids", + "restricts_pushes", + "push_actor_ids", + "required_status_check_contexts", + "required_status_checks", + "requires_deployments", + "required_deployment_environments", + "requires_conversation_resolution", + "require_last_push_approval", + "lock_branch", + "lock_allows_fetch_and_merge", + "client_mutation_id", + ) + branch_protection_rule_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="branchProtectionRuleId") + """The global relay id of the branch protection rule to be updated.""" + + pattern = sgqlc.types.Field(String, graphql_name="pattern") + """The glob-like pattern used to determine matching branches.""" + + requires_approving_reviews = sgqlc.types.Field(Boolean, graphql_name="requiresApprovingReviews") + """Are approving reviews required to update matching branches.""" + + required_approving_review_count = sgqlc.types.Field(Int, graphql_name="requiredApprovingReviewCount") + """Number of approving reviews required to update matching branches.""" + + requires_commit_signatures = sgqlc.types.Field(Boolean, graphql_name="requiresCommitSignatures") + """Are commits required to be signed.""" + + requires_linear_history = sgqlc.types.Field(Boolean, graphql_name="requiresLinearHistory") + """Are merge commits prohibited from being pushed to this branch.""" + + blocks_creations = sgqlc.types.Field(Boolean, graphql_name="blocksCreations") + """Is branch creation a protected operation.""" + + allows_force_pushes = sgqlc.types.Field(Boolean, graphql_name="allowsForcePushes") + """Are force pushes allowed on this branch.""" + + allows_deletions = sgqlc.types.Field(Boolean, graphql_name="allowsDeletions") + """Can this branch be deleted.""" + + is_admin_enforced = sgqlc.types.Field(Boolean, graphql_name="isAdminEnforced") + """Can admins overwrite branch protection.""" + + requires_status_checks = sgqlc.types.Field(Boolean, graphql_name="requiresStatusChecks") + """Are status checks required to update matching branches.""" + + requires_strict_status_checks = sgqlc.types.Field(Boolean, graphql_name="requiresStrictStatusChecks") + """Are branches required to be up to date before merging.""" + + requires_code_owner_reviews = sgqlc.types.Field(Boolean, graphql_name="requiresCodeOwnerReviews") + """Are reviews from code owners required to update matching branches.""" + + dismisses_stale_reviews = sgqlc.types.Field(Boolean, graphql_name="dismissesStaleReviews") + """Will new commits pushed to matching branches dismiss pull request + review approvals. + """ + + restricts_review_dismissals = sgqlc.types.Field(Boolean, graphql_name="restrictsReviewDismissals") + """Is dismissal of pull request reviews restricted.""" + + review_dismissal_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="reviewDismissalActorIds") + """A list of User, Team, or App IDs allowed to dismiss reviews on + pull requests targeting matching branches. + """ + + bypass_pull_request_actor_ids = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="bypassPullRequestActorIds" + ) + """A list of User, Team, or App IDs allowed to bypass pull requests + targeting matching branches. + """ + + bypass_force_push_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="bypassForcePushActorIds") + """A list of User, Team, or App IDs allowed to bypass force push + targeting matching branches. + """ + + restricts_pushes = sgqlc.types.Field(Boolean, graphql_name="restrictsPushes") + """Is pushing to matching branches restricted.""" + + push_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="pushActorIds") + """A list of User, Team, or App IDs allowed to push to matching + branches. + """ + + required_status_check_contexts = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="requiredStatusCheckContexts" + ) + """List of required status check contexts that must pass for commits + to be accepted to matching branches. + """ + + required_status_checks = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(RequiredStatusCheckInput)), graphql_name="requiredStatusChecks" + ) + """The list of required status checks""" + + requires_deployments = sgqlc.types.Field(Boolean, graphql_name="requiresDeployments") + """Are successful deployments required before merging.""" + + required_deployment_environments = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="requiredDeploymentEnvironments" + ) + """The list of required deployment environments""" + + requires_conversation_resolution = sgqlc.types.Field(Boolean, graphql_name="requiresConversationResolution") + """Are conversations required to be resolved before merging.""" + + require_last_push_approval = sgqlc.types.Field(Boolean, graphql_name="requireLastPushApproval") + """Whether the most recent push must be approved by someone other + than the person who pushed it + """ + + lock_branch = sgqlc.types.Field(Boolean, graphql_name="lockBranch") + """Whether to set the branch as read-only. If this is true, users + will not be able to push to the branch. + """ + + lock_allows_fetch_and_merge = sgqlc.types.Field(Boolean, graphql_name="lockAllowsFetchAndMerge") + """Whether users can pull changes from upstream when the branch is + locked. Set to `true` to allow fork syncing. Set to `false` to + prevent fork syncing. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateCheckRunInput(sgqlc.types.Input): + """Autogenerated input type of UpdateCheckRun""" + + __schema__ = github_schema + __field_names__ = ( + "repository_id", + "check_run_id", + "name", + "details_url", + "external_id", + "status", + "started_at", + "conclusion", + "completed_at", + "output", + "actions", + "client_mutation_id", + ) + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The node ID of the repository.""" + + check_run_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="checkRunId") + """The node of the check.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The name of the check.""" + + details_url = sgqlc.types.Field(URI, graphql_name="detailsUrl") + """The URL of the integrator's site that has the full details of the + check. + """ + + external_id = sgqlc.types.Field(String, graphql_name="externalId") + """A reference for the run on the integrator's system.""" + + status = sgqlc.types.Field(RequestableCheckStatusState, graphql_name="status") + """The current status.""" + + started_at = sgqlc.types.Field(DateTime, graphql_name="startedAt") + """The time that the check run began.""" + + conclusion = sgqlc.types.Field(CheckConclusionState, graphql_name="conclusion") + """The final conclusion of the check.""" + + completed_at = sgqlc.types.Field(DateTime, graphql_name="completedAt") + """The time that the check run finished.""" + + output = sgqlc.types.Field(CheckRunOutput, graphql_name="output") + """Descriptive details about the run.""" + + actions = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(CheckRunAction)), graphql_name="actions") + """Possible further actions the integrator can perform, which a user + may trigger. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateCheckSuitePreferencesInput(sgqlc.types.Input): + """Autogenerated input type of UpdateCheckSuitePreferences""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "auto_trigger_preferences", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + auto_trigger_preferences = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CheckSuiteAutoTriggerPreference))), + graphql_name="autoTriggerPreferences", + ) + """The check suite preferences to modify.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateDiscussionCommentInput(sgqlc.types.Input): + """Autogenerated input type of UpdateDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("comment_id", "body", "client_mutation_id") + comment_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="commentId") + """The Node ID of the discussion comment to update.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The new contents of the comment body.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of UpdateDiscussion""" + + __schema__ = github_schema + __field_names__ = ("discussion_id", "title", "body", "category_id", "client_mutation_id") + discussion_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="discussionId") + """The Node ID of the discussion to update.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The new discussion title.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The new contents of the discussion body.""" + + category_id = sgqlc.types.Field(ID, graphql_name="categoryId") + """The Node ID of a discussion category within the same repository to + change this discussion to. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseAdministratorRoleInput(sgqlc.types.Input): + """Autogenerated input type of UpdateEnterpriseAdministratorRole""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "login", "role", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the Enterprise which the admin belongs to.""" + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of a administrator whose role is being changed.""" + + role = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseAdministratorRole), graphql_name="role") + """The new role for the Enterprise administrator.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseAllowPrivateRepositoryForkingSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "policy_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the allow private + repository forking setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the allow private repository forking setting on the + enterprise. + """ + + policy_value = sgqlc.types.Field(EnterpriseAllowPrivateRepositoryForkingPolicyValue, graphql_name="policyValue") + """The value for the allow private repository forking policy on the + enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseDefaultRepositoryPermissionSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseDefaultRepositoryPermissionSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the base repository + permission setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseDefaultRepositoryPermissionSettingValue), graphql_name="settingValue") + """The value for the base repository permission setting on the + enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can change + repository visibility setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the members can change repository visibility setting + on the enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanCreateRepositoriesSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanCreateRepositoriesSetting + """ + + __schema__ = github_schema + __field_names__ = ( + "enterprise_id", + "setting_value", + "members_can_create_repositories_policy_enabled", + "members_can_create_public_repositories", + "members_can_create_private_repositories", + "members_can_create_internal_repositories", + "client_mutation_id", + ) + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can create + repositories setting. + """ + + setting_value = sgqlc.types.Field(EnterpriseMembersCanCreateRepositoriesSettingValue, graphql_name="settingValue") + """Value for the members can create repositories setting on the + enterprise. This or the granular public/private/internal allowed + fields (but not both) must be provided. + """ + + members_can_create_repositories_policy_enabled = sgqlc.types.Field(Boolean, graphql_name="membersCanCreateRepositoriesPolicyEnabled") + """When false, allow member organizations to set their own repository + creation member privileges. + """ + + members_can_create_public_repositories = sgqlc.types.Field(Boolean, graphql_name="membersCanCreatePublicRepositories") + """Allow members to create public repositories. Defaults to current + value. + """ + + members_can_create_private_repositories = sgqlc.types.Field(Boolean, graphql_name="membersCanCreatePrivateRepositories") + """Allow members to create private repositories. Defaults to current + value. + """ + + members_can_create_internal_repositories = sgqlc.types.Field(Boolean, graphql_name="membersCanCreateInternalRepositories") + """Allow members to create internal repositories. Defaults to current + value. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanDeleteIssuesSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanDeleteIssuesSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can delete + issues setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the members can delete issues setting on the + enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanDeleteRepositoriesSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can delete + repositories setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the members can delete repositories setting on the + enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanInviteCollaboratorsSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can invite + collaborators setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the members can invite collaborators setting on the + enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanMakePurchasesSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanMakePurchasesSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can make + purchases setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseMembersCanMakePurchasesSettingValue), graphql_name="settingValue") + """The value for the members can make purchases setting on the + enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can update + protected branches setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the members can update protected branches setting on + the enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseMembersCanViewDependencyInsightsSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the members can view + dependency insights setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the members can view dependency insights setting on + the enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseOrganizationProjectsSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseOrganizationProjectsSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the organization projects + setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the organization projects setting on the enterprise.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseOwnerOrganizationRoleInput(sgqlc.types.Input): + """Autogenerated input type of UpdateEnterpriseOwnerOrganizationRole""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "organization_id", "organization_role", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the Enterprise which the owner belongs to.""" + + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization for membership change.""" + + organization_role = sgqlc.types.Field(sgqlc.types.non_null(RoleInOrganization), graphql_name="organizationRole") + """The role to assume in the organization.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseProfileInput(sgqlc.types.Input): + """Autogenerated input type of UpdateEnterpriseProfile""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "name", "description", "website_url", "location", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The Enterprise ID to update.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The name of the enterprise.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The description of the enterprise.""" + + website_url = sgqlc.types.Field(String, graphql_name="websiteUrl") + """The URL of the enterprise's website.""" + + location = sgqlc.types.Field(String, graphql_name="location") + """The location of the enterprise.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseRepositoryProjectsSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseRepositoryProjectsSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the repository projects + setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the repository projects setting on the enterprise.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseTeamDiscussionsSettingInput(sgqlc.types.Input): + """Autogenerated input type of UpdateEnterpriseTeamDiscussionsSetting""" + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the team discussions + setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="settingValue") + """The value for the team discussions setting on the enterprise.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateEnterpriseTwoFactorAuthenticationRequiredSetting + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_id", "setting_value", "client_mutation_id") + enterprise_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="enterpriseId") + """The ID of the enterprise on which to set the two factor + authentication required setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseEnabledSettingValue), graphql_name="settingValue") + """The value for the two factor authentication required setting on + the enterprise. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateEnvironmentInput(sgqlc.types.Input): + """Autogenerated input type of UpdateEnvironment""" + + __schema__ = github_schema + __field_names__ = ("environment_id", "wait_timer", "reviewers", "client_mutation_id") + environment_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="environmentId") + """The node ID of the environment.""" + + wait_timer = sgqlc.types.Field(Int, graphql_name="waitTimer") + """The wait timer in minutes.""" + + reviewers = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="reviewers") + """The ids of users or teams that can approve deployments to this + environment + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateIpAllowListEnabledSettingInput(sgqlc.types.Input): + """Autogenerated input type of UpdateIpAllowListEnabledSetting""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "setting_value", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the owner on which to set the IP allow list enabled + setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(IpAllowListEnabledSettingValue), graphql_name="settingValue") + """The value for the IP allow list enabled setting.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateIpAllowListEntryInput(sgqlc.types.Input): + """Autogenerated input type of UpdateIpAllowListEntry""" + + __schema__ = github_schema + __field_names__ = ("ip_allow_list_entry_id", "allow_list_value", "name", "is_active", "client_mutation_id") + ip_allow_list_entry_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ipAllowListEntryId") + """The ID of the IP allow list entry to update.""" + + allow_list_value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="allowListValue") + """An IP address or range of addresses in CIDR notation.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """An optional name for the IP allow list entry.""" + + is_active = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isActive") + """Whether the IP allow list entry is active when an IP allow list is + enabled. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateIpAllowListForInstalledAppsEnabledSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateIpAllowListForInstalledAppsEnabledSetting + """ + + __schema__ = github_schema + __field_names__ = ("owner_id", "setting_value", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the owner.""" + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(IpAllowListForInstalledAppsEnabledSettingValue), graphql_name="settingValue") + """The value for the IP allow list configuration for installed GitHub + Apps setting. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateIssueCommentInput(sgqlc.types.Input): + """Autogenerated input type of UpdateIssueComment""" + + __schema__ = github_schema + __field_names__ = ("id", "body", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the IssueComment to modify.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The updated text of the comment.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateIssueInput(sgqlc.types.Input): + """Autogenerated input type of UpdateIssue""" + + __schema__ = github_schema + __field_names__ = ("id", "title", "body", "assignee_ids", "milestone_id", "label_ids", "state", "project_ids", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the Issue to modify.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The title for the issue.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The body for the issue description.""" + + assignee_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="assigneeIds") + """An array of Node IDs of users for this issue.""" + + milestone_id = sgqlc.types.Field(ID, graphql_name="milestoneId") + """The Node ID of the milestone for this issue.""" + + label_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="labelIds") + """An array of Node IDs of labels for this issue.""" + + state = sgqlc.types.Field(IssueState, graphql_name="state") + """The desired issue state.""" + + project_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="projectIds") + """An array of Node IDs for projects associated with this issue.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateNotificationRestrictionSettingInput(sgqlc.types.Input): + """Autogenerated input type of UpdateNotificationRestrictionSetting""" + + __schema__ = github_schema + __field_names__ = ("owner_id", "setting_value", "client_mutation_id") + owner_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="ownerId") + """The ID of the owner on which to set the restrict notifications + setting. + """ + + setting_value = sgqlc.types.Field(sgqlc.types.non_null(NotificationRestrictionSettingValue), graphql_name="settingValue") + """The value for the restrict notifications setting.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateOrganizationAllowPrivateRepositoryForkingSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateOrganizationAllowPrivateRepositoryForkingSetting + """ + + __schema__ = github_schema + __field_names__ = ("organization_id", "forking_enabled", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization on which to set the allow private + repository forking setting. + """ + + forking_enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="forkingEnabled") + """Enable forking of private repositories in the organization?""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateOrganizationWebCommitSignoffSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateOrganizationWebCommitSignoffSetting + """ + + __schema__ = github_schema + __field_names__ = ("organization_id", "web_commit_signoff_required", "client_mutation_id") + organization_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="organizationId") + """The ID of the organization on which to set the web commit signoff + setting. + """ + + web_commit_signoff_required = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="webCommitSignoffRequired") + """Enable signoff on web-based commits for repositories in the + organization? + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateParametersInput(sgqlc.types.Input): + """Only allow users with bypass permission to update matching refs.""" + + __schema__ = github_schema + __field_names__ = ("update_allows_fetch_and_merge",) + update_allows_fetch_and_merge = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="updateAllowsFetchAndMerge") + """Branch can pull changes from its upstream repository""" + + +class UpdateProjectCardInput(sgqlc.types.Input): + """Autogenerated input type of UpdateProjectCard""" + + __schema__ = github_schema + __field_names__ = ("project_card_id", "is_archived", "note", "client_mutation_id") + project_card_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectCardId") + """The ProjectCard ID to update.""" + + is_archived = sgqlc.types.Field(Boolean, graphql_name="isArchived") + """Whether or not the ProjectCard should be archived""" + + note = sgqlc.types.Field(String, graphql_name="note") + """The note of ProjectCard.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateProjectColumnInput(sgqlc.types.Input): + """Autogenerated input type of UpdateProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("project_column_id", "name", "client_mutation_id") + project_column_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectColumnId") + """The ProjectColumn ID to update.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of project column.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateProjectInput(sgqlc.types.Input): + """Autogenerated input type of UpdateProject""" + + __schema__ = github_schema + __field_names__ = ("project_id", "name", "body", "state", "public", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The Project ID to update.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The name of project.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The description of project.""" + + state = sgqlc.types.Field(ProjectState, graphql_name="state") + """Whether the project is open or closed.""" + + public = sgqlc.types.Field(Boolean, graphql_name="public") + """Whether the project is public or not.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateProjectV2CollaboratorsInput(sgqlc.types.Input): + """Autogenerated input type of UpdateProjectV2Collaborators""" + + __schema__ = github_schema + __field_names__ = ("project_id", "collaborators", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the project to update the collaborators for.""" + + collaborators = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ProjectV2Collaborator))), graphql_name="collaborators" + ) + """The collaborators to update.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateProjectV2DraftIssueInput(sgqlc.types.Input): + """Autogenerated input type of UpdateProjectV2DraftIssue""" + + __schema__ = github_schema + __field_names__ = ("draft_issue_id", "title", "body", "assignee_ids", "client_mutation_id") + draft_issue_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="draftIssueId") + """The ID of the draft issue to update.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The title of the draft issue.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The body of the draft issue.""" + + assignee_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="assigneeIds") + """The IDs of the assignees of the draft issue.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateProjectV2Input(sgqlc.types.Input): + """Autogenerated input type of UpdateProjectV2""" + + __schema__ = github_schema + __field_names__ = ("project_id", "title", "short_description", "readme", "closed", "public", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project to update.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """Set the title of the project.""" + + short_description = sgqlc.types.Field(String, graphql_name="shortDescription") + """Set the short description of the project.""" + + readme = sgqlc.types.Field(String, graphql_name="readme") + """Set the readme description of the project.""" + + closed = sgqlc.types.Field(Boolean, graphql_name="closed") + """Set the project to closed or open.""" + + public = sgqlc.types.Field(Boolean, graphql_name="public") + """Set the project to public or private.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateProjectV2ItemFieldValueInput(sgqlc.types.Input): + """Autogenerated input type of UpdateProjectV2ItemFieldValue""" + + __schema__ = github_schema + __field_names__ = ("project_id", "item_id", "field_id", "value", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project.""" + + item_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="itemId") + """The ID of the item to be updated.""" + + field_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="fieldId") + """The ID of the field to be updated.""" + + value = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2FieldValue), graphql_name="value") + """The value which will be set on the field.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateProjectV2ItemPositionInput(sgqlc.types.Input): + """Autogenerated input type of UpdateProjectV2ItemPosition""" + + __schema__ = github_schema + __field_names__ = ("project_id", "item_id", "after_id", "client_mutation_id") + project_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="projectId") + """The ID of the Project.""" + + item_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="itemId") + """The ID of the item to be moved.""" + + after_id = sgqlc.types.Field(ID, graphql_name="afterId") + """The ID of the item to position this item after. If omitted or set + to null the item will be moved to top. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdatePullRequestBranchInput(sgqlc.types.Input): + """Autogenerated input type of UpdatePullRequestBranch""" + + __schema__ = github_schema + __field_names__ = ("pull_request_id", "expected_head_oid", "client_mutation_id") + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The Node ID of the pull request.""" + + expected_head_oid = sgqlc.types.Field(GitObjectID, graphql_name="expectedHeadOid") + """The head ref oid for the upstream branch.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdatePullRequestInput(sgqlc.types.Input): + """Autogenerated input type of UpdatePullRequest""" + + __schema__ = github_schema + __field_names__ = ( + "pull_request_id", + "base_ref_name", + "title", + "body", + "state", + "maintainer_can_modify", + "assignee_ids", + "milestone_id", + "label_ids", + "project_ids", + "client_mutation_id", + ) + pull_request_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestId") + """The Node ID of the pull request.""" + + base_ref_name = sgqlc.types.Field(String, graphql_name="baseRefName") + """The name of the branch you want your changes pulled into. This + should be an existing branch on the current repository. + """ + + title = sgqlc.types.Field(String, graphql_name="title") + """The title of the pull request.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The contents of the pull request.""" + + state = sgqlc.types.Field(PullRequestUpdateState, graphql_name="state") + """The target state of the pull request.""" + + maintainer_can_modify = sgqlc.types.Field(Boolean, graphql_name="maintainerCanModify") + """Indicates whether maintainers can modify the pull request.""" + + assignee_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="assigneeIds") + """An array of Node IDs of users for this pull request.""" + + milestone_id = sgqlc.types.Field(ID, graphql_name="milestoneId") + """The Node ID of the milestone for this pull request.""" + + label_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="labelIds") + """An array of Node IDs of labels for this pull request.""" + + project_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="projectIds") + """An array of Node IDs for projects associated with this pull + request. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdatePullRequestReviewCommentInput(sgqlc.types.Input): + """Autogenerated input type of UpdatePullRequestReviewComment""" + + __schema__ = github_schema + __field_names__ = ("pull_request_review_comment_id", "body", "client_mutation_id") + pull_request_review_comment_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestReviewCommentId") + """The Node ID of the comment to modify.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The text of the comment.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdatePullRequestReviewInput(sgqlc.types.Input): + """Autogenerated input type of UpdatePullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("pull_request_review_id", "body", "client_mutation_id") + pull_request_review_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="pullRequestReviewId") + """The Node ID of the pull request review to modify.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The contents of the pull request review body.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateRefInput(sgqlc.types.Input): + """Autogenerated input type of UpdateRef""" + + __schema__ = github_schema + __field_names__ = ("ref_id", "oid", "force", "client_mutation_id") + ref_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="refId") + """The Node ID of the Ref to be updated.""" + + oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="oid") + """The GitObjectID that the Ref shall be updated to target.""" + + force = sgqlc.types.Field(Boolean, graphql_name="force") + """Permit updates of branch Refs that are not fast-forwards?""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of UpdateRepository""" + + __schema__ = github_schema + __field_names__ = ( + "repository_id", + "name", + "description", + "template", + "homepage_url", + "has_wiki_enabled", + "has_issues_enabled", + "has_projects_enabled", + "has_discussions_enabled", + "client_mutation_id", + ) + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to update.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The new name of the repository.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """A new description for the repository. Pass an empty string to + erase the existing description. + """ + + template = sgqlc.types.Field(Boolean, graphql_name="template") + """Whether this repository should be marked as a template such that + anyone who can access it can create new repositories with the same + files and directory structure. + """ + + homepage_url = sgqlc.types.Field(URI, graphql_name="homepageUrl") + """The URL for a web page about this repository. Pass an empty string + to erase the existing URL. + """ + + has_wiki_enabled = sgqlc.types.Field(Boolean, graphql_name="hasWikiEnabled") + """Indicates if the repository should have the wiki feature enabled.""" + + has_issues_enabled = sgqlc.types.Field(Boolean, graphql_name="hasIssuesEnabled") + """Indicates if the repository should have the issues feature + enabled. + """ + + has_projects_enabled = sgqlc.types.Field(Boolean, graphql_name="hasProjectsEnabled") + """Indicates if the repository should have the project boards feature + enabled. + """ + + has_discussions_enabled = sgqlc.types.Field(Boolean, graphql_name="hasDiscussionsEnabled") + """Indicates if the repository should have the discussions feature + enabled. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateRepositoryRulesetInput(sgqlc.types.Input): + """Autogenerated input type of UpdateRepositoryRuleset""" + + __schema__ = github_schema + __field_names__ = ( + "repository_ruleset_id", + "name", + "target", + "rules", + "conditions", + "enforcement", + "bypass_mode", + "bypass_actor_ids", + "client_mutation_id", + ) + repository_ruleset_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryRulesetId") + """The global relay id of the repository ruleset to be updated.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The name of the ruleset.""" + + target = sgqlc.types.Field(RepositoryRulesetTarget, graphql_name="target") + """The target of the ruleset.""" + + rules = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(RepositoryRuleInput)), graphql_name="rules") + """The list of rules for this ruleset""" + + conditions = sgqlc.types.Field(RepositoryRuleConditionsInput, graphql_name="conditions") + """The list of conditions for this ruleset""" + + enforcement = sgqlc.types.Field(RuleEnforcement, graphql_name="enforcement") + """The enforcement level for this ruleset""" + + bypass_mode = sgqlc.types.Field(RuleBypassMode, graphql_name="bypassMode") + """The bypass mode for this ruleset""" + + bypass_actor_ids = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name="bypassActorIds") + """A list of Team or App IDs allowed to bypass rules in this ruleset.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateRepositoryWebCommitSignoffSettingInput(sgqlc.types.Input): + """Autogenerated input type of + UpdateRepositoryWebCommitSignoffSetting + """ + + __schema__ = github_schema + __field_names__ = ("repository_id", "web_commit_signoff_required", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The ID of the repository to update.""" + + web_commit_signoff_required = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="webCommitSignoffRequired") + """Indicates if the repository should require signoff on web-based + commits. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateSponsorshipPreferencesInput(sgqlc.types.Input): + """Autogenerated input type of UpdateSponsorshipPreferences""" + + __schema__ = github_schema + __field_names__ = ( + "sponsor_id", + "sponsor_login", + "sponsorable_id", + "sponsorable_login", + "receive_emails", + "privacy_level", + "client_mutation_id", + ) + sponsor_id = sgqlc.types.Field(ID, graphql_name="sponsorId") + """The ID of the user or organization who is acting as the sponsor, + paying for the sponsorship. Required if sponsorLogin is not given. + """ + + sponsor_login = sgqlc.types.Field(String, graphql_name="sponsorLogin") + """The username of the user or organization who is acting as the + sponsor, paying for the sponsorship. Required if sponsorId is not + given. + """ + + sponsorable_id = sgqlc.types.Field(ID, graphql_name="sponsorableId") + """The ID of the user or organization who is receiving the + sponsorship. Required if sponsorableLogin is not given. + """ + + sponsorable_login = sgqlc.types.Field(String, graphql_name="sponsorableLogin") + """The username of the user or organization who is receiving the + sponsorship. Required if sponsorableId is not given. + """ + + receive_emails = sgqlc.types.Field(Boolean, graphql_name="receiveEmails") + """Whether the sponsor should receive email updates from the + sponsorable. + """ + + privacy_level = sgqlc.types.Field(SponsorshipPrivacy, graphql_name="privacyLevel") + """Specify whether others should be able to see that the sponsor is + sponsoring the sponsorable. Public visibility still does not + reveal which tier is used. + """ + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateSubscriptionInput(sgqlc.types.Input): + """Autogenerated input type of UpdateSubscription""" + + __schema__ = github_schema + __field_names__ = ("subscribable_id", "state", "client_mutation_id") + subscribable_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="subscribableId") + """The Node ID of the subscribable object to modify.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(SubscriptionState), graphql_name="state") + """The new state of the subscription.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateTeamDiscussionCommentInput(sgqlc.types.Input): + """Autogenerated input type of UpdateTeamDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("id", "body", "body_version", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the comment to modify.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The updated text of the comment.""" + + body_version = sgqlc.types.Field(String, graphql_name="bodyVersion") + """The current version of the body content.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateTeamDiscussionInput(sgqlc.types.Input): + """Autogenerated input type of UpdateTeamDiscussion""" + + __schema__ = github_schema + __field_names__ = ("id", "title", "body", "body_version", "pinned", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The Node ID of the discussion to modify.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The updated title of the discussion.""" + + body = sgqlc.types.Field(String, graphql_name="body") + """The updated text of the discussion.""" + + body_version = sgqlc.types.Field(String, graphql_name="bodyVersion") + """The current version of the body content. If provided, this update + operation will be rejected if the given version does not match the + latest version on the server. + """ + + pinned = sgqlc.types.Field(Boolean, graphql_name="pinned") + """If provided, sets the pinned state of the updated discussion.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateTeamsRepositoryInput(sgqlc.types.Input): + """Autogenerated input type of UpdateTeamsRepository""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "team_ids", "permission", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """Repository ID being granted access to.""" + + team_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="teamIds") + """A list of teams being granted access. Limit: 10""" + + permission = sgqlc.types.Field(sgqlc.types.non_null(RepositoryPermission), graphql_name="permission") + """Permission that should be granted to the teams.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateTopicsInput(sgqlc.types.Input): + """Autogenerated input type of UpdateTopics""" + + __schema__ = github_schema + __field_names__ = ("repository_id", "topic_names", "client_mutation_id") + repository_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="repositoryId") + """The Node ID of the repository.""" + + topic_names = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="topicNames") + """An array of topic names.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UserStatusOrder(sgqlc.types.Input): + """Ordering options for user status connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(UserStatusOrderField), graphql_name="field") + """The field to order user statuses by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class VerifiableDomainOrder(sgqlc.types.Input): + """Ordering options for verifiable domain connections.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(VerifiableDomainOrderField), graphql_name="field") + """The field to order verifiable domains by.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The ordering direction.""" + + +class VerifyVerifiableDomainInput(sgqlc.types.Input): + """Autogenerated input type of VerifyVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("id", "client_mutation_id") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """The ID of the verifiable domain to verify.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class WorkflowRunOrder(sgqlc.types.Input): + """Ways in which lists of workflow runs can be ordered upon return.""" + + __schema__ = github_schema + __field_names__ = ("field", "direction") + field = sgqlc.types.Field(sgqlc.types.non_null(WorkflowRunOrderField), graphql_name="field") + """The field by which to order workflows.""" + + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction in which to order workflow runs by the specified + field. + """ + + +######################################################################## +# Output Objects and Interfaces +######################################################################## +class Actor(sgqlc.types.Interface): + """Represents an object which can take actions on GitHub. Typically a + User or Bot. + """ + + __schema__ = github_schema + __field_names__ = ("avatar_url", "login", "resource_path", "url") + avatar_url = sgqlc.types.Field( + sgqlc.types.non_null(URI), + graphql_name="avatarUrl", + args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=None)),)), + ) + """A URL pointing to the actor's public avatar. + + Arguments: + + * `size` (`Int`): The size of the resulting square image. + """ + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The username of the actor.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this actor.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this actor.""" + + +class AnnouncementBanner(sgqlc.types.Interface): + """Represents an announcement banner.""" + + __schema__ = github_schema + __field_names__ = ("announcement", "announcement_expires_at", "announcement_user_dismissible") + announcement = sgqlc.types.Field(String, graphql_name="announcement") + """The text of the announcement""" + + announcement_expires_at = sgqlc.types.Field(DateTime, graphql_name="announcementExpiresAt") + """The expiration date of the announcement, if any""" + + announcement_user_dismissible = sgqlc.types.Field(Boolean, graphql_name="announcementUserDismissible") + """Whether the announcement can be dismissed by the user""" + + +class Assignable(sgqlc.types.Interface): + """An object that can have users assigned to it.""" + + __schema__ = github_schema + __field_names__ = ("assignees",) + assignees = sgqlc.types.Field( + sgqlc.types.non_null("UserConnection"), + graphql_name="assignees", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of Users assigned to this object. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class AuditEntry(sgqlc.types.Interface): + """An entry in the audit log.""" + + __schema__ = github_schema + __field_names__ = ( + "action", + "actor", + "actor_ip", + "actor_location", + "actor_login", + "actor_resource_path", + "actor_url", + "created_at", + "operation_type", + "user", + "user_login", + "user_resource_path", + "user_url", + ) + action = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="action") + """The action name""" + + actor = sgqlc.types.Field("AuditEntryActor", graphql_name="actor") + """The user who initiated the action""" + + actor_ip = sgqlc.types.Field(String, graphql_name="actorIp") + """The IP address of the actor""" + + actor_location = sgqlc.types.Field("ActorLocation", graphql_name="actorLocation") + """A readable representation of the actor's location""" + + actor_login = sgqlc.types.Field(String, graphql_name="actorLogin") + """The username of the user who initiated the action""" + + actor_resource_path = sgqlc.types.Field(URI, graphql_name="actorResourcePath") + """The HTTP path for the actor.""" + + actor_url = sgqlc.types.Field(URI, graphql_name="actorUrl") + """The HTTP URL for the actor.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(PreciseDateTime), graphql_name="createdAt") + """The time the action was initiated""" + + operation_type = sgqlc.types.Field(OperationType, graphql_name="operationType") + """The corresponding operation type for the action""" + + user = sgqlc.types.Field("User", graphql_name="user") + """The user affected by the action""" + + user_login = sgqlc.types.Field(String, graphql_name="userLogin") + """For actions involving two users, the actor is the initiator and + the user is the affected user. + """ + + user_resource_path = sgqlc.types.Field(URI, graphql_name="userResourcePath") + """The HTTP path for the user.""" + + user_url = sgqlc.types.Field(URI, graphql_name="userUrl") + """The HTTP URL for the user.""" + + +class Closable(sgqlc.types.Interface): + """An object that can be closed""" + + __schema__ = github_schema + __field_names__ = ("closed", "closed_at", "viewer_can_close", "viewer_can_reopen") + closed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="closed") + """Indicates if the object is closed (definition of closed may depend + on type) + """ + + closed_at = sgqlc.types.Field(DateTime, graphql_name="closedAt") + """Identifies the date and time when the object was closed.""" + + viewer_can_close = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanClose") + """Indicates if the object can be closed by the viewer.""" + + viewer_can_reopen = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanReopen") + """Indicates if the object can be reopened by the viewer.""" + + +class Comment(sgqlc.types.Interface): + """Represents a comment.""" + + __schema__ = github_schema + __field_names__ = ( + "author", + "author_association", + "body", + "body_html", + "body_text", + "created_at", + "created_via_email", + "editor", + "id", + "includes_created_edit", + "last_edited_at", + "published_at", + "updated_at", + "user_content_edits", + "viewer_did_author", + ) + author = sgqlc.types.Field(Actor, graphql_name="author") + """The actor who authored the comment.""" + + author_association = sgqlc.types.Field(sgqlc.types.non_null(CommentAuthorAssociation), graphql_name="authorAssociation") + """Author's association with the subject of the comment.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The body as Markdown.""" + + body_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="bodyHTML") + """The body rendered to HTML.""" + + body_text = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="bodyText") + """The body rendered to text.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + created_via_email = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="createdViaEmail") + """Check if this comment was created via an email reply.""" + + editor = sgqlc.types.Field(Actor, graphql_name="editor") + """The actor who edited the comment.""" + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + includes_created_edit = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="includesCreatedEdit") + """Check if this comment was edited and includes an edit with the + creation data + """ + + last_edited_at = sgqlc.types.Field(DateTime, graphql_name="lastEditedAt") + """The moment the editor made the last edit""" + + published_at = sgqlc.types.Field(DateTime, graphql_name="publishedAt") + """Identifies when the comment was published at.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + user_content_edits = sgqlc.types.Field( + "UserContentEditConnection", + graphql_name="userContentEdits", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of edits to this content. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + viewer_did_author = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerDidAuthor") + """Did the viewer author this comment.""" + + +class Contribution(sgqlc.types.Interface): + """Represents a contribution a user made on GitHub, such as opening + an issue. + """ + + __schema__ = github_schema + __field_names__ = ("is_restricted", "occurred_at", "resource_path", "url", "user") + is_restricted = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isRestricted") + """Whether this contribution is associated with a record you do not + have access to. For example, your own 'first issue' contribution + may have been made on a repository you can no longer access. + """ + + occurred_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="occurredAt") + """When this contribution was made.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this contribution.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this contribution.""" + + user = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="user") + """The user who made this contribution.""" + + +class Deletable(sgqlc.types.Interface): + """Entities that can be deleted.""" + + __schema__ = github_schema + __field_names__ = ("viewer_can_delete",) + viewer_can_delete = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanDelete") + """Check if the current viewer can delete this object.""" + + +class EnterpriseAuditEntryData(sgqlc.types.Interface): + """Metadata for an audit entry containing enterprise account + information. + """ + + __schema__ = github_schema + __field_names__ = ("enterprise_resource_path", "enterprise_slug", "enterprise_url") + enterprise_resource_path = sgqlc.types.Field(URI, graphql_name="enterpriseResourcePath") + """The HTTP path for this enterprise.""" + + enterprise_slug = sgqlc.types.Field(String, graphql_name="enterpriseSlug") + """The slug of the enterprise.""" + + enterprise_url = sgqlc.types.Field(URI, graphql_name="enterpriseUrl") + """The HTTP URL for this enterprise.""" + + +class GitObject(sgqlc.types.Interface): + """Represents a Git object.""" + + __schema__ = github_schema + __field_names__ = ("abbreviated_oid", "commit_resource_path", "commit_url", "id", "oid", "repository") + abbreviated_oid = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="abbreviatedOid") + """An abbreviated version of the Git object ID""" + + commit_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="commitResourcePath") + """The HTTP path for this Git object""" + + commit_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="commitUrl") + """The HTTP URL for this Git object""" + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="oid") + """The Git object ID""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The Repository the Git object belongs to""" + + +class GitSignature(sgqlc.types.Interface): + """Information about a signature (GPG or S/MIME) on a Commit or Tag.""" + + __schema__ = github_schema + __field_names__ = ("email", "is_valid", "payload", "signature", "signer", "state", "was_signed_by_git_hub") + email = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="email") + """Email used to sign this object.""" + + is_valid = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isValid") + """True if the signature is valid and verified by GitHub.""" + + payload = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="payload") + """Payload for GPG signing object. Raw ODB object without the + signature header. + """ + + signature = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="signature") + """ASCII-armored signature header from object.""" + + signer = sgqlc.types.Field("User", graphql_name="signer") + """GitHub user corresponding to the email signing this commit.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(GitSignatureState), graphql_name="state") + """The state of this signature. `VALID` if signature is valid and + verified by GitHub, otherwise represents reason why signature is + considered invalid. + """ + + was_signed_by_git_hub = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="wasSignedByGitHub") + """True if the signature was made with GitHub's signing key.""" + + +class HovercardContext(sgqlc.types.Interface): + """An individual line of a hovercard""" + + __schema__ = github_schema + __field_names__ = ("message", "octicon") + message = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="message") + """A string describing this context""" + + octicon = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="octicon") + """An octicon to accompany this context""" + + +class Labelable(sgqlc.types.Interface): + """An object that can have labels assigned to it.""" + + __schema__ = github_schema + __field_names__ = ("labels",) + labels = sgqlc.types.Field( + "LabelConnection", + graphql_name="labels", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(LabelOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"})), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of labels associated with the object. + + Arguments: + + * `order_by` (`LabelOrder`): Ordering options for labels returned + from the connection. (default: `{field: CREATED_AT, direction: + ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class Lockable(sgqlc.types.Interface): + """An object that can be locked.""" + + __schema__ = github_schema + __field_names__ = ("active_lock_reason", "locked") + active_lock_reason = sgqlc.types.Field(LockReason, graphql_name="activeLockReason") + """Reason that the conversation was locked.""" + + locked = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="locked") + """`true` if the object is locked""" + + +class MemberStatusable(sgqlc.types.Interface): + """Entities that have members who can set status messages.""" + + __schema__ = github_schema + __field_names__ = ("member_statuses",) + member_statuses = sgqlc.types.Field( + sgqlc.types.non_null("UserStatusConnection"), + graphql_name="memberStatuses", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(UserStatusOrder, graphql_name="orderBy", default={"field": "UPDATED_AT", "direction": "DESC"}), + ), + ) + ), + ) + """Get the status messages members of this entity have set that are + either public or visible only to the organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`UserStatusOrder`): Ordering options for user + statuses returned from the connection. (default: `{field: + UPDATED_AT, direction: DESC}`) + """ + + +class Migration(sgqlc.types.Interface): + """Represents a GitHub Enterprise Importer (GEI) migration.""" + + __schema__ = github_schema + __field_names__ = ( + "continue_on_error", + "created_at", + "database_id", + "failure_reason", + "id", + "migration_log_url", + "migration_source", + "repository_name", + "source_url", + "state", + "warnings_count", + ) + continue_on_error = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="continueOnError") + """The migration flag to continue on error.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(String, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + failure_reason = sgqlc.types.Field(String, graphql_name="failureReason") + """The reason the migration failed.""" + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + migration_log_url = sgqlc.types.Field(URI, graphql_name="migrationLogUrl") + """The URL for the migration log (expires 1 day after migration + completes). + """ + + migration_source = sgqlc.types.Field(sgqlc.types.non_null("MigrationSource"), graphql_name="migrationSource") + """The migration source.""" + + repository_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="repositoryName") + """The target repository name.""" + + source_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="sourceUrl") + """The migration source URL, for example `https://github.com` or + `https://monalisa.ghe.com`. + """ + + state = sgqlc.types.Field(sgqlc.types.non_null(MigrationState), graphql_name="state") + """The migration state.""" + + warnings_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="warningsCount") + """The number of warnings encountered for this migration. To review + the warnings, check the [Migration + Log](https://docs.github.com/en/migrations/using-github- + enterprise-importer/completing-your-migration-with-github- + enterprise-importer/accessing-your-migration-logs-for-github- + enterprise-importer). + """ + + +class Minimizable(sgqlc.types.Interface): + """Entities that can be minimized.""" + + __schema__ = github_schema + __field_names__ = ("is_minimized", "minimized_reason", "viewer_can_minimize") + is_minimized = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isMinimized") + """Returns whether or not a comment has been minimized.""" + + minimized_reason = sgqlc.types.Field(String, graphql_name="minimizedReason") + """Returns why the comment was minimized. One of `abuse`, `off- + topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that + the case and formatting of these values differs from the inputs to + the `MinimizeComment` mutation. + """ + + viewer_can_minimize = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanMinimize") + """Check if the current viewer can minimize this object.""" + + +class Node(sgqlc.types.Interface): + """An object with an ID.""" + + __schema__ = github_schema + __field_names__ = ("id",) + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + """ID of the object.""" + + +class OauthApplicationAuditEntryData(sgqlc.types.Interface): + """Metadata for an audit entry with action oauth_application.*""" + + __schema__ = github_schema + __field_names__ = ("oauth_application_name", "oauth_application_resource_path", "oauth_application_url") + oauth_application_name = sgqlc.types.Field(String, graphql_name="oauthApplicationName") + """The name of the OAuth application.""" + + oauth_application_resource_path = sgqlc.types.Field(URI, graphql_name="oauthApplicationResourcePath") + """The HTTP path for the OAuth application""" + + oauth_application_url = sgqlc.types.Field(URI, graphql_name="oauthApplicationUrl") + """The HTTP URL for the OAuth application""" + + +class OrganizationAuditEntryData(sgqlc.types.Interface): + """Metadata for an audit entry with action org.*""" + + __schema__ = github_schema + __field_names__ = ("organization", "organization_name", "organization_resource_path", "organization_url") + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The Organization associated with the Audit Entry.""" + + organization_name = sgqlc.types.Field(String, graphql_name="organizationName") + """The name of the Organization.""" + + organization_resource_path = sgqlc.types.Field(URI, graphql_name="organizationResourcePath") + """The HTTP path for the organization""" + + organization_url = sgqlc.types.Field(URI, graphql_name="organizationUrl") + """The HTTP URL for the organization""" + + +class PackageOwner(sgqlc.types.Interface): + """Represents an owner of a package.""" + + __schema__ = github_schema + __field_names__ = ("id", "packages") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + packages = sgqlc.types.Field( + sgqlc.types.non_null("PackageConnection"), + graphql_name="packages", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("names", sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name="names", default=None)), + ("repository_id", sgqlc.types.Arg(ID, graphql_name="repositoryId", default=None)), + ("package_type", sgqlc.types.Arg(PackageType, graphql_name="packageType", default=None)), + ("order_by", sgqlc.types.Arg(PackageOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"})), + ) + ), + ) + """A list of packages under the owner. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `names` (`[String]`): Find packages by their names. + * `repository_id` (`ID`): Find packages in a repository by ID. + * `package_type` (`PackageType`): Filter registry package by type. + * `order_by` (`PackageOrder`): Ordering of the returned packages. + (default: `{field: CREATED_AT, direction: DESC}`) + """ + + +class ProfileOwner(sgqlc.types.Interface): + """Represents any entity on GitHub that has a profile page.""" + + __schema__ = github_schema + __field_names__ = ( + "any_pinnable_items", + "email", + "id", + "item_showcase", + "location", + "login", + "name", + "pinnable_items", + "pinned_items", + "pinned_items_remaining", + "viewer_can_change_pinned_items", + "website_url", + ) + any_pinnable_items = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), + graphql_name="anyPinnableItems", + args=sgqlc.types.ArgDict((("type", sgqlc.types.Arg(PinnableItemType, graphql_name="type", default=None)),)), + ) + """Determine if this repository owner has any items that can be + pinned to their profile. + + Arguments: + + * `type` (`PinnableItemType`): Filter to only a particular kind of + pinnable item. + """ + + email = sgqlc.types.Field(String, graphql_name="email") + """The public profile email.""" + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + item_showcase = sgqlc.types.Field(sgqlc.types.non_null("ProfileItemShowcase"), graphql_name="itemShowcase") + """Showcases a selection of repositories and gists that the profile + owner has either curated or that have been selected automatically + based on popularity. + """ + + location = sgqlc.types.Field(String, graphql_name="location") + """The public profile location.""" + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The username used to login.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The public profile name.""" + + pinnable_items = sgqlc.types.Field( + sgqlc.types.non_null("PinnableItemConnection"), + graphql_name="pinnableItems", + args=sgqlc.types.ArgDict( + ( + ("types", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PinnableItemType)), graphql_name="types", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of repositories and gists this profile owner can pin to + their profile. + + Arguments: + + * `types` (`[PinnableItemType!]`): Filter the types of pinnable + items that are returned. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pinned_items = sgqlc.types.Field( + sgqlc.types.non_null("PinnableItemConnection"), + graphql_name="pinnedItems", + args=sgqlc.types.ArgDict( + ( + ("types", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PinnableItemType)), graphql_name="types", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of repositories and gists this profile owner has pinned to + their profile + + Arguments: + + * `types` (`[PinnableItemType!]`): Filter the types of pinned + items that are returned. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pinned_items_remaining = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="pinnedItemsRemaining") + """Returns how many more items this profile owner can pin to their + profile. + """ + + viewer_can_change_pinned_items = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanChangePinnedItems") + """Can the viewer pin repositories and gists to the profile?""" + + website_url = sgqlc.types.Field(URI, graphql_name="websiteUrl") + """The public profile website URL.""" + + +class ProjectOwner(sgqlc.types.Interface): + """Represents an owner of a Project.""" + + __schema__ = github_schema + __field_names__ = ("id", "project", "projects", "projects_resource_path", "projects_url", "viewer_can_create_projects") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + project = sgqlc.types.Field( + "Project", + graphql_name="project", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Find project by number. + + Arguments: + + * `number` (`Int!`): The project number to find. + """ + + projects = sgqlc.types.Field( + sgqlc.types.non_null("ProjectConnection"), + graphql_name="projects", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(ProjectOrder, graphql_name="orderBy", default=None)), + ("search", sgqlc.types.Arg(String, graphql_name="search", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(ProjectState)), graphql_name="states", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of projects under the owner. + + Arguments: + + * `order_by` (`ProjectOrder`): Ordering options for projects + returned from the connection + * `search` (`String`): Query to search projects by, currently only + searching by name. + * `states` (`[ProjectState!]`): A list of states to filter the + projects by. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + projects_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="projectsResourcePath") + """The HTTP path listing owners projects""" + + projects_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="projectsUrl") + """The HTTP URL listing owners projects""" + + viewer_can_create_projects = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanCreateProjects") + """Can the current viewer create new projects on this owner.""" + + +class ProjectV2FieldCommon(sgqlc.types.Interface): + """Common fields across different project field types""" + + __schema__ = github_schema + __field_names__ = ("created_at", "data_type", "database_id", "id", "name", "project", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + data_type = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2FieldType), graphql_name="dataType") + """The field's type.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The project field's name.""" + + project = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2"), graphql_name="project") + """The project that contains this field.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class ProjectV2ItemFieldValueCommon(sgqlc.types.Interface): + """Common fields across different project field value types""" + + __schema__ = github_schema + __field_names__ = ("created_at", "creator", "database_id", "field", "id", "item", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who created the item.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The project field that contains this value.""" + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + item = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2Item"), graphql_name="item") + """The project item that contains this value.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class ProjectV2Owner(sgqlc.types.Interface): + """Represents an owner of a project (beta).""" + + __schema__ = github_schema + __field_names__ = ("id", "project_v2", "projects_v2") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + project_v2 = sgqlc.types.Field( + "ProjectV2", + graphql_name="projectV2", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Find a project by number. + + Arguments: + + * `number` (`Int!`): The project number. + """ + + projects_v2 = sgqlc.types.Field( + sgqlc.types.non_null("ProjectV2Connection"), + graphql_name="projectsV2", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("order_by", sgqlc.types.Arg(ProjectV2Order, graphql_name="orderBy", default={"field": "NUMBER", "direction": "DESC"})), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of projects under the owner. + + Arguments: + + * `query` (`String`): A project to search for under the the owner. + * `order_by` (`ProjectV2Order`): How to order the returned + projects. (default: `{field: NUMBER, direction: DESC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class ProjectV2Recent(sgqlc.types.Interface): + """Recent projects for the owner.""" + + __schema__ = github_schema + __field_names__ = ("recent_projects",) + recent_projects = sgqlc.types.Field( + sgqlc.types.non_null("ProjectV2Connection"), + graphql_name="recentProjects", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Recent projects that this user has modified in the context of the + owner. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class Reactable(sgqlc.types.Interface): + """Represents a subject that can be reacted on.""" + + __schema__ = github_schema + __field_names__ = ("database_id", "id", "reaction_groups", "reactions", "viewer_can_react") + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + reaction_groups = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("ReactionGroup")), graphql_name="reactionGroups") + """A list of reactions grouped by content left on the subject.""" + + reactions = sgqlc.types.Field( + sgqlc.types.non_null("ReactionConnection"), + graphql_name="reactions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("content", sgqlc.types.Arg(ReactionContent, graphql_name="content", default=None)), + ("order_by", sgqlc.types.Arg(ReactionOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """A list of Reactions left on the Issue. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `content` (`ReactionContent`): Allows filtering Reactions by + emoji. + * `order_by` (`ReactionOrder`): Allows specifying the order in + which reactions are returned. + """ + + viewer_can_react = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanReact") + """Can user react to this subject""" + + +class RepositoryAuditEntryData(sgqlc.types.Interface): + """Metadata for an audit entry with action repo.*""" + + __schema__ = github_schema + __field_names__ = ("repository", "repository_name", "repository_resource_path", "repository_url") + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository associated with the action""" + + repository_name = sgqlc.types.Field(String, graphql_name="repositoryName") + """The name of the repository""" + + repository_resource_path = sgqlc.types.Field(URI, graphql_name="repositoryResourcePath") + """The HTTP path for the repository""" + + repository_url = sgqlc.types.Field(URI, graphql_name="repositoryUrl") + """The HTTP URL for the repository""" + + +class RepositoryDiscussionAuthor(sgqlc.types.Interface): + """Represents an author of discussions in repositories.""" + + __schema__ = github_schema + __field_names__ = ("repository_discussions",) + repository_discussions = sgqlc.types.Field( + sgqlc.types.non_null("DiscussionConnection"), + graphql_name="repositoryDiscussions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(DiscussionOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"}), + ), + ("repository_id", sgqlc.types.Arg(ID, graphql_name="repositoryId", default=None)), + ("answered", sgqlc.types.Arg(Boolean, graphql_name="answered", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(DiscussionState)), graphql_name="states", default=())), + ) + ), + ) + """Discussions this user has started. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`DiscussionOrder`): Ordering options for discussions + returned from the connection. (default: `{field: CREATED_AT, + direction: DESC}`) + * `repository_id` (`ID`): Filter discussions to only those in a + specific repository. + * `answered` (`Boolean`): Filter discussions to only those that + have been answered or not. Defaults to including both answered + and unanswered discussions. (default: `null`) + * `states` (`[DiscussionState!]`): A list of states to filter the + discussions by. (default: `[]`) + """ + + +class RepositoryDiscussionCommentAuthor(sgqlc.types.Interface): + """Represents an author of discussion comments in repositories.""" + + __schema__ = github_schema + __field_names__ = ("repository_discussion_comments",) + repository_discussion_comments = sgqlc.types.Field( + sgqlc.types.non_null("DiscussionCommentConnection"), + graphql_name="repositoryDiscussionComments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("repository_id", sgqlc.types.Arg(ID, graphql_name="repositoryId", default=None)), + ("only_answers", sgqlc.types.Arg(Boolean, graphql_name="onlyAnswers", default=False)), + ) + ), + ) + """Discussion comments this user has authored. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `repository_id` (`ID`): Filter discussion comments to only those + in a specific repository. + * `only_answers` (`Boolean`): Filter discussion comments to only + those that were marked as the answer (default: `false`) + """ + + +class RepositoryInfo(sgqlc.types.Interface): + """A subset of repository info.""" + + __schema__ = github_schema + __field_names__ = ( + "archived_at", + "created_at", + "description", + "description_html", + "fork_count", + "has_discussions_enabled", + "has_issues_enabled", + "has_projects_enabled", + "has_wiki_enabled", + "homepage_url", + "is_archived", + "is_fork", + "is_in_organization", + "is_locked", + "is_mirror", + "is_private", + "is_template", + "license_info", + "lock_reason", + "mirror_url", + "name", + "name_with_owner", + "open_graph_image_url", + "owner", + "pushed_at", + "resource_path", + "short_description_html", + "updated_at", + "url", + "uses_custom_open_graph_image", + "visibility", + ) + archived_at = sgqlc.types.Field(DateTime, graphql_name="archivedAt") + """Identifies the date and time when the repository was archived.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The description of the repository.""" + + description_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="descriptionHTML") + """The description of the repository rendered to HTML.""" + + fork_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="forkCount") + """Returns how many forks there are of this repository in the whole + network. + """ + + has_discussions_enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasDiscussionsEnabled") + """Indicates if the repository has the Discussions feature enabled.""" + + has_issues_enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasIssuesEnabled") + """Indicates if the repository has issues feature enabled.""" + + has_projects_enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasProjectsEnabled") + """Indicates if the repository has the Projects feature enabled.""" + + has_wiki_enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasWikiEnabled") + """Indicates if the repository has wiki feature enabled.""" + + homepage_url = sgqlc.types.Field(URI, graphql_name="homepageUrl") + """The repository's URL.""" + + is_archived = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isArchived") + """Indicates if the repository is unmaintained.""" + + is_fork = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isFork") + """Identifies if the repository is a fork.""" + + is_in_organization = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isInOrganization") + """Indicates if a repository is either owned by an organization, or + is a private fork of an organization repository. + """ + + is_locked = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isLocked") + """Indicates if the repository has been locked or not.""" + + is_mirror = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isMirror") + """Identifies if the repository is a mirror.""" + + is_private = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPrivate") + """Identifies if the repository is private or internal.""" + + is_template = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isTemplate") + """Identifies if the repository is a template that can be used to + generate new repositories. + """ + + license_info = sgqlc.types.Field("License", graphql_name="licenseInfo") + """The license associated with the repository""" + + lock_reason = sgqlc.types.Field(RepositoryLockReason, graphql_name="lockReason") + """The reason the repository has been locked.""" + + mirror_url = sgqlc.types.Field(URI, graphql_name="mirrorUrl") + """The repository's original mirror URL.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the repository.""" + + name_with_owner = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="nameWithOwner") + """The repository's name with owner.""" + + open_graph_image_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="openGraphImageUrl") + """The image used to represent this repository in Open Graph data.""" + + owner = sgqlc.types.Field(sgqlc.types.non_null("RepositoryOwner"), graphql_name="owner") + """The User owner of the repository.""" + + pushed_at = sgqlc.types.Field(DateTime, graphql_name="pushedAt") + """Identifies the date and time when the repository was last pushed + to. + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this repository""" + + short_description_html = sgqlc.types.Field( + sgqlc.types.non_null(HTML), + graphql_name="shortDescriptionHTML", + args=sgqlc.types.ArgDict((("limit", sgqlc.types.Arg(Int, graphql_name="limit", default=200)),)), + ) + """A description of the repository, rendered to HTML without any + links in it. + + Arguments: + + * `limit` (`Int`): How many characters to return. (default: `200`) + """ + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this repository""" + + uses_custom_open_graph_image = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="usesCustomOpenGraphImage") + """Whether this repository has a custom image to use with Open Graph + as opposed to being represented by the owner's avatar. + """ + + visibility = sgqlc.types.Field(sgqlc.types.non_null(RepositoryVisibility), graphql_name="visibility") + """Indicates the repository's visibility level.""" + + +class RepositoryNode(sgqlc.types.Interface): + """Represents a object that belongs to a repository.""" + + __schema__ = github_schema + __field_names__ = ("repository",) + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository associated with this node.""" + + +class RepositoryOwner(sgqlc.types.Interface): + """Represents an owner of a Repository.""" + + __schema__ = github_schema + __field_names__ = ("avatar_url", "id", "login", "repositories", "repository", "resource_path", "url") + avatar_url = sgqlc.types.Field( + sgqlc.types.non_null(URI), + graphql_name="avatarUrl", + args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=None)),)), + ) + """A URL pointing to the owner's public avatar. + + Arguments: + + * `size` (`Int`): The size of the resulting square image. + """ + + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The username used to login.""" + + repositories = sgqlc.types.Field( + sgqlc.types.non_null("RepositoryConnection"), + graphql_name="repositories", + args=sgqlc.types.ArgDict( + ( + ("privacy", sgqlc.types.Arg(RepositoryPrivacy, graphql_name="privacy", default=None)), + ("order_by", sgqlc.types.Arg(RepositoryOrder, graphql_name="orderBy", default=None)), + ("affiliations", sgqlc.types.Arg(sgqlc.types.list_of(RepositoryAffiliation), graphql_name="affiliations", default=None)), + ( + "owner_affiliations", + sgqlc.types.Arg( + sgqlc.types.list_of(RepositoryAffiliation), graphql_name="ownerAffiliations", default=("OWNER", "COLLABORATOR") + ), + ), + ("is_locked", sgqlc.types.Arg(Boolean, graphql_name="isLocked", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("is_fork", sgqlc.types.Arg(Boolean, graphql_name="isFork", default=None)), + ) + ), + ) + """A list of repositories that the user owns. + + Arguments: + + * `privacy` (`RepositoryPrivacy`): If non-null, filters + repositories according to privacy + * `order_by` (`RepositoryOrder`): Ordering options for + repositories returned from the connection + * `affiliations` (`[RepositoryAffiliation]`): Array of viewer's + affiliation options for repositories returned from the + connection. For example, OWNER will include only repositories + that the current viewer owns. + * `owner_affiliations` (`[RepositoryAffiliation]`): Array of + owner's affiliation options for repositories returned from the + connection. For example, OWNER will include only repositories + that the organization or user being viewed owns. (default: + `[OWNER, COLLABORATOR]`) + * `is_locked` (`Boolean`): If non-null, filters repositories + according to whether they have been locked + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `is_fork` (`Boolean`): If non-null, filters repositories + according to whether they are forks of another repository + """ + + repository = sgqlc.types.Field( + "Repository", + graphql_name="repository", + args=sgqlc.types.ArgDict( + ( + ("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)), + ("follow_renames", sgqlc.types.Arg(Boolean, graphql_name="followRenames", default=True)), + ) + ), + ) + """Find Repository. + + Arguments: + + * `name` (`String!`): Name of Repository to find. + * `follow_renames` (`Boolean`): Follow repository renames. If + disabled, a repository referenced by its old name will return an + error. (default: `true`) + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP URL for the owner.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for the owner.""" + + +class RequirableByPullRequest(sgqlc.types.Interface): + """Represents a type that can be required by a pull request for + merging. + """ + + __schema__ = github_schema + __field_names__ = ("is_required",) + is_required = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), + graphql_name="isRequired", + args=sgqlc.types.ArgDict( + ( + ("pull_request_id", sgqlc.types.Arg(ID, graphql_name="pullRequestId", default=None)), + ("pull_request_number", sgqlc.types.Arg(Int, graphql_name="pullRequestNumber", default=None)), + ) + ), + ) + """Whether this is required to pass before merging for a specific + pull request. + + Arguments: + + * `pull_request_id` (`ID`): The id of the pull request this is + required for + * `pull_request_number` (`Int`): The number of the pull request + this is required for + """ + + +class Sponsorable(sgqlc.types.Interface): + """Entities that can sponsor or be sponsored through GitHub Sponsors.""" + + __schema__ = github_schema + __field_names__ = ( + "estimated_next_sponsors_payout_in_cents", + "has_sponsors_listing", + "is_sponsored_by", + "is_sponsoring_viewer", + "monthly_estimated_sponsors_income_in_cents", + "sponsoring", + "sponsors", + "sponsors_activities", + "sponsors_listing", + "sponsorship_for_viewer_as_sponsor", + "sponsorship_for_viewer_as_sponsorable", + "sponsorship_newsletters", + "sponsorships_as_maintainer", + "sponsorships_as_sponsor", + "total_sponsorship_amount_as_sponsor_in_cents", + "viewer_can_sponsor", + "viewer_is_sponsoring", + ) + estimated_next_sponsors_payout_in_cents = sgqlc.types.Field( + sgqlc.types.non_null(Int), graphql_name="estimatedNextSponsorsPayoutInCents" + ) + """The estimated next GitHub Sponsors payout for this + user/organization in cents (USD). + """ + + has_sponsors_listing = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasSponsorsListing") + """True if this user/organization has a GitHub Sponsors listing.""" + + is_sponsored_by = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), + graphql_name="isSponsoredBy", + args=sgqlc.types.ArgDict( + (("account_login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="accountLogin", default=None)),) + ), + ) + """Whether the given account is sponsoring this user/organization. + + Arguments: + + * `account_login` (`String!`): The target account's login. + """ + + is_sponsoring_viewer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isSponsoringViewer") + """True if the viewer is sponsored by this user/organization.""" + + monthly_estimated_sponsors_income_in_cents = sgqlc.types.Field( + sgqlc.types.non_null(Int), graphql_name="monthlyEstimatedSponsorsIncomeInCents" + ) + """The estimated monthly GitHub Sponsors income for this + user/organization in cents (USD). + """ + + sponsoring = sgqlc.types.Field( + sgqlc.types.non_null("SponsorConnection"), + graphql_name="sponsoring", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(SponsorOrder, graphql_name="orderBy", default={"field": "RELEVANCE", "direction": "DESC"})), + ) + ), + ) + """List of users and organizations this entity is sponsoring. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`SponsorOrder`): Ordering options for the users and + organizations returned from the connection. (default: `{field: + RELEVANCE, direction: DESC}`) + """ + + sponsors = sgqlc.types.Field( + sgqlc.types.non_null("SponsorConnection"), + graphql_name="sponsors", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("tier_id", sgqlc.types.Arg(ID, graphql_name="tierId", default=None)), + ("order_by", sgqlc.types.Arg(SponsorOrder, graphql_name="orderBy", default={"field": "RELEVANCE", "direction": "DESC"})), + ) + ), + ) + """List of sponsors for this user or organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `tier_id` (`ID`): If given, will filter for sponsors at the + given tier. Will only return sponsors whose tier the viewer is + permitted to see. + * `order_by` (`SponsorOrder`): Ordering options for sponsors + returned from the connection. (default: `{field: RELEVANCE, + direction: DESC}`) + """ + + sponsors_activities = sgqlc.types.Field( + sgqlc.types.non_null("SponsorsActivityConnection"), + graphql_name="sponsorsActivities", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("period", sgqlc.types.Arg(SponsorsActivityPeriod, graphql_name="period", default="MONTH")), + ("since", sgqlc.types.Arg(DateTime, graphql_name="since", default=None)), + ("until", sgqlc.types.Arg(DateTime, graphql_name="until", default=None)), + ( + "order_by", + sgqlc.types.Arg(SponsorsActivityOrder, graphql_name="orderBy", default={"field": "TIMESTAMP", "direction": "DESC"}), + ), + ( + "actions", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(SponsorsActivityAction)), graphql_name="actions", default=()), + ), + ("include_as_sponsor", sgqlc.types.Arg(Boolean, graphql_name="includeAsSponsor", default=False)), + ) + ), + ) + """Events involving this sponsorable, such as new sponsorships. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `period` (`SponsorsActivityPeriod`): Filter activities returned + to only those that occurred in the most recent specified time + period. Set to ALL to avoid filtering by when the activity + occurred. Will be ignored if `since` or `until` is given. + (default: `MONTH`) + * `since` (`DateTime`): Filter activities to those that occurred + on or after this time. + * `until` (`DateTime`): Filter activities to those that occurred + before this time. + * `order_by` (`SponsorsActivityOrder`): Ordering options for + activity returned from the connection. (default: `{field: + TIMESTAMP, direction: DESC}`) + * `actions` (`[SponsorsActivityAction!]`): Filter activities to + only the specified actions. (default: `[]`) + * `include_as_sponsor` (`Boolean`): Whether to include those + events where this sponsorable acted as the sponsor. Defaults to + only including events where this sponsorable was the recipient + of a sponsorship. (default: `false`) + """ + + sponsors_listing = sgqlc.types.Field("SponsorsListing", graphql_name="sponsorsListing") + """The GitHub Sponsors listing for this user or organization.""" + + sponsorship_for_viewer_as_sponsor = sgqlc.types.Field( + "Sponsorship", + graphql_name="sponsorshipForViewerAsSponsor", + args=sgqlc.types.ArgDict((("active_only", sgqlc.types.Arg(Boolean, graphql_name="activeOnly", default=True)),)), + ) + """The sponsorship from the viewer to this user/organization; that + is, the sponsorship where you're the sponsor. + + Arguments: + + * `active_only` (`Boolean`): Whether to return the sponsorship + only if it's still active. Pass false to get the viewer's + sponsorship back even if it has been cancelled. (default: + `true`) + """ + + sponsorship_for_viewer_as_sponsorable = sgqlc.types.Field( + "Sponsorship", + graphql_name="sponsorshipForViewerAsSponsorable", + args=sgqlc.types.ArgDict((("active_only", sgqlc.types.Arg(Boolean, graphql_name="activeOnly", default=True)),)), + ) + """The sponsorship from this user/organization to the viewer; that + is, the sponsorship you're receiving. + + Arguments: + + * `active_only` (`Boolean`): Whether to return the sponsorship + only if it's still active. Pass false to get the sponsorship + back even if it has been cancelled. (default: `true`) + """ + + sponsorship_newsletters = sgqlc.types.Field( + sgqlc.types.non_null("SponsorshipNewsletterConnection"), + graphql_name="sponsorshipNewsletters", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg( + SponsorshipNewsletterOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"} + ), + ), + ) + ), + ) + """List of sponsorship updates sent from this sponsorable to + sponsors. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`SponsorshipNewsletterOrder`): Ordering options for + sponsorship updates returned from the connection. (default: + `{field: CREATED_AT, direction: DESC}`) + """ + + sponsorships_as_maintainer = sgqlc.types.Field( + sgqlc.types.non_null("SponsorshipConnection"), + graphql_name="sponsorshipsAsMaintainer", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("include_private", sgqlc.types.Arg(Boolean, graphql_name="includePrivate", default=False)), + ("order_by", sgqlc.types.Arg(SponsorshipOrder, graphql_name="orderBy", default=None)), + ("active_only", sgqlc.types.Arg(Boolean, graphql_name="activeOnly", default=True)), + ) + ), + ) + """The sponsorships where this user or organization is the maintainer + receiving the funds. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `include_private` (`Boolean`): Whether or not to include private + sponsorships in the result set (default: `false`) + * `order_by` (`SponsorshipOrder`): Ordering options for + sponsorships returned from this connection. If left blank, the + sponsorships will be ordered based on relevancy to the viewer. + * `active_only` (`Boolean`): Whether to include only sponsorships + that are active right now, versus all sponsorships this + maintainer has ever received. (default: `true`) + """ + + sponsorships_as_sponsor = sgqlc.types.Field( + sgqlc.types.non_null("SponsorshipConnection"), + graphql_name="sponsorshipsAsSponsor", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(SponsorshipOrder, graphql_name="orderBy", default=None)), + ( + "maintainer_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="maintainerLogins", default=None), + ), + ("active_only", sgqlc.types.Arg(Boolean, graphql_name="activeOnly", default=True)), + ) + ), + ) + """The sponsorships where this user or organization is the funder. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`SponsorshipOrder`): Ordering options for + sponsorships returned from this connection. If left blank, the + sponsorships will be ordered based on relevancy to the viewer. + * `maintainer_logins` (`[String!]`): Filter sponsorships returned + to those for the specified maintainers. That is, the recipient + of the sponsorship is a user or organization with one of the + given logins. + * `active_only` (`Boolean`): Whether to include only sponsorships + that are active right now, versus all sponsorships this sponsor + has ever made. (default: `true`) + """ + + total_sponsorship_amount_as_sponsor_in_cents = sgqlc.types.Field( + Int, + graphql_name="totalSponsorshipAmountAsSponsorInCents", + args=sgqlc.types.ArgDict( + ( + ("since", sgqlc.types.Arg(DateTime, graphql_name="since", default=None)), + ("until", sgqlc.types.Arg(DateTime, graphql_name="until", default=None)), + ( + "sponsorable_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="sponsorableLogins", default=()), + ), + ) + ), + ) + """The amount in United States cents (e.g., 500 = $5.00 USD) that + this entity has spent on GitHub to fund sponsorships. Only returns + a value when viewed by the user themselves or by a user who can + manage sponsorships for the requested organization. + + Arguments: + + * `since` (`DateTime`): Filter payments to those that occurred on + or after this time. + * `until` (`DateTime`): Filter payments to those that occurred + before this time. + * `sponsorable_logins` (`[String!]`): Filter payments to those + made to the users or organizations with the specified usernames. + (default: `[]`) + """ + + viewer_can_sponsor = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanSponsor") + """Whether or not the viewer is able to sponsor this + user/organization. + """ + + viewer_is_sponsoring = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerIsSponsoring") + """True if the viewer is sponsoring this user/organization.""" + + +class Starrable(sgqlc.types.Interface): + """Things that can be starred.""" + + __schema__ = github_schema + __field_names__ = ("id", "stargazer_count", "stargazers", "viewer_has_starred") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + stargazer_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="stargazerCount") + """Returns a count of how many stargazers there are on this object""" + + stargazers = sgqlc.types.Field( + sgqlc.types.non_null("StargazerConnection"), + graphql_name="stargazers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(StarOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """A list of users who have starred this starrable. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`StarOrder`): Order for connection + """ + + viewer_has_starred = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerHasStarred") + """Returns a boolean indicating whether the viewing user has starred + this starrable. + """ + + +class Subscribable(sgqlc.types.Interface): + """Entities that can be subscribed to for web and email + notifications. + """ + + __schema__ = github_schema + __field_names__ = ("id", "viewer_can_subscribe", "viewer_subscription") + id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name="id") + + viewer_can_subscribe = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanSubscribe") + """Check if the viewer is able to change their subscription status + for the repository. + """ + + viewer_subscription = sgqlc.types.Field(SubscriptionState, graphql_name="viewerSubscription") + """Identifies if the viewer is watching, not watching, or ignoring + the subscribable entity. + """ + + +class TeamAuditEntryData(sgqlc.types.Interface): + """Metadata for an audit entry with action team.*""" + + __schema__ = github_schema + __field_names__ = ("team", "team_name", "team_resource_path", "team_url") + team = sgqlc.types.Field("Team", graphql_name="team") + """The team associated with the action""" + + team_name = sgqlc.types.Field(String, graphql_name="teamName") + """The name of the team""" + + team_resource_path = sgqlc.types.Field(URI, graphql_name="teamResourcePath") + """The HTTP path for this team""" + + team_url = sgqlc.types.Field(URI, graphql_name="teamUrl") + """The HTTP URL for this team""" + + +class TopicAuditEntryData(sgqlc.types.Interface): + """Metadata for an audit entry with a topic.""" + + __schema__ = github_schema + __field_names__ = ("topic", "topic_name") + topic = sgqlc.types.Field("Topic", graphql_name="topic") + """The name of the topic added to the repository""" + + topic_name = sgqlc.types.Field(String, graphql_name="topicName") + """The name of the topic added to the repository""" + + +class UniformResourceLocatable(sgqlc.types.Interface): + """Represents a type that can be retrieved by a URL.""" + + __schema__ = github_schema + __field_names__ = ("resource_path", "url") + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTML path to this resource.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The URL to this resource.""" + + +class Updatable(sgqlc.types.Interface): + """Entities that can be updated.""" + + __schema__ = github_schema + __field_names__ = ("viewer_can_update",) + viewer_can_update = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanUpdate") + """Check if the current viewer can update this object.""" + + +class UpdatableComment(sgqlc.types.Interface): + """Comments that can be updated.""" + + __schema__ = github_schema + __field_names__ = ("viewer_cannot_update_reasons",) + viewer_cannot_update_reasons = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CommentCannotUpdateReason))), graphql_name="viewerCannotUpdateReasons" + ) + """Reasons why the current viewer can not update this comment.""" + + +class Votable(sgqlc.types.Interface): + """A subject that may be upvoted.""" + + __schema__ = github_schema + __field_names__ = ("upvote_count", "viewer_can_upvote", "viewer_has_upvoted") + upvote_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="upvoteCount") + """Number of upvotes that this subject has received.""" + + viewer_can_upvote = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanUpvote") + """Whether or not the current user can add or remove an upvote on + this subject. + """ + + viewer_has_upvoted = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerHasUpvoted") + """Whether or not the current user has already upvoted this subject.""" + + +class AbortQueuedMigrationsPayload(sgqlc.types.Type): + """Autogenerated return type of AbortQueuedMigrations""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "success") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + success = sgqlc.types.Field(Boolean, graphql_name="success") + """Did the operation succeed?""" + + +class AcceptEnterpriseAdministratorInvitationPayload(sgqlc.types.Type): + """Autogenerated return type of + AcceptEnterpriseAdministratorInvitation + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "invitation", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + invitation = sgqlc.types.Field("EnterpriseAdministratorInvitation", graphql_name="invitation") + """The invitation that was accepted.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of accepting an administrator + invitation. + """ + + +class AcceptTopicSuggestionPayload(sgqlc.types.Type): + """Autogenerated return type of AcceptTopicSuggestion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "topic") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + topic = sgqlc.types.Field("Topic", graphql_name="topic") + """The accepted topic.""" + + +class ActorLocation(sgqlc.types.Type): + """Location information for an actor""" + + __schema__ = github_schema + __field_names__ = ("city", "country", "country_code", "region", "region_code") + city = sgqlc.types.Field(String, graphql_name="city") + """City""" + + country = sgqlc.types.Field(String, graphql_name="country") + """Country name""" + + country_code = sgqlc.types.Field(String, graphql_name="countryCode") + """Country code""" + + region = sgqlc.types.Field(String, graphql_name="region") + """Region name""" + + region_code = sgqlc.types.Field(String, graphql_name="regionCode") + """Region or state code""" + + +class AddAssigneesToAssignablePayload(sgqlc.types.Type): + """Autogenerated return type of AddAssigneesToAssignable""" + + __schema__ = github_schema + __field_names__ = ("assignable", "client_mutation_id") + assignable = sgqlc.types.Field(Assignable, graphql_name="assignable") + """The item that was assigned.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class AddCommentPayload(sgqlc.types.Type): + """Autogenerated return type of AddComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "comment_edge", "subject", "timeline_edge") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + comment_edge = sgqlc.types.Field("IssueCommentEdge", graphql_name="commentEdge") + """The edge from the subject's comment connection.""" + + subject = sgqlc.types.Field(Node, graphql_name="subject") + """The subject""" + + timeline_edge = sgqlc.types.Field("IssueTimelineItemEdge", graphql_name="timelineEdge") + """The edge from the subject's timeline connection.""" + + +class AddDiscussionCommentPayload(sgqlc.types.Type): + """Autogenerated return type of AddDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + comment = sgqlc.types.Field("DiscussionComment", graphql_name="comment") + """The newly created discussion comment.""" + + +class AddDiscussionPollVotePayload(sgqlc.types.Type): + """Autogenerated return type of AddDiscussionPollVote""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "poll_option") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + poll_option = sgqlc.types.Field("DiscussionPollOption", graphql_name="pollOption") + """The poll option that a vote was added to.""" + + +class AddEnterpriseOrganizationMemberPayload(sgqlc.types.Type): + """Autogenerated return type of AddEnterpriseOrganizationMember""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "users") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + users = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("User")), graphql_name="users") + """The users who were added to the organization.""" + + +class AddEnterpriseSupportEntitlementPayload(sgqlc.types.Type): + """Autogenerated return type of AddEnterpriseSupportEntitlement""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of adding the support entitlement.""" + + +class AddLabelsToLabelablePayload(sgqlc.types.Type): + """Autogenerated return type of AddLabelsToLabelable""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "labelable") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + labelable = sgqlc.types.Field(Labelable, graphql_name="labelable") + """The item that was labeled.""" + + +class AddProjectCardPayload(sgqlc.types.Type): + """Autogenerated return type of AddProjectCard""" + + __schema__ = github_schema + __field_names__ = ("card_edge", "client_mutation_id", "project_column") + card_edge = sgqlc.types.Field("ProjectCardEdge", graphql_name="cardEdge") + """The edge from the ProjectColumn's card connection.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_column = sgqlc.types.Field("ProjectColumn", graphql_name="projectColumn") + """The ProjectColumn""" + + +class AddProjectColumnPayload(sgqlc.types.Type): + """Autogenerated return type of AddProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "column_edge", "project") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + column_edge = sgqlc.types.Field("ProjectColumnEdge", graphql_name="columnEdge") + """The edge from the project's column connection.""" + + project = sgqlc.types.Field("Project", graphql_name="project") + """The project""" + + +class AddProjectV2DraftIssuePayload(sgqlc.types.Type): + """Autogenerated return type of AddProjectV2DraftIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_item") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_item = sgqlc.types.Field("ProjectV2Item", graphql_name="projectItem") + """The draft issue added to the project.""" + + +class AddProjectV2ItemByIdPayload(sgqlc.types.Type): + """Autogenerated return type of AddProjectV2ItemById""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "item") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + item = sgqlc.types.Field("ProjectV2Item", graphql_name="item") + """The item added to the project.""" + + +class AddPullRequestReviewCommentPayload(sgqlc.types.Type): + """Autogenerated return type of AddPullRequestReviewComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "comment", "comment_edge") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + comment = sgqlc.types.Field("PullRequestReviewComment", graphql_name="comment") + """The newly created comment.""" + + comment_edge = sgqlc.types.Field("PullRequestReviewCommentEdge", graphql_name="commentEdge") + """The edge from the review's comment connection.""" + + +class AddPullRequestReviewPayload(sgqlc.types.Type): + """Autogenerated return type of AddPullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request_review", "review_edge") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request_review = sgqlc.types.Field("PullRequestReview", graphql_name="pullRequestReview") + """The newly created pull request review.""" + + review_edge = sgqlc.types.Field("PullRequestReviewEdge", graphql_name="reviewEdge") + """The edge from the pull request's review connection.""" + + +class AddPullRequestReviewThreadPayload(sgqlc.types.Type): + """Autogenerated return type of AddPullRequestReviewThread""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "thread") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + thread = sgqlc.types.Field("PullRequestReviewThread", graphql_name="thread") + """The newly created thread.""" + + +class AddReactionPayload(sgqlc.types.Type): + """Autogenerated return type of AddReaction""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "reaction", "reaction_groups", "subject") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + reaction = sgqlc.types.Field("Reaction", graphql_name="reaction") + """The reaction object.""" + + reaction_groups = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("ReactionGroup")), graphql_name="reactionGroups") + """The reaction groups for the subject.""" + + subject = sgqlc.types.Field(Reactable, graphql_name="subject") + """The reactable subject.""" + + +class AddStarPayload(sgqlc.types.Type): + """Autogenerated return type of AddStar""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "starrable") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + starrable = sgqlc.types.Field(Starrable, graphql_name="starrable") + """The starrable.""" + + +class AddUpvotePayload(sgqlc.types.Type): + """Autogenerated return type of AddUpvote""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "subject") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + subject = sgqlc.types.Field(Votable, graphql_name="subject") + """The votable subject.""" + + +class AddVerifiableDomainPayload(sgqlc.types.Type): + """Autogenerated return type of AddVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "domain") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + domain = sgqlc.types.Field("VerifiableDomain", graphql_name="domain") + """The verifiable domain that was added.""" + + +class ApproveDeploymentsPayload(sgqlc.types.Type): + """Autogenerated return type of ApproveDeployments""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "deployments") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + deployments = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("Deployment")), graphql_name="deployments") + """The affected deployments.""" + + +class ApproveVerifiableDomainPayload(sgqlc.types.Type): + """Autogenerated return type of ApproveVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "domain") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + domain = sgqlc.types.Field("VerifiableDomain", graphql_name="domain") + """The verifiable domain that was approved.""" + + +class ArchiveProjectV2ItemPayload(sgqlc.types.Type): + """Autogenerated return type of ArchiveProjectV2Item""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "item") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + item = sgqlc.types.Field("ProjectV2Item", graphql_name="item") + """The item archived from the project.""" + + +class ArchiveRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of ArchiveRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository that was marked as archived.""" + + +class AutoMergeRequest(sgqlc.types.Type): + """Represents an auto-merge request for a pull request""" + + __schema__ = github_schema + __field_names__ = ("author_email", "commit_body", "commit_headline", "enabled_at", "enabled_by", "merge_method", "pull_request") + author_email = sgqlc.types.Field(String, graphql_name="authorEmail") + """The email address of the author of this auto-merge request.""" + + commit_body = sgqlc.types.Field(String, graphql_name="commitBody") + """The commit message of the auto-merge request. If a merge queue is + required by the base branch, this value will be set by the merge + queue when merging. + """ + + commit_headline = sgqlc.types.Field(String, graphql_name="commitHeadline") + """The commit title of the auto-merge request. If a merge queue is + required by the base branch, this value will be set by the merge + queue when merging + """ + + enabled_at = sgqlc.types.Field(DateTime, graphql_name="enabledAt") + """When was this auto-merge request was enabled.""" + + enabled_by = sgqlc.types.Field(Actor, graphql_name="enabledBy") + """The actor who created the auto-merge request.""" + + merge_method = sgqlc.types.Field(sgqlc.types.non_null(PullRequestMergeMethod), graphql_name="mergeMethod") + """The merge method of the auto-merge request. If a merge queue is + required by the base branch, this value will be set by the merge + queue when merging. + """ + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """The pull request that this auto-merge request is set against.""" + + +class Blame(sgqlc.types.Type): + """Represents a Git blame.""" + + __schema__ = github_schema + __field_names__ = ("ranges",) + ranges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("BlameRange"))), graphql_name="ranges") + """The list of ranges from a Git blame.""" + + +class BlameRange(sgqlc.types.Type): + """Represents a range of information from a Git blame.""" + + __schema__ = github_schema + __field_names__ = ("age", "commit", "ending_line", "starting_line") + age = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="age") + """Identifies the recency of the change, from 1 (new) to 10 (old). + This is calculated as a 2-quantile and determines the length of + distance between the median age of all the changes in the file and + the recency of the current range's change. + """ + + commit = sgqlc.types.Field(sgqlc.types.non_null("Commit"), graphql_name="commit") + """Identifies the line author""" + + ending_line = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="endingLine") + """The ending line for the range""" + + starting_line = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="startingLine") + """The starting line for the range""" + + +class BranchNamePatternParameters(sgqlc.types.Type): + """Parameters to be used for the branch_name_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class BranchProtectionRuleConflict(sgqlc.types.Type): + """A conflict between two branch protection rules.""" + + __schema__ = github_schema + __field_names__ = ("branch_protection_rule", "conflicting_branch_protection_rule", "ref") + branch_protection_rule = sgqlc.types.Field("BranchProtectionRule", graphql_name="branchProtectionRule") + """Identifies the branch protection rule.""" + + conflicting_branch_protection_rule = sgqlc.types.Field("BranchProtectionRule", graphql_name="conflictingBranchProtectionRule") + """Identifies the conflicting branch protection rule.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """Identifies the branch ref that has conflicting rules""" + + +class BranchProtectionRuleConflictConnection(sgqlc.types.relay.Connection): + """The connection type for BranchProtectionRuleConflict.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("BranchProtectionRuleConflictEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(BranchProtectionRuleConflict), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class BranchProtectionRuleConflictEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(BranchProtectionRuleConflict, graphql_name="node") + """The item at the end of the edge.""" + + +class BranchProtectionRuleConnection(sgqlc.types.relay.Connection): + """The connection type for BranchProtectionRule.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("BranchProtectionRuleEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("BranchProtectionRule"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class BranchProtectionRuleEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("BranchProtectionRule", graphql_name="node") + """The item at the end of the edge.""" + + +class BypassForcePushAllowanceConnection(sgqlc.types.relay.Connection): + """The connection type for BypassForcePushAllowance.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("BypassForcePushAllowanceEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("BypassForcePushAllowance"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class BypassForcePushAllowanceEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("BypassForcePushAllowance", graphql_name="node") + """The item at the end of the edge.""" + + +class BypassPullRequestAllowanceConnection(sgqlc.types.relay.Connection): + """The connection type for BypassPullRequestAllowance.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("BypassPullRequestAllowanceEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("BypassPullRequestAllowance"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class BypassPullRequestAllowanceEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("BypassPullRequestAllowance", graphql_name="node") + """The item at the end of the edge.""" + + +class CVSS(sgqlc.types.Type): + """The Common Vulnerability Scoring System""" + + __schema__ = github_schema + __field_names__ = ("score", "vector_string") + score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="score") + """The CVSS score associated with this advisory""" + + vector_string = sgqlc.types.Field(String, graphql_name="vectorString") + """The CVSS vector string associated with this advisory""" + + +class CWEConnection(sgqlc.types.relay.Connection): + """The connection type for CWE.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CWEEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CWE"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CWEEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CWE", graphql_name="node") + """The item at the end of the edge.""" + + +class CancelEnterpriseAdminInvitationPayload(sgqlc.types.Type): + """Autogenerated return type of CancelEnterpriseAdminInvitation""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "invitation", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + invitation = sgqlc.types.Field("EnterpriseAdministratorInvitation", graphql_name="invitation") + """The invitation that was canceled.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of canceling an administrator + invitation. + """ + + +class CancelSponsorshipPayload(sgqlc.types.Type): + """Autogenerated return type of CancelSponsorship""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsors_tier") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsors_tier = sgqlc.types.Field("SponsorsTier", graphql_name="sponsorsTier") + """The tier that was being used at the time of cancellation.""" + + +class ChangeUserStatusPayload(sgqlc.types.Type): + """Autogenerated return type of ChangeUserStatus""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "status") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + status = sgqlc.types.Field("UserStatus", graphql_name="status") + """Your updated status.""" + + +class CheckAnnotation(sgqlc.types.Type): + """A single check annotation.""" + + __schema__ = github_schema + __field_names__ = ("annotation_level", "blob_url", "database_id", "location", "message", "path", "raw_details", "title") + annotation_level = sgqlc.types.Field(CheckAnnotationLevel, graphql_name="annotationLevel") + """The annotation's severity level.""" + + blob_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="blobUrl") + """The path to the file that this annotation was made on.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + location = sgqlc.types.Field(sgqlc.types.non_null("CheckAnnotationSpan"), graphql_name="location") + """The position of this annotation.""" + + message = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="message") + """The annotation's message.""" + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path that this annotation was made on.""" + + raw_details = sgqlc.types.Field(String, graphql_name="rawDetails") + """Additional information about the annotation.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The annotation's title""" + + +class CheckAnnotationConnection(sgqlc.types.relay.Connection): + """The connection type for CheckAnnotation.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CheckAnnotationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(CheckAnnotation), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CheckAnnotationEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(CheckAnnotation, graphql_name="node") + """The item at the end of the edge.""" + + +class CheckAnnotationPosition(sgqlc.types.Type): + """A character position in a check annotation.""" + + __schema__ = github_schema + __field_names__ = ("column", "line") + column = sgqlc.types.Field(Int, graphql_name="column") + """Column number (1 indexed).""" + + line = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="line") + """Line number (1 indexed).""" + + +class CheckAnnotationSpan(sgqlc.types.Type): + """An inclusive pair of positions for a check annotation.""" + + __schema__ = github_schema + __field_names__ = ("end", "start") + end = sgqlc.types.Field(sgqlc.types.non_null(CheckAnnotationPosition), graphql_name="end") + """End position (inclusive).""" + + start = sgqlc.types.Field(sgqlc.types.non_null(CheckAnnotationPosition), graphql_name="start") + """Start position (inclusive).""" + + +class CheckRunConnection(sgqlc.types.relay.Connection): + """The connection type for CheckRun.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CheckRunEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CheckRun"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CheckRunEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CheckRun", graphql_name="node") + """The item at the end of the edge.""" + + +class CheckRunStateCount(sgqlc.types.Type): + """Represents a count of the state of a check run.""" + + __schema__ = github_schema + __field_names__ = ("count", "state") + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="count") + """The number of check runs with this state.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(CheckRunState), graphql_name="state") + """The state of a check run.""" + + +class CheckStep(sgqlc.types.Type): + """A single check step.""" + + __schema__ = github_schema + __field_names__ = ("completed_at", "conclusion", "external_id", "name", "number", "seconds_to_completion", "started_at", "status") + completed_at = sgqlc.types.Field(DateTime, graphql_name="completedAt") + """Identifies the date and time when the check step was completed.""" + + conclusion = sgqlc.types.Field(CheckConclusionState, graphql_name="conclusion") + """The conclusion of the check step.""" + + external_id = sgqlc.types.Field(String, graphql_name="externalId") + """A reference for the check step on the integrator's system.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The step's name.""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """The index of the step in the list of steps of the parent check + run. + """ + + seconds_to_completion = sgqlc.types.Field(Int, graphql_name="secondsToCompletion") + """Number of seconds to completion.""" + + started_at = sgqlc.types.Field(DateTime, graphql_name="startedAt") + """Identifies the date and time when the check step was started.""" + + status = sgqlc.types.Field(sgqlc.types.non_null(CheckStatusState), graphql_name="status") + """The current status of the check step.""" + + +class CheckStepConnection(sgqlc.types.relay.Connection): + """The connection type for CheckStep.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CheckStepEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(CheckStep), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CheckStepEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(CheckStep, graphql_name="node") + """The item at the end of the edge.""" + + +class CheckSuiteConnection(sgqlc.types.relay.Connection): + """The connection type for CheckSuite.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CheckSuiteEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CheckSuite"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CheckSuiteEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CheckSuite", graphql_name="node") + """The item at the end of the edge.""" + + +class ClearLabelsFromLabelablePayload(sgqlc.types.Type): + """Autogenerated return type of ClearLabelsFromLabelable""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "labelable") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + labelable = sgqlc.types.Field(Labelable, graphql_name="labelable") + """The item that was unlabeled.""" + + +class ClearProjectV2ItemFieldValuePayload(sgqlc.types.Type): + """Autogenerated return type of ClearProjectV2ItemFieldValue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2_item") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2_item = sgqlc.types.Field("ProjectV2Item", graphql_name="projectV2Item") + """The updated item.""" + + +class CloneProjectPayload(sgqlc.types.Type): + """Autogenerated return type of CloneProject""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "job_status_id", "project") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + job_status_id = sgqlc.types.Field(String, graphql_name="jobStatusId") + """The id of the JobStatus for populating cloned fields.""" + + project = sgqlc.types.Field("Project", graphql_name="project") + """The new cloned project.""" + + +class CloneTemplateRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of CloneTemplateRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The new repository.""" + + +class CloseDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of CloseDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The discussion that was closed.""" + + +class CloseIssuePayload(sgqlc.types.Type): + """Autogenerated return type of CloseIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The issue that was closed.""" + + +class ClosePullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of ClosePullRequest""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that was closed.""" + + +class CommitAuthorEmailPatternParameters(sgqlc.types.Type): + """Parameters to be used for the commit_author_email_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class CommitCommentConnection(sgqlc.types.relay.Connection): + """The connection type for CommitComment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CommitCommentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CommitComment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CommitCommentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CommitComment", graphql_name="node") + """The item at the end of the edge.""" + + +class CommitConnection(sgqlc.types.relay.Connection): + """The connection type for Commit.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CommitEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Commit"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CommitContributionsByRepository(sgqlc.types.Type): + """This aggregates commits made by a user within one repository.""" + + __schema__ = github_schema + __field_names__ = ("contributions", "repository", "resource_path", "url") + contributions = sgqlc.types.Field( + sgqlc.types.non_null("CreatedCommitContributionConnection"), + graphql_name="contributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(CommitContributionOrder, graphql_name="orderBy", default={"field": "OCCURRED_AT", "direction": "DESC"}), + ), + ) + ), + ) + """The commit contributions, each representing a day. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`CommitContributionOrder`): Ordering options for + commit contributions returned from the connection. (default: + `{field: OCCURRED_AT, direction: DESC}`) + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository in which the commits were made.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for the user's commits to the repository in this + time range. + """ + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for the user's commits to the repository in this time + range. + """ + + +class CommitEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Commit", graphql_name="node") + """The item at the end of the edge.""" + + +class CommitHistoryConnection(sgqlc.types.relay.Connection): + """The connection type for Commit.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of(CommitEdge), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Commit"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CommitMessagePatternParameters(sgqlc.types.Type): + """Parameters to be used for the commit_message_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class CommitterEmailPatternParameters(sgqlc.types.Type): + """Parameters to be used for the committer_email_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class ComparisonCommitConnection(sgqlc.types.relay.Connection): + """The connection type for Commit.""" + + __schema__ = github_schema + __field_names__ = ("author_count", "edges", "nodes", "page_info", "total_count") + author_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="authorCount") + """The total count of authors and co-authors across all commits.""" + + edges = sgqlc.types.Field(sgqlc.types.list_of(CommitEdge), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Commit"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ContributionCalendar(sgqlc.types.Type): + """A calendar of contributions made on GitHub by a user.""" + + __schema__ = github_schema + __field_names__ = ("colors", "is_halloween", "months", "total_contributions", "weeks") + colors = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="colors") + """A list of hex color codes used in this calendar. The darker the + color, the more contributions it represents. + """ + + is_halloween = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isHalloween") + """Determine if the color set was chosen because it's currently + Halloween. + """ + + months = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("ContributionCalendarMonth"))), graphql_name="months" + ) + """A list of the months of contributions in this calendar.""" + + total_contributions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalContributions") + """The count of total contributions in the calendar.""" + + weeks = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("ContributionCalendarWeek"))), graphql_name="weeks" + ) + """A list of the weeks of contributions in this calendar.""" + + +class ContributionCalendarDay(sgqlc.types.Type): + """Represents a single day of contributions on GitHub by a user.""" + + __schema__ = github_schema + __field_names__ = ("color", "contribution_count", "contribution_level", "date", "weekday") + color = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="color") + """The hex color code that represents how many contributions were + made on this day compared to others in the calendar. + """ + + contribution_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="contributionCount") + """How many contributions were made by the user on this day.""" + + contribution_level = sgqlc.types.Field(sgqlc.types.non_null(ContributionLevel), graphql_name="contributionLevel") + """Indication of contributions, relative to other days. Can be used + to indicate which color to represent this day on a calendar. + """ + + date = sgqlc.types.Field(sgqlc.types.non_null(Date), graphql_name="date") + """The day this square represents.""" + + weekday = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="weekday") + """A number representing which day of the week this square + represents, e.g., 1 is Monday. + """ + + +class ContributionCalendarMonth(sgqlc.types.Type): + """A month of contributions in a user's contribution graph.""" + + __schema__ = github_schema + __field_names__ = ("first_day", "name", "total_weeks", "year") + first_day = sgqlc.types.Field(sgqlc.types.non_null(Date), graphql_name="firstDay") + """The date of the first day of this month.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the month.""" + + total_weeks = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalWeeks") + """How many weeks started in this month.""" + + year = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="year") + """The year the month occurred in.""" + + +class ContributionCalendarWeek(sgqlc.types.Type): + """A week of contributions in a user's contribution graph.""" + + __schema__ = github_schema + __field_names__ = ("contribution_days", "first_day") + contribution_days = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ContributionCalendarDay))), graphql_name="contributionDays" + ) + """The days of contributions in this week.""" + + first_day = sgqlc.types.Field(sgqlc.types.non_null(Date), graphql_name="firstDay") + """The date of the earliest square in this week.""" + + +class ContributionsCollection(sgqlc.types.Type): + """A contributions collection aggregates contributions such as opened + issues and commits created by a user. + """ + + __schema__ = github_schema + __field_names__ = ( + "commit_contributions_by_repository", + "contribution_calendar", + "contribution_years", + "does_end_in_current_month", + "earliest_restricted_contribution_date", + "ended_at", + "first_issue_contribution", + "first_pull_request_contribution", + "first_repository_contribution", + "has_activity_in_the_past", + "has_any_contributions", + "has_any_restricted_contributions", + "is_single_day", + "issue_contributions", + "issue_contributions_by_repository", + "joined_git_hub_contribution", + "latest_restricted_contribution_date", + "most_recent_collection_with_activity", + "most_recent_collection_without_activity", + "popular_issue_contribution", + "popular_pull_request_contribution", + "pull_request_contributions", + "pull_request_contributions_by_repository", + "pull_request_review_contributions", + "pull_request_review_contributions_by_repository", + "repository_contributions", + "restricted_contributions_count", + "started_at", + "total_commit_contributions", + "total_issue_contributions", + "total_pull_request_contributions", + "total_pull_request_review_contributions", + "total_repositories_with_contributed_commits", + "total_repositories_with_contributed_issues", + "total_repositories_with_contributed_pull_request_reviews", + "total_repositories_with_contributed_pull_requests", + "total_repository_contributions", + "user", + ) + commit_contributions_by_repository = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CommitContributionsByRepository))), + graphql_name="commitContributionsByRepository", + args=sgqlc.types.ArgDict((("max_repositories", sgqlc.types.Arg(Int, graphql_name="maxRepositories", default=25)),)), + ) + """Commit contributions made by the user, grouped by repository. + + Arguments: + + * `max_repositories` (`Int`): How many repositories should be + included. (default: `25`) + """ + + contribution_calendar = sgqlc.types.Field(sgqlc.types.non_null(ContributionCalendar), graphql_name="contributionCalendar") + """A calendar of this user's contributions on GitHub.""" + + contribution_years = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(Int))), graphql_name="contributionYears" + ) + """The years the user has been making contributions with the most + recent year first. + """ + + does_end_in_current_month = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="doesEndInCurrentMonth") + """Determine if this collection's time span ends in the current + month. + """ + + earliest_restricted_contribution_date = sgqlc.types.Field(Date, graphql_name="earliestRestrictedContributionDate") + """The date of the first restricted contribution the user made in + this time period. Can only be non-null when the user has enabled + private contribution counts. + """ + + ended_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="endedAt") + """The ending date and time of this collection.""" + + first_issue_contribution = sgqlc.types.Field("CreatedIssueOrRestrictedContribution", graphql_name="firstIssueContribution") + """The first issue the user opened on GitHub. This will be null if + that issue was opened outside the collection's time range and + ignoreTimeRange is false. If the issue is not visible but the user + has opted to show private contributions, a RestrictedContribution + will be returned. + """ + + first_pull_request_contribution = sgqlc.types.Field( + "CreatedPullRequestOrRestrictedContribution", graphql_name="firstPullRequestContribution" + ) + """The first pull request the user opened on GitHub. This will be + null if that pull request was opened outside the collection's time + range and ignoreTimeRange is not true. If the pull request is not + visible but the user has opted to show private contributions, a + RestrictedContribution will be returned. + """ + + first_repository_contribution = sgqlc.types.Field( + "CreatedRepositoryOrRestrictedContribution", graphql_name="firstRepositoryContribution" + ) + """The first repository the user created on GitHub. This will be null + if that first repository was created outside the collection's time + range and ignoreTimeRange is false. If the repository is not + visible, then a RestrictedContribution is returned. + """ + + has_activity_in_the_past = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasActivityInThePast") + """Does the user have any more activity in the timeline that occurred + prior to the collection's time range? + """ + + has_any_contributions = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasAnyContributions") + """Determine if there are any contributions in this collection.""" + + has_any_restricted_contributions = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasAnyRestrictedContributions") + """Determine if the user made any contributions in this time frame + whose details are not visible because they were made in a private + repository. Can only be true if the user enabled private + contribution counts. + """ + + is_single_day = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isSingleDay") + """Whether or not the collector's time span is all within the same + day. + """ + + issue_contributions = sgqlc.types.Field( + sgqlc.types.non_null("CreatedIssueContributionConnection"), + graphql_name="issueContributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ("order_by", sgqlc.types.Arg(ContributionOrder, graphql_name="orderBy", default={"direction": "DESC"})), + ) + ), + ) + """A list of issues the user opened. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `exclude_first` (`Boolean`): Should the user's first issue ever + be excluded from the result. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + issue be excluded from the result. (default: `false`) + * `order_by` (`ContributionOrder`): Ordering options for + contributions returned from the connection. (default: + `{direction: DESC}`) + """ + + issue_contributions_by_repository = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("IssueContributionsByRepository"))), + graphql_name="issueContributionsByRepository", + args=sgqlc.types.ArgDict( + ( + ("max_repositories", sgqlc.types.Arg(Int, graphql_name="maxRepositories", default=25)), + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ) + ), + ) + """Issue contributions made by the user, grouped by repository. + + Arguments: + + * `max_repositories` (`Int`): How many repositories should be + included. (default: `25`) + * `exclude_first` (`Boolean`): Should the user's first issue ever + be excluded from the result. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + issue be excluded from the result. (default: `false`) + """ + + joined_git_hub_contribution = sgqlc.types.Field("JoinedGitHubContribution", graphql_name="joinedGitHubContribution") + """When the user signed up for GitHub. This will be null if that sign + up date falls outside the collection's time range and + ignoreTimeRange is false. + """ + + latest_restricted_contribution_date = sgqlc.types.Field(Date, graphql_name="latestRestrictedContributionDate") + """The date of the most recent restricted contribution the user made + in this time period. Can only be non-null when the user has + enabled private contribution counts. + """ + + most_recent_collection_with_activity = sgqlc.types.Field("ContributionsCollection", graphql_name="mostRecentCollectionWithActivity") + """When this collection's time range does not include any activity + from the user, use this to get a different collection from an + earlier time range that does have activity. + """ + + most_recent_collection_without_activity = sgqlc.types.Field( + "ContributionsCollection", graphql_name="mostRecentCollectionWithoutActivity" + ) + """Returns a different contributions collection from an earlier time + range than this one that does not have any contributions. + """ + + popular_issue_contribution = sgqlc.types.Field("CreatedIssueContribution", graphql_name="popularIssueContribution") + """The issue the user opened on GitHub that received the most + comments in the specified time frame. + """ + + popular_pull_request_contribution = sgqlc.types.Field("CreatedPullRequestContribution", graphql_name="popularPullRequestContribution") + """The pull request the user opened on GitHub that received the most + comments in the specified time frame. + """ + + pull_request_contributions = sgqlc.types.Field( + sgqlc.types.non_null("CreatedPullRequestContributionConnection"), + graphql_name="pullRequestContributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ("order_by", sgqlc.types.Arg(ContributionOrder, graphql_name="orderBy", default={"direction": "DESC"})), + ) + ), + ) + """Pull request contributions made by the user. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `exclude_first` (`Boolean`): Should the user's first pull + request ever be excluded from the result. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + pull request be excluded from the result. (default: `false`) + * `order_by` (`ContributionOrder`): Ordering options for + contributions returned from the connection. (default: + `{direction: DESC}`) + """ + + pull_request_contributions_by_repository = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("PullRequestContributionsByRepository"))), + graphql_name="pullRequestContributionsByRepository", + args=sgqlc.types.ArgDict( + ( + ("max_repositories", sgqlc.types.Arg(Int, graphql_name="maxRepositories", default=25)), + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ) + ), + ) + """Pull request contributions made by the user, grouped by + repository. + + Arguments: + + * `max_repositories` (`Int`): How many repositories should be + included. (default: `25`) + * `exclude_first` (`Boolean`): Should the user's first pull + request ever be excluded from the result. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + pull request be excluded from the result. (default: `false`) + """ + + pull_request_review_contributions = sgqlc.types.Field( + sgqlc.types.non_null("CreatedPullRequestReviewContributionConnection"), + graphql_name="pullRequestReviewContributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(ContributionOrder, graphql_name="orderBy", default={"direction": "DESC"})), + ) + ), + ) + """Pull request review contributions made by the user. Returns the + most recently submitted review for each PR reviewed by the user. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ContributionOrder`): Ordering options for + contributions returned from the connection. (default: + `{direction: DESC}`) + """ + + pull_request_review_contributions_by_repository = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("PullRequestReviewContributionsByRepository"))), + graphql_name="pullRequestReviewContributionsByRepository", + args=sgqlc.types.ArgDict((("max_repositories", sgqlc.types.Arg(Int, graphql_name="maxRepositories", default=25)),)), + ) + """Pull request review contributions made by the user, grouped by + repository. + + Arguments: + + * `max_repositories` (`Int`): How many repositories should be + included. (default: `25`) + """ + + repository_contributions = sgqlc.types.Field( + sgqlc.types.non_null("CreatedRepositoryContributionConnection"), + graphql_name="repositoryContributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("order_by", sgqlc.types.Arg(ContributionOrder, graphql_name="orderBy", default={"direction": "DESC"})), + ) + ), + ) + """A list of repositories owned by the user that the user created in + this time range. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `exclude_first` (`Boolean`): Should the user's first repository + ever be excluded from the result. (default: `false`) + * `order_by` (`ContributionOrder`): Ordering options for + contributions returned from the connection. (default: + `{direction: DESC}`) + """ + + restricted_contributions_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="restrictedContributionsCount") + """A count of contributions made by the user that the viewer cannot + access. Only non-zero when the user has chosen to share their + private contribution counts. + """ + + started_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="startedAt") + """The beginning date and time of this collection.""" + + total_commit_contributions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCommitContributions") + """How many commits were made by the user in this time span.""" + + total_issue_contributions = sgqlc.types.Field( + sgqlc.types.non_null(Int), + graphql_name="totalIssueContributions", + args=sgqlc.types.ArgDict( + ( + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ) + ), + ) + """How many issues the user opened. + + Arguments: + + * `exclude_first` (`Boolean`): Should the user's first issue ever + be excluded from this count. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + issue be excluded from this count. (default: `false`) + """ + + total_pull_request_contributions = sgqlc.types.Field( + sgqlc.types.non_null(Int), + graphql_name="totalPullRequestContributions", + args=sgqlc.types.ArgDict( + ( + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ) + ), + ) + """How many pull requests the user opened. + + Arguments: + + * `exclude_first` (`Boolean`): Should the user's first pull + request ever be excluded from this count. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + pull request be excluded from this count. (default: `false`) + """ + + total_pull_request_review_contributions = sgqlc.types.Field( + sgqlc.types.non_null(Int), graphql_name="totalPullRequestReviewContributions" + ) + """How many pull request reviews the user left.""" + + total_repositories_with_contributed_commits = sgqlc.types.Field( + sgqlc.types.non_null(Int), graphql_name="totalRepositoriesWithContributedCommits" + ) + """How many different repositories the user committed to.""" + + total_repositories_with_contributed_issues = sgqlc.types.Field( + sgqlc.types.non_null(Int), + graphql_name="totalRepositoriesWithContributedIssues", + args=sgqlc.types.ArgDict( + ( + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ) + ), + ) + """How many different repositories the user opened issues in. + + Arguments: + + * `exclude_first` (`Boolean`): Should the user's first issue ever + be excluded from this count. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + issue be excluded from this count. (default: `false`) + """ + + total_repositories_with_contributed_pull_request_reviews = sgqlc.types.Field( + sgqlc.types.non_null(Int), graphql_name="totalRepositoriesWithContributedPullRequestReviews" + ) + """How many different repositories the user left pull request reviews + in. + """ + + total_repositories_with_contributed_pull_requests = sgqlc.types.Field( + sgqlc.types.non_null(Int), + graphql_name="totalRepositoriesWithContributedPullRequests", + args=sgqlc.types.ArgDict( + ( + ("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)), + ("exclude_popular", sgqlc.types.Arg(Boolean, graphql_name="excludePopular", default=False)), + ) + ), + ) + """How many different repositories the user opened pull requests in. + + Arguments: + + * `exclude_first` (`Boolean`): Should the user's first pull + request ever be excluded from this count. (default: `false`) + * `exclude_popular` (`Boolean`): Should the user's most commented + pull request be excluded from this count. (default: `false`) + """ + + total_repository_contributions = sgqlc.types.Field( + sgqlc.types.non_null(Int), + graphql_name="totalRepositoryContributions", + args=sgqlc.types.ArgDict((("exclude_first", sgqlc.types.Arg(Boolean, graphql_name="excludeFirst", default=False)),)), + ) + """How many repositories the user created. + + Arguments: + + * `exclude_first` (`Boolean`): Should the user's first repository + ever be excluded from this count. (default: `false`) + """ + + user = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="user") + """The user who made the contributions in this collection.""" + + +class ConvertProjectCardNoteToIssuePayload(sgqlc.types.Type): + """Autogenerated return type of ConvertProjectCardNoteToIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_card") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_card = sgqlc.types.Field("ProjectCard", graphql_name="projectCard") + """The updated ProjectCard.""" + + +class ConvertPullRequestToDraftPayload(sgqlc.types.Type): + """Autogenerated return type of ConvertPullRequestToDraft""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that is now a draft.""" + + +class CopyProjectV2Payload(sgqlc.types.Type): + """Autogenerated return type of CopyProjectV2""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2 = sgqlc.types.Field("ProjectV2", graphql_name="projectV2") + """The copied project.""" + + +class CreateAttributionInvitationPayload(sgqlc.types.Type): + """Autogenerated return type of CreateAttributionInvitation""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "owner", "source", "target") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + owner = sgqlc.types.Field("Organization", graphql_name="owner") + """The owner scoping the reattributable data.""" + + source = sgqlc.types.Field("Claimable", graphql_name="source") + """The account owning the data to reattribute.""" + + target = sgqlc.types.Field("Claimable", graphql_name="target") + """The account which may claim the data.""" + + +class CreateBranchProtectionRulePayload(sgqlc.types.Type): + """Autogenerated return type of CreateBranchProtectionRule""" + + __schema__ = github_schema + __field_names__ = ("branch_protection_rule", "client_mutation_id") + branch_protection_rule = sgqlc.types.Field("BranchProtectionRule", graphql_name="branchProtectionRule") + """The newly created BranchProtectionRule.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateCheckRunPayload(sgqlc.types.Type): + """Autogenerated return type of CreateCheckRun""" + + __schema__ = github_schema + __field_names__ = ("check_run", "client_mutation_id") + check_run = sgqlc.types.Field("CheckRun", graphql_name="checkRun") + """The newly created check run.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateCheckSuitePayload(sgqlc.types.Type): + """Autogenerated return type of CreateCheckSuite""" + + __schema__ = github_schema + __field_names__ = ("check_suite", "client_mutation_id") + check_suite = sgqlc.types.Field("CheckSuite", graphql_name="checkSuite") + """The newly created check suite.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class CreateCommitOnBranchPayload(sgqlc.types.Type): + """Autogenerated return type of CreateCommitOnBranch""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "commit", "ref") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + commit = sgqlc.types.Field("Commit", graphql_name="commit") + """The new commit.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """The ref which has been updated to point to the new commit.""" + + +class CreateDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of CreateDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The discussion that was just created.""" + + +class CreateEnterpriseOrganizationPayload(sgqlc.types.Type): + """Autogenerated return type of CreateEnterpriseOrganization""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "organization") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise that owns the created organization.""" + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization that was created.""" + + +class CreateEnvironmentPayload(sgqlc.types.Type): + """Autogenerated return type of CreateEnvironment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "environment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + environment = sgqlc.types.Field("Environment", graphql_name="environment") + """The new or existing environment.""" + + +class CreateIpAllowListEntryPayload(sgqlc.types.Type): + """Autogenerated return type of CreateIpAllowListEntry""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "ip_allow_list_entry") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + ip_allow_list_entry = sgqlc.types.Field("IpAllowListEntry", graphql_name="ipAllowListEntry") + """The IP allow list entry that was created.""" + + +class CreateIssuePayload(sgqlc.types.Type): + """Autogenerated return type of CreateIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The new issue.""" + + +class CreateLinkedBranchPayload(sgqlc.types.Type): + """Autogenerated return type of CreateLinkedBranch""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "linked_branch") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + linked_branch = sgqlc.types.Field("LinkedBranch", graphql_name="linkedBranch") + """The new branch issue reference.""" + + +class CreateMigrationSourcePayload(sgqlc.types.Type): + """Autogenerated return type of CreateMigrationSource""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "migration_source") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + migration_source = sgqlc.types.Field("MigrationSource", graphql_name="migrationSource") + """The created migration source.""" + + +class CreateProjectPayload(sgqlc.types.Type): + """Autogenerated return type of CreateProject""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project = sgqlc.types.Field("Project", graphql_name="project") + """The new project.""" + + +class CreateProjectV2FieldPayload(sgqlc.types.Type): + """Autogenerated return type of CreateProjectV2Field""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2_field") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2_field = sgqlc.types.Field("ProjectV2FieldConfiguration", graphql_name="projectV2Field") + """The new field.""" + + +class CreateProjectV2Payload(sgqlc.types.Type): + """Autogenerated return type of CreateProjectV2""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2 = sgqlc.types.Field("ProjectV2", graphql_name="projectV2") + """The new project.""" + + +class CreatePullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of CreatePullRequest""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The new pull request.""" + + +class CreateRefPayload(sgqlc.types.Type): + """Autogenerated return type of CreateRef""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "ref") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """The newly created ref.""" + + +class CreateRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of CreateRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The new repository.""" + + +class CreateRepositoryRulesetPayload(sgqlc.types.Type): + """Autogenerated return type of CreateRepositoryRuleset""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "ruleset") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + ruleset = sgqlc.types.Field("RepositoryRuleset", graphql_name="ruleset") + """The newly created Ruleset.""" + + +class CreateSponsorsListingPayload(sgqlc.types.Type): + """Autogenerated return type of CreateSponsorsListing""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsors_listing") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsors_listing = sgqlc.types.Field("SponsorsListing", graphql_name="sponsorsListing") + """The new GitHub Sponsors profile.""" + + +class CreateSponsorsTierPayload(sgqlc.types.Type): + """Autogenerated return type of CreateSponsorsTier""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsors_tier") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsors_tier = sgqlc.types.Field("SponsorsTier", graphql_name="sponsorsTier") + """The new tier.""" + + +class CreateSponsorshipPayload(sgqlc.types.Type): + """Autogenerated return type of CreateSponsorship""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsorship") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsorship = sgqlc.types.Field("Sponsorship", graphql_name="sponsorship") + """The sponsorship that was started.""" + + +class CreateSponsorshipsPayload(sgqlc.types.Type): + """Autogenerated return type of CreateSponsorships""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsorables") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsorables = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Sponsorable)), graphql_name="sponsorables") + """The users and organizations who received a sponsorship.""" + + +class CreateTeamDiscussionCommentPayload(sgqlc.types.Type): + """Autogenerated return type of CreateTeamDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "team_discussion_comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + team_discussion_comment = sgqlc.types.Field("TeamDiscussionComment", graphql_name="teamDiscussionComment") + """The new comment.""" + + +class CreateTeamDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of CreateTeamDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "team_discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + team_discussion = sgqlc.types.Field("TeamDiscussion", graphql_name="teamDiscussion") + """The new discussion.""" + + +class CreatedCommitContributionConnection(sgqlc.types.relay.Connection): + """The connection type for CreatedCommitContribution.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CreatedCommitContributionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CreatedCommitContribution"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of commits across days and repositories + in the connection. + """ + + +class CreatedCommitContributionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CreatedCommitContribution", graphql_name="node") + """The item at the end of the edge.""" + + +class CreatedIssueContributionConnection(sgqlc.types.relay.Connection): + """The connection type for CreatedIssueContribution.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CreatedIssueContributionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CreatedIssueContribution"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CreatedIssueContributionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CreatedIssueContribution", graphql_name="node") + """The item at the end of the edge.""" + + +class CreatedPullRequestContributionConnection(sgqlc.types.relay.Connection): + """The connection type for CreatedPullRequestContribution.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CreatedPullRequestContributionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CreatedPullRequestContribution"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CreatedPullRequestContributionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CreatedPullRequestContribution", graphql_name="node") + """The item at the end of the edge.""" + + +class CreatedPullRequestReviewContributionConnection(sgqlc.types.relay.Connection): + """The connection type for CreatedPullRequestReviewContribution.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CreatedPullRequestReviewContributionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CreatedPullRequestReviewContribution"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CreatedPullRequestReviewContributionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CreatedPullRequestReviewContribution", graphql_name="node") + """The item at the end of the edge.""" + + +class CreatedRepositoryContributionConnection(sgqlc.types.relay.Connection): + """The connection type for CreatedRepositoryContribution.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("CreatedRepositoryContributionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("CreatedRepositoryContribution"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class CreatedRepositoryContributionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("CreatedRepositoryContribution", graphql_name="node") + """The item at the end of the edge.""" + + +class DeclineTopicSuggestionPayload(sgqlc.types.Type): + """Autogenerated return type of DeclineTopicSuggestion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "topic") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + topic = sgqlc.types.Field("Topic", graphql_name="topic") + """The declined topic.""" + + +class DeleteBranchProtectionRulePayload(sgqlc.types.Type): + """Autogenerated return type of DeleteBranchProtectionRule""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteDeploymentPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteDeployment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteDiscussionCommentPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + comment = sgqlc.types.Field("DiscussionComment", graphql_name="comment") + """The discussion comment that was just deleted.""" + + +class DeleteDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The discussion that was just deleted.""" + + +class DeleteEnvironmentPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteEnvironment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteIpAllowListEntryPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteIpAllowListEntry""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "ip_allow_list_entry") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + ip_allow_list_entry = sgqlc.types.Field("IpAllowListEntry", graphql_name="ipAllowListEntry") + """The IP allow list entry that was deleted.""" + + +class DeleteIssueCommentPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteIssueComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteIssuePayload(sgqlc.types.Type): + """Autogenerated return type of DeleteIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository the issue belonged to""" + + +class DeleteLinkedBranchPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteLinkedBranch""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The issue the linked branch was unlinked from.""" + + +class DeleteProjectCardPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteProjectCard""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "column", "deleted_card_id") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + column = sgqlc.types.Field("ProjectColumn", graphql_name="column") + """The column the deleted card was in.""" + + deleted_card_id = sgqlc.types.Field(ID, graphql_name="deletedCardId") + """The deleted card ID.""" + + +class DeleteProjectColumnPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "deleted_column_id", "project") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + deleted_column_id = sgqlc.types.Field(ID, graphql_name="deletedColumnId") + """The deleted column ID.""" + + project = sgqlc.types.Field("Project", graphql_name="project") + """The project the deleted column was in.""" + + +class DeleteProjectPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteProject""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "owner") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + owner = sgqlc.types.Field(ProjectOwner, graphql_name="owner") + """The repository or organization the project was removed from.""" + + +class DeleteProjectV2FieldPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteProjectV2Field""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2_field") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2_field = sgqlc.types.Field("ProjectV2FieldConfiguration", graphql_name="projectV2Field") + """The deleted field.""" + + +class DeleteProjectV2ItemPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteProjectV2Item""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "deleted_item_id") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + deleted_item_id = sgqlc.types.Field(ID, graphql_name="deletedItemId") + """The ID of the deleted item.""" + + +class DeleteProjectV2Payload(sgqlc.types.Type): + """Autogenerated return type of DeleteProjectV2""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2 = sgqlc.types.Field("ProjectV2", graphql_name="projectV2") + """The deleted Project.""" + + +class DeleteProjectV2WorkflowPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteProjectV2Workflow""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "deleted_workflow_id", "project_v2") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + deleted_workflow_id = sgqlc.types.Field(ID, graphql_name="deletedWorkflowId") + """The ID of the deleted workflow.""" + + project_v2 = sgqlc.types.Field("ProjectV2", graphql_name="projectV2") + """The project the deleted workflow was in.""" + + +class DeletePullRequestReviewCommentPayload(sgqlc.types.Type): + """Autogenerated return type of DeletePullRequestReviewComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request_review", "pull_request_review_comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request_review = sgqlc.types.Field("PullRequestReview", graphql_name="pullRequestReview") + """The pull request review the deleted comment belonged to.""" + + pull_request_review_comment = sgqlc.types.Field("PullRequestReviewComment", graphql_name="pullRequestReviewComment") + """The deleted pull request review comment.""" + + +class DeletePullRequestReviewPayload(sgqlc.types.Type): + """Autogenerated return type of DeletePullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request_review") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request_review = sgqlc.types.Field("PullRequestReview", graphql_name="pullRequestReview") + """The deleted pull request review.""" + + +class DeleteRefPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteRef""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteRepositoryRulesetPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteRepositoryRuleset""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteTeamDiscussionCommentPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteTeamDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteTeamDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteTeamDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id",) + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class DeleteVerifiableDomainPayload(sgqlc.types.Type): + """Autogenerated return type of DeleteVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "owner") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + owner = sgqlc.types.Field("VerifiableDomainOwner", graphql_name="owner") + """The owning account from which the domain was deleted.""" + + +class DependabotUpdateError(sgqlc.types.Type): + """An error produced from a Dependabot Update""" + + __schema__ = github_schema + __field_names__ = ("body", "error_type", "title") + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The body of the error""" + + error_type = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="errorType") + """The error code""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the error""" + + +class DeployKeyConnection(sgqlc.types.relay.Connection): + """The connection type for DeployKey.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DeployKeyEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("DeployKey"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DeployKeyEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("DeployKey", graphql_name="node") + """The item at the end of the edge.""" + + +class DeploymentConnection(sgqlc.types.relay.Connection): + """The connection type for Deployment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DeploymentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Deployment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DeploymentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Deployment", graphql_name="node") + """The item at the end of the edge.""" + + +class DeploymentProtectionRule(sgqlc.types.Type): + """A protection rule.""" + + __schema__ = github_schema + __field_names__ = ("database_id", "reviewers", "timeout", "type") + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + reviewers = sgqlc.types.Field( + sgqlc.types.non_null("DeploymentReviewerConnection"), + graphql_name="reviewers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The teams or users that can review the deployment + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + timeout = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="timeout") + """The timeout in minutes for this protection rule.""" + + type = sgqlc.types.Field(sgqlc.types.non_null(DeploymentProtectionRuleType), graphql_name="type") + """The type of protection rule.""" + + +class DeploymentProtectionRuleConnection(sgqlc.types.relay.Connection): + """The connection type for DeploymentProtectionRule.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DeploymentProtectionRuleEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(DeploymentProtectionRule), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DeploymentProtectionRuleEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(DeploymentProtectionRule, graphql_name="node") + """The item at the end of the edge.""" + + +class DeploymentRequest(sgqlc.types.Type): + """A request to deploy a workflow run to an environment.""" + + __schema__ = github_schema + __field_names__ = ("current_user_can_approve", "environment", "reviewers", "wait_timer", "wait_timer_started_at") + current_user_can_approve = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="currentUserCanApprove") + """Whether or not the current user can approve the deployment""" + + environment = sgqlc.types.Field(sgqlc.types.non_null("Environment"), graphql_name="environment") + """The target environment of the deployment""" + + reviewers = sgqlc.types.Field( + sgqlc.types.non_null("DeploymentReviewerConnection"), + graphql_name="reviewers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The teams or users that can review the deployment + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + wait_timer = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="waitTimer") + """The wait timer in minutes configured in the environment""" + + wait_timer_started_at = sgqlc.types.Field(DateTime, graphql_name="waitTimerStartedAt") + """The wait timer in minutes configured in the environment""" + + +class DeploymentRequestConnection(sgqlc.types.relay.Connection): + """The connection type for DeploymentRequest.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DeploymentRequestEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(DeploymentRequest), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DeploymentRequestEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(DeploymentRequest, graphql_name="node") + """The item at the end of the edge.""" + + +class DeploymentReviewConnection(sgqlc.types.relay.Connection): + """The connection type for DeploymentReview.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DeploymentReviewEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("DeploymentReview"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DeploymentReviewEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("DeploymentReview", graphql_name="node") + """The item at the end of the edge.""" + + +class DeploymentReviewerConnection(sgqlc.types.relay.Connection): + """The connection type for DeploymentReviewer.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DeploymentReviewerEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("DeploymentReviewer"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DeploymentReviewerEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("DeploymentReviewer", graphql_name="node") + """The item at the end of the edge.""" + + +class DeploymentStatusConnection(sgqlc.types.relay.Connection): + """The connection type for DeploymentStatus.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DeploymentStatusEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("DeploymentStatus"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DeploymentStatusEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("DeploymentStatus", graphql_name="node") + """The item at the end of the edge.""" + + +class DequeuePullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of DequeuePullRequest""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "merge_queue_entry") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + merge_queue_entry = sgqlc.types.Field("MergeQueueEntry", graphql_name="mergeQueueEntry") + """The merge queue entry of the dequeued pull request.""" + + +class DisablePullRequestAutoMergePayload(sgqlc.types.Type): + """Autogenerated return type of DisablePullRequestAutoMerge""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request auto merge was disabled on.""" + + +class DiscussionCategoryConnection(sgqlc.types.relay.Connection): + """The connection type for DiscussionCategory.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DiscussionCategoryEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("DiscussionCategory"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DiscussionCategoryEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("DiscussionCategory", graphql_name="node") + """The item at the end of the edge.""" + + +class DiscussionCommentConnection(sgqlc.types.relay.Connection): + """The connection type for DiscussionComment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DiscussionCommentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("DiscussionComment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DiscussionCommentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("DiscussionComment", graphql_name="node") + """The item at the end of the edge.""" + + +class DiscussionConnection(sgqlc.types.relay.Connection): + """The connection type for Discussion.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DiscussionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Discussion"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DiscussionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Discussion", graphql_name="node") + """The item at the end of the edge.""" + + +class DiscussionPollOptionConnection(sgqlc.types.relay.Connection): + """The connection type for DiscussionPollOption.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("DiscussionPollOptionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("DiscussionPollOption"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class DiscussionPollOptionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("DiscussionPollOption", graphql_name="node") + """The item at the end of the edge.""" + + +class DismissPullRequestReviewPayload(sgqlc.types.Type): + """Autogenerated return type of DismissPullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request_review") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request_review = sgqlc.types.Field("PullRequestReview", graphql_name="pullRequestReview") + """The dismissed pull request review.""" + + +class DismissRepositoryVulnerabilityAlertPayload(sgqlc.types.Type): + """Autogenerated return type of DismissRepositoryVulnerabilityAlert""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository_vulnerability_alert") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository_vulnerability_alert = sgqlc.types.Field("RepositoryVulnerabilityAlert", graphql_name="repositoryVulnerabilityAlert") + """The Dependabot alert that was dismissed""" + + +class EnablePullRequestAutoMergePayload(sgqlc.types.Type): + """Autogenerated return type of EnablePullRequestAutoMerge""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request auto-merge was enabled on.""" + + +class EnqueuePullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of EnqueuePullRequest""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "merge_queue_entry") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + merge_queue_entry = sgqlc.types.Field("MergeQueueEntry", graphql_name="mergeQueueEntry") + """The merge queue entry for the enqueued pull request.""" + + +class EnterpriseAdministratorConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseAdministratorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseAdministratorEdge(sgqlc.types.Type): + """A User who is an administrator of an enterprise.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "role") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("User", graphql_name="node") + """The item at the end of the edge.""" + + role = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseAdministratorRole), graphql_name="role") + """The role of the administrator.""" + + +class EnterpriseAdministratorInvitationConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseAdministratorInvitation.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseAdministratorInvitationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseAdministratorInvitation"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseAdministratorInvitationEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseAdministratorInvitation", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseBillingInfo(sgqlc.types.Type): + """Enterprise billing information visible to enterprise billing + managers and owners. + """ + + __schema__ = github_schema + __field_names__ = ( + "all_licensable_users_count", + "asset_packs", + "bandwidth_quota", + "bandwidth_usage", + "bandwidth_usage_percentage", + "storage_quota", + "storage_usage", + "storage_usage_percentage", + "total_available_licenses", + "total_licenses", + ) + all_licensable_users_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="allLicensableUsersCount") + """The number of licenseable users/emails across the enterprise.""" + + asset_packs = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="assetPacks") + """The number of data packs used by all organizations owned by the + enterprise. + """ + + bandwidth_quota = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="bandwidthQuota") + """The bandwidth quota in GB for all organizations owned by the + enterprise. + """ + + bandwidth_usage = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="bandwidthUsage") + """The bandwidth usage in GB for all organizations owned by the + enterprise. + """ + + bandwidth_usage_percentage = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="bandwidthUsagePercentage") + """The bandwidth usage as a percentage of the bandwidth quota.""" + + storage_quota = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="storageQuota") + """The storage quota in GB for all organizations owned by the + enterprise. + """ + + storage_usage = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="storageUsage") + """The storage usage in GB for all organizations owned by the + enterprise. + """ + + storage_usage_percentage = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="storageUsagePercentage") + """The storage usage as a percentage of the storage quota.""" + + total_available_licenses = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalAvailableLicenses") + """The number of available licenses across all owned organizations + based on the unique number of billable users. + """ + + total_licenses = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalLicenses") + """The total number of licenses allocated.""" + + +class EnterpriseFailedInvitationConnection(sgqlc.types.relay.Connection): + """The connection type for OrganizationInvitation.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count", "total_unique_user_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseFailedInvitationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("OrganizationInvitation"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + total_unique_user_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalUniqueUserCount") + """Identifies the total count of unique users in the connection.""" + + +class EnterpriseFailedInvitationEdge(sgqlc.types.Type): + """A failed invitation to be a member in an enterprise organization.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("OrganizationInvitation", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseMemberConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseMember.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseMemberEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseMember"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseMemberEdge(sgqlc.types.Type): + """A User who is a member of an enterprise through one or more + organizations. + """ + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseMember", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseOrganizationMembershipConnection(sgqlc.types.relay.Connection): + """The connection type for Organization.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseOrganizationMembershipEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Organization"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseOrganizationMembershipEdge(sgqlc.types.Type): + """An enterprise organization that a user is a member of.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "role") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Organization", graphql_name="node") + """The item at the end of the edge.""" + + role = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseUserAccountMembershipRole), graphql_name="role") + """The role of the user in the enterprise membership.""" + + +class EnterpriseOutsideCollaboratorConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseOutsideCollaboratorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseOutsideCollaboratorEdge(sgqlc.types.Type): + """A User who is an outside collaborator of an enterprise through one + or more organizations. + """ + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "repositories") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("User", graphql_name="node") + """The item at the end of the edge.""" + + repositories = sgqlc.types.Field( + sgqlc.types.non_null("EnterpriseRepositoryInfoConnection"), + graphql_name="repositories", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(RepositoryOrder, graphql_name="orderBy", default={"field": "NAME", "direction": "ASC"})), + ) + ), + ) + """The enterprise organization repositories this user is a member of. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`RepositoryOrder`): Ordering options for + repositories. (default: `{field: NAME, direction: ASC}`) + """ + + +class EnterpriseOwnerInfo(sgqlc.types.Type): + """Enterprise information visible to enterprise owners or enterprise + owners' personal access tokens (classic) with read:enterprise or + admin:enterprise scope. + """ + + __schema__ = github_schema + __field_names__ = ( + "admins", + "affiliated_users_with_two_factor_disabled", + "affiliated_users_with_two_factor_disabled_exist", + "allow_private_repository_forking_setting", + "allow_private_repository_forking_setting_organizations", + "allow_private_repository_forking_setting_policy_value", + "default_repository_permission_setting", + "default_repository_permission_setting_organizations", + "domains", + "enterprise_server_installations", + "failed_invitations", + "ip_allow_list_enabled_setting", + "ip_allow_list_entries", + "ip_allow_list_for_installed_apps_enabled_setting", + "is_updating_default_repository_permission", + "is_updating_two_factor_requirement", + "members_can_change_repository_visibility_setting", + "members_can_change_repository_visibility_setting_organizations", + "members_can_create_internal_repositories_setting", + "members_can_create_private_repositories_setting", + "members_can_create_public_repositories_setting", + "members_can_create_repositories_setting", + "members_can_create_repositories_setting_organizations", + "members_can_delete_issues_setting", + "members_can_delete_issues_setting_organizations", + "members_can_delete_repositories_setting", + "members_can_delete_repositories_setting_organizations", + "members_can_invite_collaborators_setting", + "members_can_invite_collaborators_setting_organizations", + "members_can_make_purchases_setting", + "members_can_update_protected_branches_setting", + "members_can_update_protected_branches_setting_organizations", + "members_can_view_dependency_insights_setting", + "members_can_view_dependency_insights_setting_organizations", + "notification_delivery_restriction_enabled_setting", + "oidc_provider", + "organization_projects_setting", + "organization_projects_setting_organizations", + "outside_collaborators", + "pending_admin_invitations", + "pending_collaborator_invitations", + "pending_member_invitations", + "repository_projects_setting", + "repository_projects_setting_organizations", + "saml_identity_provider", + "saml_identity_provider_setting_organizations", + "support_entitlements", + "team_discussions_setting", + "team_discussions_setting_organizations", + "two_factor_required_setting", + "two_factor_required_setting_organizations", + ) + admins = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseAdministratorConnection), + graphql_name="admins", + args=sgqlc.types.ArgDict( + ( + ( + "organization_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="organizationLogins", default=None), + ), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("role", sgqlc.types.Arg(EnterpriseAdministratorRole, graphql_name="role", default=None)), + ( + "order_by", + sgqlc.types.Arg(EnterpriseMemberOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"}), + ), + ("has_two_factor_enabled", sgqlc.types.Arg(Boolean, graphql_name="hasTwoFactorEnabled", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of all of the administrators for this enterprise. + + Arguments: + + * `organization_logins` (`[String!]`): Only return members within + the organizations with these logins + * `query` (`String`): The search string to look for. + * `role` (`EnterpriseAdministratorRole`): The role to filter by. + * `order_by` (`EnterpriseMemberOrder`): Ordering options for + administrators returned from the connection. (default: `{field: + LOGIN, direction: ASC}`) + * `has_two_factor_enabled` (`Boolean`): Only return administrators + with this two-factor authentication status. (default: `null`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + affiliated_users_with_two_factor_disabled = sgqlc.types.Field( + sgqlc.types.non_null("UserConnection"), + graphql_name="affiliatedUsersWithTwoFactorDisabled", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users in the enterprise who currently have two-factor + authentication disabled. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + affiliated_users_with_two_factor_disabled_exist = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), graphql_name="affiliatedUsersWithTwoFactorDisabledExist" + ) + """Whether or not affiliated users with two-factor authentication + disabled exist in the enterprise. + """ + + allow_private_repository_forking_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="allowPrivateRepositoryForkingSetting" + ) + """The setting value for whether private repository forking is + enabled for repositories in organizations in this enterprise. + """ + + allow_private_repository_forking_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="allowPrivateRepositoryForkingSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + private repository forking setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + allow_private_repository_forking_setting_policy_value = sgqlc.types.Field( + EnterpriseAllowPrivateRepositoryForkingPolicyValue, graphql_name="allowPrivateRepositoryForkingSettingPolicyValue" + ) + """The value for the allow private repository forking policy on the + enterprise. + """ + + default_repository_permission_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseDefaultRepositoryPermissionSettingValue), graphql_name="defaultRepositoryPermissionSetting" + ) + """The setting value for base repository permissions for + organizations in this enterprise. + """ + + default_repository_permission_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="defaultRepositoryPermissionSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(DefaultRepositoryPermissionField), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + base repository permission. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`DefaultRepositoryPermissionField!`): The permission to + find organizations for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + domains = sgqlc.types.Field( + sgqlc.types.non_null("VerifiableDomainConnection"), + graphql_name="domains", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("is_verified", sgqlc.types.Arg(Boolean, graphql_name="isVerified", default=None)), + ("is_approved", sgqlc.types.Arg(Boolean, graphql_name="isApproved", default=None)), + ( + "order_by", + sgqlc.types.Arg(VerifiableDomainOrder, graphql_name="orderBy", default={"field": "DOMAIN", "direction": "ASC"}), + ), + ) + ), + ) + """A list of domains owned by the enterprise. Visible to enterprise + owners or enterprise owners' personal access tokens (classic) with + admin:enterprise scope. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `is_verified` (`Boolean`): Filter whether or not the domain is + verified. (default: `null`) + * `is_approved` (`Boolean`): Filter whether or not the domain is + approved. (default: `null`) + * `order_by` (`VerifiableDomainOrder`): Ordering options for + verifiable domains returned. (default: `{field: DOMAIN, + direction: ASC}`) + """ + + enterprise_server_installations = sgqlc.types.Field( + sgqlc.types.non_null("EnterpriseServerInstallationConnection"), + graphql_name="enterpriseServerInstallations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("connected_only", sgqlc.types.Arg(Boolean, graphql_name="connectedOnly", default=False)), + ( + "order_by", + sgqlc.types.Arg( + EnterpriseServerInstallationOrder, graphql_name="orderBy", default={"field": "HOST_NAME", "direction": "ASC"} + ), + ), + ) + ), + ) + """Enterprise Server installations owned by the enterprise. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `connected_only` (`Boolean`): Whether or not to only return + installations discovered via GitHub Connect. (default: `false`) + * `order_by` (`EnterpriseServerInstallationOrder`): Ordering + options for Enterprise Server installations returned. (default: + `{field: HOST_NAME, direction: ASC}`) + """ + + failed_invitations = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseFailedInvitationConnection), + graphql_name="failedInvitations", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of failed invitations in the enterprise. + + Arguments: + + * `query` (`String`): The search string to look for. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + ip_allow_list_enabled_setting = sgqlc.types.Field( + sgqlc.types.non_null(IpAllowListEnabledSettingValue), graphql_name="ipAllowListEnabledSetting" + ) + """The setting value for whether the enterprise has an IP allow list + enabled. + """ + + ip_allow_list_entries = sgqlc.types.Field( + sgqlc.types.non_null("IpAllowListEntryConnection"), + graphql_name="ipAllowListEntries", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg( + IpAllowListEntryOrder, graphql_name="orderBy", default={"field": "ALLOW_LIST_VALUE", "direction": "ASC"} + ), + ), + ) + ), + ) + """The IP addresses that are allowed to access resources owned by the + enterprise. Visible to enterprise owners or enterprise owners' + personal access tokens (classic) with admin:enterprise scope. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`IpAllowListEntryOrder`): Ordering options for IP + allow list entries returned. (default: `{field: + ALLOW_LIST_VALUE, direction: ASC}`) + """ + + ip_allow_list_for_installed_apps_enabled_setting = sgqlc.types.Field( + sgqlc.types.non_null(IpAllowListForInstalledAppsEnabledSettingValue), graphql_name="ipAllowListForInstalledAppsEnabledSetting" + ) + """The setting value for whether the enterprise has IP allow list + configuration for installed GitHub Apps enabled. + """ + + is_updating_default_repository_permission = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), graphql_name="isUpdatingDefaultRepositoryPermission" + ) + """Whether or not the base repository permission is currently being + updated. + """ + + is_updating_two_factor_requirement = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isUpdatingTwoFactorRequirement") + """Whether the two-factor authentication requirement is currently + being enforced. + """ + + members_can_change_repository_visibility_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="membersCanChangeRepositoryVisibilitySetting" + ) + """The setting value for whether organization members with admin + permissions on a repository can change repository visibility. + """ + + members_can_change_repository_visibility_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="membersCanChangeRepositoryVisibilitySettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + can change repository visibility setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + members_can_create_internal_repositories_setting = sgqlc.types.Field( + Boolean, graphql_name="membersCanCreateInternalRepositoriesSetting" + ) + """The setting value for whether members of organizations in the + enterprise can create internal repositories. + """ + + members_can_create_private_repositories_setting = sgqlc.types.Field(Boolean, graphql_name="membersCanCreatePrivateRepositoriesSetting") + """The setting value for whether members of organizations in the + enterprise can create private repositories. + """ + + members_can_create_public_repositories_setting = sgqlc.types.Field(Boolean, graphql_name="membersCanCreatePublicRepositoriesSetting") + """The setting value for whether members of organizations in the + enterprise can create public repositories. + """ + + members_can_create_repositories_setting = sgqlc.types.Field( + EnterpriseMembersCanCreateRepositoriesSettingValue, graphql_name="membersCanCreateRepositoriesSetting" + ) + """The setting value for whether members of organizations in the + enterprise can create repositories. + """ + + members_can_create_repositories_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="membersCanCreateRepositoriesSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "value", + sgqlc.types.Arg( + sgqlc.types.non_null(OrganizationMembersCanCreateRepositoriesSettingValue), graphql_name="value", default=None + ), + ), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + repository creation setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` + (`OrganizationMembersCanCreateRepositoriesSettingValue!`): The + setting to find organizations for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + members_can_delete_issues_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="membersCanDeleteIssuesSetting" + ) + """The setting value for whether members with admin permissions for + repositories can delete issues. + """ + + members_can_delete_issues_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="membersCanDeleteIssuesSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + members can delete issues setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + members_can_delete_repositories_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="membersCanDeleteRepositoriesSetting" + ) + """The setting value for whether members with admin permissions for + repositories can delete or transfer repositories. + """ + + members_can_delete_repositories_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="membersCanDeleteRepositoriesSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + members can delete repositories setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + members_can_invite_collaborators_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="membersCanInviteCollaboratorsSetting" + ) + """The setting value for whether members of organizations in the + enterprise can invite outside collaborators. + """ + + members_can_invite_collaborators_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="membersCanInviteCollaboratorsSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + members can invite collaborators setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + members_can_make_purchases_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseMembersCanMakePurchasesSettingValue), graphql_name="membersCanMakePurchasesSetting" + ) + """Indicates whether members of this enterprise's organizations can + purchase additional services for those organizations. + """ + + members_can_update_protected_branches_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="membersCanUpdateProtectedBranchesSetting" + ) + """The setting value for whether members with admin permissions for + repositories can update protected branches. + """ + + members_can_update_protected_branches_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="membersCanUpdateProtectedBranchesSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + members can update protected branches setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + members_can_view_dependency_insights_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="membersCanViewDependencyInsightsSetting" + ) + """The setting value for whether members can view dependency + insights. + """ + + members_can_view_dependency_insights_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="membersCanViewDependencyInsightsSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + members can view dependency insights setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + notification_delivery_restriction_enabled_setting = sgqlc.types.Field( + sgqlc.types.non_null(NotificationRestrictionSettingValue), graphql_name="notificationDeliveryRestrictionEnabledSetting" + ) + """Indicates if email notification delivery for this enterprise is + restricted to verified or approved domains. + """ + + oidc_provider = sgqlc.types.Field("OIDCProvider", graphql_name="oidcProvider") + """The OIDC Identity Provider for the enterprise.""" + + organization_projects_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="organizationProjectsSetting" + ) + """The setting value for whether organization projects are enabled + for organizations in this enterprise. + """ + + organization_projects_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="organizationProjectsSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + organization projects setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + outside_collaborators = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseOutsideCollaboratorConnection), + graphql_name="outsideCollaborators", + args=sgqlc.types.ArgDict( + ( + ("login", sgqlc.types.Arg(String, graphql_name="login", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ( + "order_by", + sgqlc.types.Arg(EnterpriseMemberOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"}), + ), + ("visibility", sgqlc.types.Arg(RepositoryVisibility, graphql_name="visibility", default=None)), + ("has_two_factor_enabled", sgqlc.types.Arg(Boolean, graphql_name="hasTwoFactorEnabled", default=None)), + ( + "organization_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="organizationLogins", default=None), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of outside collaborators across the repositories in the + enterprise. + + Arguments: + + * `login` (`String`): The login of one specific outside + collaborator. + * `query` (`String`): The search string to look for. + * `order_by` (`EnterpriseMemberOrder`): Ordering options for + outside collaborators returned from the connection. (default: + `{field: LOGIN, direction: ASC}`) + * `visibility` (`RepositoryVisibility`): Only return outside + collaborators on repositories with this visibility. + * `has_two_factor_enabled` (`Boolean`): Only return outside + collaborators with this two-factor authentication status. + (default: `null`) + * `organization_logins` (`[String!]`): Only return outside + collaborators within the organizations with these logins + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pending_admin_invitations = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseAdministratorInvitationConnection), + graphql_name="pendingAdminInvitations", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ( + "order_by", + sgqlc.types.Arg( + EnterpriseAdministratorInvitationOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"} + ), + ), + ("role", sgqlc.types.Arg(EnterpriseAdministratorRole, graphql_name="role", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pending administrator invitations for the enterprise. + + Arguments: + + * `query` (`String`): The search string to look for. + * `order_by` (`EnterpriseAdministratorInvitationOrder`): Ordering + options for pending enterprise administrator invitations + returned from the connection. (default: `{field: CREATED_AT, + direction: DESC}`) + * `role` (`EnterpriseAdministratorRole`): The role to filter by. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pending_collaborator_invitations = sgqlc.types.Field( + sgqlc.types.non_null("RepositoryInvitationConnection"), + graphql_name="pendingCollaboratorInvitations", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ( + "order_by", + sgqlc.types.Arg( + RepositoryInvitationOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"} + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pending collaborator invitations across the repositories + in the enterprise. + + Arguments: + + * `query` (`String`): The search string to look for. + * `order_by` (`RepositoryInvitationOrder`): Ordering options for + pending repository collaborator invitations returned from the + connection. (default: `{field: CREATED_AT, direction: DESC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pending_member_invitations = sgqlc.types.Field( + sgqlc.types.non_null("EnterprisePendingMemberInvitationConnection"), + graphql_name="pendingMemberInvitations", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ( + "organization_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="organizationLogins", default=None), + ), + ("invitation_source", sgqlc.types.Arg(OrganizationInvitationSource, graphql_name="invitationSource", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pending member invitations for organizations in the + enterprise. + + Arguments: + + * `query` (`String`): The search string to look for. + * `organization_logins` (`[String!]`): Only return invitations + within the organizations with these logins + * `invitation_source` (`OrganizationInvitationSource`): Only + return invitations matching this invitation source + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + repository_projects_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="repositoryProjectsSetting" + ) + """The setting value for whether repository projects are enabled in + this enterprise. + """ + + repository_projects_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="repositoryProjectsSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + repository projects setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + saml_identity_provider = sgqlc.types.Field("EnterpriseIdentityProvider", graphql_name="samlIdentityProvider") + """The SAML Identity Provider for the enterprise.""" + + saml_identity_provider_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="samlIdentityProviderSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(IdentityProviderConfigurationState), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the SAML single + sign-on setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`IdentityProviderConfigurationState!`): The setting + value to find organizations for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + support_entitlements = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseMemberConnection), + graphql_name="supportEntitlements", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg(EnterpriseMemberOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"}), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of members with a support entitlement. + + Arguments: + + * `order_by` (`EnterpriseMemberOrder`): Ordering options for + support entitlement users returned from the connection. + (default: `{field: LOGIN, direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + team_discussions_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledDisabledSettingValue), graphql_name="teamDiscussionsSetting" + ) + """The setting value for whether team discussions are enabled for + organizations in this enterprise. + """ + + team_discussions_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="teamDiscussionsSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the provided + team discussions setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + two_factor_required_setting = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseEnabledSettingValue), graphql_name="twoFactorRequiredSetting" + ) + """The setting value for whether the enterprise requires two-factor + authentication for its organizations and users. + """ + + two_factor_required_setting_organizations = sgqlc.types.Field( + sgqlc.types.non_null("OrganizationConnection"), + graphql_name="twoFactorRequiredSettingOrganizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("value", sgqlc.types.Arg(sgqlc.types.non_null(Boolean), graphql_name="value", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ) + ), + ) + """A list of enterprise organizations configured with the two-factor + authentication setting value. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `value` (`Boolean!`): The setting value to find organizations + for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations with this setting. (default: `{field: LOGIN, + direction: ASC}`) + """ + + +class EnterprisePendingMemberInvitationConnection(sgqlc.types.relay.Connection): + """The connection type for OrganizationInvitation.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count", "total_unique_user_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterprisePendingMemberInvitationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("OrganizationInvitation"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + total_unique_user_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalUniqueUserCount") + """Identifies the total count of unique users in the connection.""" + + +class EnterprisePendingMemberInvitationEdge(sgqlc.types.Type): + """An invitation to be a member in an enterprise organization.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("OrganizationInvitation", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseRepositoryInfoConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseRepositoryInfo.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseRepositoryInfoEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseRepositoryInfo"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseRepositoryInfoEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseRepositoryInfo", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseServerInstallationConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseServerInstallation.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerInstallationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerInstallation"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseServerInstallationEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseServerInstallation", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseServerInstallationMembershipConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseServerInstallation.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerInstallationMembershipEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerInstallation"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseServerInstallationMembershipEdge(sgqlc.types.Type): + """An Enterprise Server installation that a user is a member of.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "role") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseServerInstallation", graphql_name="node") + """The item at the end of the edge.""" + + role = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseUserAccountMembershipRole), graphql_name="role") + """The role of the user in the enterprise membership.""" + + +class EnterpriseServerUserAccountConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseServerUserAccount.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerUserAccountEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerUserAccount"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseServerUserAccountEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseServerUserAccount", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseServerUserAccountEmailConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseServerUserAccountEmail.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerUserAccountEmailEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerUserAccountEmail"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseServerUserAccountEmailEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseServerUserAccountEmail", graphql_name="node") + """The item at the end of the edge.""" + + +class EnterpriseServerUserAccountsUploadConnection(sgqlc.types.relay.Connection): + """The connection type for EnterpriseServerUserAccountsUpload.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerUserAccountsUploadEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("EnterpriseServerUserAccountsUpload"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnterpriseServerUserAccountsUploadEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("EnterpriseServerUserAccountsUpload", graphql_name="node") + """The item at the end of the edge.""" + + +class EnvironmentConnection(sgqlc.types.relay.Connection): + """The connection type for Environment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("EnvironmentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Environment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class EnvironmentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Environment", graphql_name="node") + """The item at the end of the edge.""" + + +class ExternalIdentityAttribute(sgqlc.types.Type): + """An attribute for the External Identity attributes collection""" + + __schema__ = github_schema + __field_names__ = ("metadata", "name", "value") + metadata = sgqlc.types.Field(String, graphql_name="metadata") + """The attribute metadata as JSON""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The attribute name""" + + value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="value") + """The attribute value""" + + +class ExternalIdentityConnection(sgqlc.types.relay.Connection): + """The connection type for ExternalIdentity.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ExternalIdentityEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ExternalIdentity"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ExternalIdentityEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ExternalIdentity", graphql_name="node") + """The item at the end of the edge.""" + + +class ExternalIdentitySamlAttributes(sgqlc.types.Type): + """SAML attributes for the External Identity""" + + __schema__ = github_schema + __field_names__ = ("attributes", "emails", "family_name", "given_name", "groups", "name_id", "username") + attributes = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ExternalIdentityAttribute))), graphql_name="attributes" + ) + """SAML Identity attributes""" + + emails = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("UserEmailMetadata")), graphql_name="emails") + """The emails associated with the SAML identity""" + + family_name = sgqlc.types.Field(String, graphql_name="familyName") + """Family name of the SAML identity""" + + given_name = sgqlc.types.Field(String, graphql_name="givenName") + """Given name of the SAML identity""" + + groups = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="groups") + """The groups linked to this identity in IDP""" + + name_id = sgqlc.types.Field(String, graphql_name="nameId") + """The NameID of the SAML identity""" + + username = sgqlc.types.Field(String, graphql_name="username") + """The userName of the SAML identity""" + + +class ExternalIdentityScimAttributes(sgqlc.types.Type): + """SCIM attributes for the External Identity""" + + __schema__ = github_schema + __field_names__ = ("emails", "family_name", "given_name", "groups", "username") + emails = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("UserEmailMetadata")), graphql_name="emails") + """The emails associated with the SCIM identity""" + + family_name = sgqlc.types.Field(String, graphql_name="familyName") + """Family name of the SCIM identity""" + + given_name = sgqlc.types.Field(String, graphql_name="givenName") + """Given name of the SCIM identity""" + + groups = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="groups") + """The groups linked to this identity in IDP""" + + username = sgqlc.types.Field(String, graphql_name="username") + """The userName of the SCIM identity""" + + +class FollowOrganizationPayload(sgqlc.types.Type): + """Autogenerated return type of FollowOrganization""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "organization") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization that was followed.""" + + +class FollowUserPayload(sgqlc.types.Type): + """Autogenerated return type of FollowUser""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "user") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + user = sgqlc.types.Field("User", graphql_name="user") + """The user that was followed.""" + + +class FollowerConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("UserEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class FollowingConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("UserEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class FundingLink(sgqlc.types.Type): + """A funding platform link for a repository.""" + + __schema__ = github_schema + __field_names__ = ("platform", "url") + platform = sgqlc.types.Field(sgqlc.types.non_null(FundingPlatform), graphql_name="platform") + """The funding platform this link is for.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The configured URL for this funding link.""" + + +class GistCommentConnection(sgqlc.types.relay.Connection): + """The connection type for GistComment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("GistCommentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("GistComment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class GistCommentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("GistComment", graphql_name="node") + """The item at the end of the edge.""" + + +class GistConnection(sgqlc.types.relay.Connection): + """The connection type for Gist.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("GistEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Gist"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class GistEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Gist", graphql_name="node") + """The item at the end of the edge.""" + + +class GistFile(sgqlc.types.Type): + """A file in a gist.""" + + __schema__ = github_schema + __field_names__ = ("encoded_name", "encoding", "extension", "is_image", "is_truncated", "language", "name", "size", "text") + encoded_name = sgqlc.types.Field(String, graphql_name="encodedName") + """The file name encoded to remove characters that are invalid in URL + paths. + """ + + encoding = sgqlc.types.Field(String, graphql_name="encoding") + """The gist file encoding.""" + + extension = sgqlc.types.Field(String, graphql_name="extension") + """The file extension from the file name.""" + + is_image = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isImage") + """Indicates if this file is an image.""" + + is_truncated = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isTruncated") + """Whether the file's contents were truncated.""" + + language = sgqlc.types.Field("Language", graphql_name="language") + """The programming language this file is written in.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The gist file name.""" + + size = sgqlc.types.Field(Int, graphql_name="size") + """The gist file size in bytes.""" + + text = sgqlc.types.Field( + String, graphql_name="text", args=sgqlc.types.ArgDict((("truncate", sgqlc.types.Arg(Int, graphql_name="truncate", default=None)),)) + ) + """UTF8 text data or null if the file is binary + + Arguments: + + * `truncate` (`Int`): Optionally truncate the returned file to + this length. + """ + + +class GitActor(sgqlc.types.Type): + """Represents an actor in a Git commit (ie. an author or committer).""" + + __schema__ = github_schema + __field_names__ = ("avatar_url", "date", "email", "name", "user") + avatar_url = sgqlc.types.Field( + sgqlc.types.non_null(URI), + graphql_name="avatarUrl", + args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=None)),)), + ) + """A URL pointing to the author's public avatar. + + Arguments: + + * `size` (`Int`): The size of the resulting square image. + """ + + date = sgqlc.types.Field(GitTimestamp, graphql_name="date") + """The timestamp of the Git action (authoring or committing).""" + + email = sgqlc.types.Field(String, graphql_name="email") + """The email in the Git commit.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The name in the Git commit.""" + + user = sgqlc.types.Field("User", graphql_name="user") + """The GitHub user corresponding to the email field. Null if no such + user exists. + """ + + +class GitActorConnection(sgqlc.types.relay.Connection): + """The connection type for GitActor.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("GitActorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(GitActor), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class GitActorEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(GitActor, graphql_name="node") + """The item at the end of the edge.""" + + +class GitHubMetadata(sgqlc.types.Type): + """Represents information about the GitHub instance.""" + + __schema__ = github_schema + __field_names__ = ( + "git_hub_services_sha", + "git_ip_addresses", + "hook_ip_addresses", + "importer_ip_addresses", + "is_password_authentication_verifiable", + "pages_ip_addresses", + ) + git_hub_services_sha = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="gitHubServicesSha") + """Returns a String that's a SHA of `github-services`""" + + git_ip_addresses = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="gitIpAddresses") + """IP addresses that users connect to for git operations""" + + hook_ip_addresses = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="hookIpAddresses") + """IP addresses that service hooks are sent from""" + + importer_ip_addresses = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="importerIpAddresses") + """IP addresses that the importer connects from""" + + is_password_authentication_verifiable = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), graphql_name="isPasswordAuthenticationVerifiable" + ) + """Whether or not users are verified""" + + pages_ip_addresses = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="pagesIpAddresses") + """IP addresses for GitHub Pages' A records""" + + +class GrantEnterpriseOrganizationsMigratorRolePayload(sgqlc.types.Type): + """Autogenerated return type of + GrantEnterpriseOrganizationsMigratorRole + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "organizations") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + organizations = sgqlc.types.Field( + "OrganizationConnection", + graphql_name="organizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The organizations that had the migrator role applied to for the + given user. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class GrantMigratorRolePayload(sgqlc.types.Type): + """Autogenerated return type of GrantMigratorRole""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "success") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + success = sgqlc.types.Field(Boolean, graphql_name="success") + """Did the operation succeed?""" + + +class Hovercard(sgqlc.types.Type): + """Detail needed to display a hovercard for a user""" + + __schema__ = github_schema + __field_names__ = ("contexts",) + contexts = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(HovercardContext))), graphql_name="contexts") + """Each of the contexts for this hovercard""" + + +class InviteEnterpriseAdminPayload(sgqlc.types.Type): + """Autogenerated return type of InviteEnterpriseAdmin""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "invitation") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + invitation = sgqlc.types.Field("EnterpriseAdministratorInvitation", graphql_name="invitation") + """The created enterprise administrator invitation.""" + + +class IpAllowListEntryConnection(sgqlc.types.relay.Connection): + """The connection type for IpAllowListEntry.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("IpAllowListEntryEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("IpAllowListEntry"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class IpAllowListEntryEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("IpAllowListEntry", graphql_name="node") + """The item at the end of the edge.""" + + +class IssueCommentConnection(sgqlc.types.relay.Connection): + """The connection type for IssueComment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("IssueCommentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("IssueComment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class IssueCommentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("IssueComment", graphql_name="node") + """The item at the end of the edge.""" + + +class IssueConnection(sgqlc.types.relay.Connection): + """The connection type for Issue.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("IssueEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Issue"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class IssueContributionsByRepository(sgqlc.types.Type): + """This aggregates issues opened by a user within one repository.""" + + __schema__ = github_schema + __field_names__ = ("contributions", "repository") + contributions = sgqlc.types.Field( + sgqlc.types.non_null(CreatedIssueContributionConnection), + graphql_name="contributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(ContributionOrder, graphql_name="orderBy", default={"direction": "DESC"})), + ) + ), + ) + """The issue contributions. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ContributionOrder`): Ordering options for + contributions returned from the connection. (default: + `{direction: DESC}`) + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository in which the issues were opened.""" + + +class IssueEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Issue", graphql_name="node") + """The item at the end of the edge.""" + + +class IssueTemplate(sgqlc.types.Type): + """A repository issue template.""" + + __schema__ = github_schema + __field_names__ = ("about", "assignees", "body", "filename", "labels", "name", "title") + about = sgqlc.types.Field(String, graphql_name="about") + """The template purpose.""" + + assignees = sgqlc.types.Field( + sgqlc.types.non_null("UserConnection"), + graphql_name="assignees", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The suggested assignees. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + body = sgqlc.types.Field(String, graphql_name="body") + """The suggested issue body.""" + + filename = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="filename") + """The template filename.""" + + labels = sgqlc.types.Field( + "LabelConnection", + graphql_name="labels", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(LabelOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"})), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The suggested issue labels + + Arguments: + + * `order_by` (`LabelOrder`): Ordering options for labels returned + from the connection. (default: `{field: CREATED_AT, direction: + ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The template name.""" + + title = sgqlc.types.Field(String, graphql_name="title") + """The suggested issue title.""" + + +class IssueTimelineConnection(sgqlc.types.relay.Connection): + """The connection type for IssueTimelineItem.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("IssueTimelineItemEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("IssueTimelineItem"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class IssueTimelineItemEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("IssueTimelineItem", graphql_name="node") + """The item at the end of the edge.""" + + +class IssueTimelineItemsConnection(sgqlc.types.relay.Connection): + """The connection type for IssueTimelineItems.""" + + __schema__ = github_schema + __field_names__ = ("edges", "filtered_count", "nodes", "page_count", "page_info", "total_count", "updated_at") + edges = sgqlc.types.Field(sgqlc.types.list_of("IssueTimelineItemsEdge"), graphql_name="edges") + """A list of edges.""" + + filtered_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="filteredCount") + """Identifies the count of items after applying `before` and `after` + filters. + """ + + nodes = sgqlc.types.Field(sgqlc.types.list_of("IssueTimelineItems"), graphql_name="nodes") + """A list of nodes.""" + + page_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="pageCount") + """Identifies the count of items after applying `before`/`after` + filters and `first`/`last`/`skip` slicing. + """ + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the timeline was last updated.""" + + +class IssueTimelineItemsEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("IssueTimelineItems", graphql_name="node") + """The item at the end of the edge.""" + + +class LabelConnection(sgqlc.types.relay.Connection): + """The connection type for Label.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("LabelEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Label"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class LabelEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Label", graphql_name="node") + """The item at the end of the edge.""" + + +class LanguageConnection(sgqlc.types.relay.Connection): + """A list of languages associated with the parent.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count", "total_size") + edges = sgqlc.types.Field(sgqlc.types.list_of("LanguageEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Language"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + total_size = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalSize") + """The total size in bytes of files written in that language.""" + + +class LanguageEdge(sgqlc.types.Type): + """Represents the language of a repository.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "size") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + + node = sgqlc.types.Field(sgqlc.types.non_null("Language"), graphql_name="node") + + size = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="size") + """The number of bytes of code written in the language.""" + + +class LicenseRule(sgqlc.types.Type): + """Describes a License's conditions, permissions, and limitations""" + + __schema__ = github_schema + __field_names__ = ("description", "key", "label") + description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="description") + """A description of the rule""" + + key = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="key") + """The machine-readable rule key""" + + label = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="label") + """The human-readable rule label""" + + +class LinkProjectV2ToRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of LinkProjectV2ToRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository the project is linked to.""" + + +class LinkProjectV2ToTeamPayload(sgqlc.types.Type): + """Autogenerated return type of LinkProjectV2ToTeam""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "team") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + team = sgqlc.types.Field("Team", graphql_name="team") + """The team the project is linked to""" + + +class LinkRepositoryToProjectPayload(sgqlc.types.Type): + """Autogenerated return type of LinkRepositoryToProject""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project = sgqlc.types.Field("Project", graphql_name="project") + """The linked Project.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The linked Repository.""" + + +class LinkedBranchConnection(sgqlc.types.relay.Connection): + """The connection type for LinkedBranch.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("LinkedBranchEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("LinkedBranch"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class LinkedBranchEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("LinkedBranch", graphql_name="node") + """The item at the end of the edge.""" + + +class LockLockablePayload(sgqlc.types.Type): + """Autogenerated return type of LockLockable""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "locked_record") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + locked_record = sgqlc.types.Field(Lockable, graphql_name="lockedRecord") + """The item that was locked.""" + + +class MannequinConnection(sgqlc.types.relay.Connection): + """The connection type for Mannequin.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("MannequinEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Mannequin"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class MannequinEdge(sgqlc.types.Type): + """Represents a mannequin.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Mannequin", graphql_name="node") + """The item at the end of the edge.""" + + +class MarkDiscussionCommentAsAnswerPayload(sgqlc.types.Type): + """Autogenerated return type of MarkDiscussionCommentAsAnswer""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The discussion that includes the chosen comment.""" + + +class MarkFileAsViewedPayload(sgqlc.types.Type): + """Autogenerated return type of MarkFileAsViewed""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The updated pull request.""" + + +class MarkProjectV2AsTemplatePayload(sgqlc.types.Type): + """Autogenerated return type of MarkProjectV2AsTemplate""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2 = sgqlc.types.Field("ProjectV2", graphql_name="projectV2") + """The project.""" + + +class MarkPullRequestReadyForReviewPayload(sgqlc.types.Type): + """Autogenerated return type of MarkPullRequestReadyForReview""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that is ready for review.""" + + +class MarketplaceListingConnection(sgqlc.types.relay.Connection): + """Look up Marketplace Listings""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("MarketplaceListingEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("MarketplaceListing"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class MarketplaceListingEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("MarketplaceListing", graphql_name="node") + """The item at the end of the edge.""" + + +class MergeBranchPayload(sgqlc.types.Type): + """Autogenerated return type of MergeBranch""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "merge_commit") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + merge_commit = sgqlc.types.Field("Commit", graphql_name="mergeCommit") + """The resulting merge Commit.""" + + +class MergePullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of MergePullRequest""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that was merged.""" + + +class MergeQueueConfiguration(sgqlc.types.Type): + """Configuration for a MergeQueue""" + + __schema__ = github_schema + __field_names__ = ( + "check_response_timeout", + "maximum_entries_to_build", + "maximum_entries_to_merge", + "merge_method", + "merging_strategy", + "minimum_entries_to_merge", + "minimum_entries_to_merge_wait_time", + ) + check_response_timeout = sgqlc.types.Field(Int, graphql_name="checkResponseTimeout") + """The amount of time in minutes to wait for a check response before + considering it a failure. + """ + + maximum_entries_to_build = sgqlc.types.Field(Int, graphql_name="maximumEntriesToBuild") + """The maximum number of entries to build at once.""" + + maximum_entries_to_merge = sgqlc.types.Field(Int, graphql_name="maximumEntriesToMerge") + """The maximum number of entries to merge at once.""" + + merge_method = sgqlc.types.Field(PullRequestMergeMethod, graphql_name="mergeMethod") + """The merge method to use for this queue.""" + + merging_strategy = sgqlc.types.Field(MergeQueueMergingStrategy, graphql_name="mergingStrategy") + """The strategy to use when merging entries.""" + + minimum_entries_to_merge = sgqlc.types.Field(Int, graphql_name="minimumEntriesToMerge") + """The minimum number of entries required to merge at once.""" + + minimum_entries_to_merge_wait_time = sgqlc.types.Field(Int, graphql_name="minimumEntriesToMergeWaitTime") + """The amount of time in minutes to wait before ignoring the minumum + number of entries in the queue requirement and merging a + collection of entries + """ + + +class MergeQueueEntryConnection(sgqlc.types.relay.Connection): + """The connection type for MergeQueueEntry.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("MergeQueueEntryEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("MergeQueueEntry"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class MergeQueueEntryEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("MergeQueueEntry", graphql_name="node") + """The item at the end of the edge.""" + + +class MilestoneConnection(sgqlc.types.relay.Connection): + """The connection type for Milestone.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("MilestoneEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Milestone"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class MilestoneEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Milestone", graphql_name="node") + """The item at the end of the edge.""" + + +class MinimizeCommentPayload(sgqlc.types.Type): + """Autogenerated return type of MinimizeComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "minimized_comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + minimized_comment = sgqlc.types.Field(Minimizable, graphql_name="minimizedComment") + """The comment that was minimized.""" + + +class MoveProjectCardPayload(sgqlc.types.Type): + """Autogenerated return type of MoveProjectCard""" + + __schema__ = github_schema + __field_names__ = ("card_edge", "client_mutation_id") + card_edge = sgqlc.types.Field("ProjectCardEdge", graphql_name="cardEdge") + """The new edge of the moved card.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class MoveProjectColumnPayload(sgqlc.types.Type): + """Autogenerated return type of MoveProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "column_edge") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + column_edge = sgqlc.types.Field("ProjectColumnEdge", graphql_name="columnEdge") + """The new edge of the moved column.""" + + +class Mutation(sgqlc.types.Type): + """The root query for implementing GraphQL mutations.""" + + __schema__ = github_schema + __field_names__ = ( + "abort_queued_migrations", + "accept_enterprise_administrator_invitation", + "accept_topic_suggestion", + "add_assignees_to_assignable", + "add_comment", + "add_discussion_comment", + "add_discussion_poll_vote", + "add_enterprise_organization_member", + "add_enterprise_support_entitlement", + "add_labels_to_labelable", + "add_project_card", + "add_project_column", + "add_project_v2_draft_issue", + "add_project_v2_item_by_id", + "add_pull_request_review", + "add_pull_request_review_comment", + "add_pull_request_review_thread", + "add_reaction", + "add_star", + "add_upvote", + "add_verifiable_domain", + "approve_deployments", + "approve_verifiable_domain", + "archive_project_v2_item", + "archive_repository", + "cancel_enterprise_admin_invitation", + "cancel_sponsorship", + "change_user_status", + "clear_labels_from_labelable", + "clear_project_v2_item_field_value", + "clone_project", + "clone_template_repository", + "close_discussion", + "close_issue", + "close_pull_request", + "convert_project_card_note_to_issue", + "convert_pull_request_to_draft", + "copy_project_v2", + "create_attribution_invitation", + "create_branch_protection_rule", + "create_check_run", + "create_check_suite", + "create_commit_on_branch", + "create_discussion", + "create_enterprise_organization", + "create_environment", + "create_ip_allow_list_entry", + "create_issue", + "create_linked_branch", + "create_migration_source", + "create_project", + "create_project_v2", + "create_project_v2_field", + "create_pull_request", + "create_ref", + "create_repository", + "create_repository_ruleset", + "create_sponsors_listing", + "create_sponsors_tier", + "create_sponsorship", + "create_sponsorships", + "create_team_discussion", + "create_team_discussion_comment", + "decline_topic_suggestion", + "delete_branch_protection_rule", + "delete_deployment", + "delete_discussion", + "delete_discussion_comment", + "delete_environment", + "delete_ip_allow_list_entry", + "delete_issue", + "delete_issue_comment", + "delete_linked_branch", + "delete_project", + "delete_project_card", + "delete_project_column", + "delete_project_v2", + "delete_project_v2_field", + "delete_project_v2_item", + "delete_project_v2_workflow", + "delete_pull_request_review", + "delete_pull_request_review_comment", + "delete_ref", + "delete_repository_ruleset", + "delete_team_discussion", + "delete_team_discussion_comment", + "delete_verifiable_domain", + "dequeue_pull_request", + "disable_pull_request_auto_merge", + "dismiss_pull_request_review", + "dismiss_repository_vulnerability_alert", + "enable_pull_request_auto_merge", + "enqueue_pull_request", + "follow_organization", + "follow_user", + "grant_enterprise_organizations_migrator_role", + "grant_migrator_role", + "invite_enterprise_admin", + "link_project_v2_to_repository", + "link_project_v2_to_team", + "link_repository_to_project", + "lock_lockable", + "mark_discussion_comment_as_answer", + "mark_file_as_viewed", + "mark_project_v2_as_template", + "mark_pull_request_ready_for_review", + "merge_branch", + "merge_pull_request", + "minimize_comment", + "move_project_card", + "move_project_column", + "pin_issue", + "publish_sponsors_tier", + "regenerate_enterprise_identity_provider_recovery_codes", + "regenerate_verifiable_domain_token", + "reject_deployments", + "remove_assignees_from_assignable", + "remove_enterprise_admin", + "remove_enterprise_identity_provider", + "remove_enterprise_member", + "remove_enterprise_organization", + "remove_enterprise_support_entitlement", + "remove_labels_from_labelable", + "remove_outside_collaborator", + "remove_reaction", + "remove_star", + "remove_upvote", + "reopen_discussion", + "reopen_issue", + "reopen_pull_request", + "request_reviews", + "rerequest_check_suite", + "resolve_review_thread", + "retire_sponsors_tier", + "revert_pull_request", + "revoke_enterprise_organizations_migrator_role", + "revoke_migrator_role", + "set_enterprise_identity_provider", + "set_organization_interaction_limit", + "set_repository_interaction_limit", + "set_user_interaction_limit", + "start_organization_migration", + "start_repository_migration", + "submit_pull_request_review", + "transfer_enterprise_organization", + "transfer_issue", + "unarchive_project_v2_item", + "unarchive_repository", + "unfollow_organization", + "unfollow_user", + "unlink_project_v2_from_repository", + "unlink_project_v2_from_team", + "unlink_repository_from_project", + "unlock_lockable", + "unmark_discussion_comment_as_answer", + "unmark_file_as_viewed", + "unmark_issue_as_duplicate", + "unmark_project_v2_as_template", + "unminimize_comment", + "unpin_issue", + "unresolve_review_thread", + "update_branch_protection_rule", + "update_check_run", + "update_check_suite_preferences", + "update_discussion", + "update_discussion_comment", + "update_enterprise_administrator_role", + "update_enterprise_allow_private_repository_forking_setting", + "update_enterprise_default_repository_permission_setting", + "update_enterprise_members_can_change_repository_visibility_setting", + "update_enterprise_members_can_create_repositories_setting", + "update_enterprise_members_can_delete_issues_setting", + "update_enterprise_members_can_delete_repositories_setting", + "update_enterprise_members_can_invite_collaborators_setting", + "update_enterprise_members_can_make_purchases_setting", + "update_enterprise_members_can_update_protected_branches_setting", + "update_enterprise_members_can_view_dependency_insights_setting", + "update_enterprise_organization_projects_setting", + "update_enterprise_owner_organization_role", + "update_enterprise_profile", + "update_enterprise_repository_projects_setting", + "update_enterprise_team_discussions_setting", + "update_enterprise_two_factor_authentication_required_setting", + "update_environment", + "update_ip_allow_list_enabled_setting", + "update_ip_allow_list_entry", + "update_ip_allow_list_for_installed_apps_enabled_setting", + "update_issue", + "update_issue_comment", + "update_notification_restriction_setting", + "update_organization_allow_private_repository_forking_setting", + "update_organization_web_commit_signoff_setting", + "update_project", + "update_project_card", + "update_project_column", + "update_project_v2", + "update_project_v2_collaborators", + "update_project_v2_draft_issue", + "update_project_v2_item_field_value", + "update_project_v2_item_position", + "update_pull_request", + "update_pull_request_branch", + "update_pull_request_review", + "update_pull_request_review_comment", + "update_ref", + "update_repository", + "update_repository_ruleset", + "update_repository_web_commit_signoff_setting", + "update_sponsorship_preferences", + "update_subscription", + "update_team_discussion", + "update_team_discussion_comment", + "update_teams_repository", + "update_topics", + "verify_verifiable_domain", + ) + abort_queued_migrations = sgqlc.types.Field( + AbortQueuedMigrationsPayload, + graphql_name="abortQueuedMigrations", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AbortQueuedMigrationsInput), graphql_name="input", default=None)),) + ), + ) + """Clear all of a customer's queued migrations + + Arguments: + + * `input` (`AbortQueuedMigrationsInput!`): Parameters for + AbortQueuedMigrations + """ + + accept_enterprise_administrator_invitation = sgqlc.types.Field( + AcceptEnterpriseAdministratorInvitationPayload, + graphql_name="acceptEnterpriseAdministratorInvitation", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg(sgqlc.types.non_null(AcceptEnterpriseAdministratorInvitationInput), graphql_name="input", default=None), + ), + ) + ), + ) + """Accepts a pending invitation for a user to become an administrator + of an enterprise. + + Arguments: + + * `input` (`AcceptEnterpriseAdministratorInvitationInput!`): + Parameters for AcceptEnterpriseAdministratorInvitation + """ + + accept_topic_suggestion = sgqlc.types.Field( + AcceptTopicSuggestionPayload, + graphql_name="acceptTopicSuggestion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AcceptTopicSuggestionInput), graphql_name="input", default=None)),) + ), + ) + """Applies a suggested topic to the repository. + + Arguments: + + * `input` (`AcceptTopicSuggestionInput!`): Parameters for + AcceptTopicSuggestion + """ + + add_assignees_to_assignable = sgqlc.types.Field( + AddAssigneesToAssignablePayload, + graphql_name="addAssigneesToAssignable", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddAssigneesToAssignableInput), graphql_name="input", default=None)),) + ), + ) + """Adds assignees to an assignable object. + + Arguments: + + * `input` (`AddAssigneesToAssignableInput!`): Parameters for + AddAssigneesToAssignable + """ + + add_comment = sgqlc.types.Field( + AddCommentPayload, + graphql_name="addComment", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(AddCommentInput), graphql_name="input", default=None)),)), + ) + """Adds a comment to an Issue or Pull Request. + + Arguments: + + * `input` (`AddCommentInput!`): Parameters for AddComment + """ + + add_discussion_comment = sgqlc.types.Field( + AddDiscussionCommentPayload, + graphql_name="addDiscussionComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddDiscussionCommentInput), graphql_name="input", default=None)),) + ), + ) + """Adds a comment to a Discussion, possibly as a reply to another + comment. + + Arguments: + + * `input` (`AddDiscussionCommentInput!`): Parameters for + AddDiscussionComment + """ + + add_discussion_poll_vote = sgqlc.types.Field( + AddDiscussionPollVotePayload, + graphql_name="addDiscussionPollVote", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddDiscussionPollVoteInput), graphql_name="input", default=None)),) + ), + ) + """Vote for an option in a discussion poll. + + Arguments: + + * `input` (`AddDiscussionPollVoteInput!`): Parameters for + AddDiscussionPollVote + """ + + add_enterprise_organization_member = sgqlc.types.Field( + AddEnterpriseOrganizationMemberPayload, + graphql_name="addEnterpriseOrganizationMember", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddEnterpriseOrganizationMemberInput), graphql_name="input", default=None)),) + ), + ) + """Adds enterprise members to an organization within the enterprise. + + Arguments: + + * `input` (`AddEnterpriseOrganizationMemberInput!`): Parameters + for AddEnterpriseOrganizationMember + """ + + add_enterprise_support_entitlement = sgqlc.types.Field( + AddEnterpriseSupportEntitlementPayload, + graphql_name="addEnterpriseSupportEntitlement", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddEnterpriseSupportEntitlementInput), graphql_name="input", default=None)),) + ), + ) + """Adds a support entitlement to an enterprise member. + + Arguments: + + * `input` (`AddEnterpriseSupportEntitlementInput!`): Parameters + for AddEnterpriseSupportEntitlement + """ + + add_labels_to_labelable = sgqlc.types.Field( + AddLabelsToLabelablePayload, + graphql_name="addLabelsToLabelable", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddLabelsToLabelableInput), graphql_name="input", default=None)),) + ), + ) + """Adds labels to a labelable object. + + Arguments: + + * `input` (`AddLabelsToLabelableInput!`): Parameters for + AddLabelsToLabelable + """ + + add_project_card = sgqlc.types.Field( + AddProjectCardPayload, + graphql_name="addProjectCard", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddProjectCardInput), graphql_name="input", default=None)),) + ), + ) + """Adds a card to a ProjectColumn. Either `contentId` or `note` must + be provided but **not** both. + + Arguments: + + * `input` (`AddProjectCardInput!`): Parameters for AddProjectCard + """ + + add_project_column = sgqlc.types.Field( + AddProjectColumnPayload, + graphql_name="addProjectColumn", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddProjectColumnInput), graphql_name="input", default=None)),) + ), + ) + """Adds a column to a Project. + + Arguments: + + * `input` (`AddProjectColumnInput!`): Parameters for + AddProjectColumn + """ + + add_project_v2_draft_issue = sgqlc.types.Field( + AddProjectV2DraftIssuePayload, + graphql_name="addProjectV2DraftIssue", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddProjectV2DraftIssueInput), graphql_name="input", default=None)),) + ), + ) + """Creates a new draft issue and add it to a Project. + + Arguments: + + * `input` (`AddProjectV2DraftIssueInput!`): Parameters for + AddProjectV2DraftIssue + """ + + add_project_v2_item_by_id = sgqlc.types.Field( + AddProjectV2ItemByIdPayload, + graphql_name="addProjectV2ItemById", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddProjectV2ItemByIdInput), graphql_name="input", default=None)),) + ), + ) + """Links an existing content instance to a Project. + + Arguments: + + * `input` (`AddProjectV2ItemByIdInput!`): Parameters for + AddProjectV2ItemById + """ + + add_pull_request_review = sgqlc.types.Field( + AddPullRequestReviewPayload, + graphql_name="addPullRequestReview", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddPullRequestReviewInput), graphql_name="input", default=None)),) + ), + ) + """Adds a review to a Pull Request. + + Arguments: + + * `input` (`AddPullRequestReviewInput!`): Parameters for + AddPullRequestReview + """ + + add_pull_request_review_comment = sgqlc.types.Field( + AddPullRequestReviewCommentPayload, + graphql_name="addPullRequestReviewComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddPullRequestReviewCommentInput), graphql_name="input", default=None)),) + ), + ) + """Adds a comment to a review. + + Arguments: + + * `input` (`AddPullRequestReviewCommentInput!`): Parameters for + AddPullRequestReviewComment + """ + + add_pull_request_review_thread = sgqlc.types.Field( + AddPullRequestReviewThreadPayload, + graphql_name="addPullRequestReviewThread", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddPullRequestReviewThreadInput), graphql_name="input", default=None)),) + ), + ) + """Adds a new thread to a pending Pull Request Review. + + Arguments: + + * `input` (`AddPullRequestReviewThreadInput!`): Parameters for + AddPullRequestReviewThread + """ + + add_reaction = sgqlc.types.Field( + AddReactionPayload, + graphql_name="addReaction", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(AddReactionInput), graphql_name="input", default=None)),)), + ) + """Adds a reaction to a subject. + + Arguments: + + * `input` (`AddReactionInput!`): Parameters for AddReaction + """ + + add_star = sgqlc.types.Field( + AddStarPayload, + graphql_name="addStar", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(AddStarInput), graphql_name="input", default=None)),)), + ) + """Adds a star to a Starrable. + + Arguments: + + * `input` (`AddStarInput!`): Parameters for AddStar + """ + + add_upvote = sgqlc.types.Field( + AddUpvotePayload, + graphql_name="addUpvote", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(AddUpvoteInput), graphql_name="input", default=None)),)), + ) + """Add an upvote to a discussion or discussion comment. + + Arguments: + + * `input` (`AddUpvoteInput!`): Parameters for AddUpvote + """ + + add_verifiable_domain = sgqlc.types.Field( + AddVerifiableDomainPayload, + graphql_name="addVerifiableDomain", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(AddVerifiableDomainInput), graphql_name="input", default=None)),) + ), + ) + """Adds a verifiable domain to an owning account. + + Arguments: + + * `input` (`AddVerifiableDomainInput!`): Parameters for + AddVerifiableDomain + """ + + approve_deployments = sgqlc.types.Field( + ApproveDeploymentsPayload, + graphql_name="approveDeployments", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ApproveDeploymentsInput), graphql_name="input", default=None)),) + ), + ) + """Approve all pending deployments under one or more environments + + Arguments: + + * `input` (`ApproveDeploymentsInput!`): Parameters for + ApproveDeployments + """ + + approve_verifiable_domain = sgqlc.types.Field( + ApproveVerifiableDomainPayload, + graphql_name="approveVerifiableDomain", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ApproveVerifiableDomainInput), graphql_name="input", default=None)),) + ), + ) + """Approve a verifiable domain for notification delivery. + + Arguments: + + * `input` (`ApproveVerifiableDomainInput!`): Parameters for + ApproveVerifiableDomain + """ + + archive_project_v2_item = sgqlc.types.Field( + ArchiveProjectV2ItemPayload, + graphql_name="archiveProjectV2Item", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ArchiveProjectV2ItemInput), graphql_name="input", default=None)),) + ), + ) + """Archives a ProjectV2Item + + Arguments: + + * `input` (`ArchiveProjectV2ItemInput!`): Parameters for + ArchiveProjectV2Item + """ + + archive_repository = sgqlc.types.Field( + ArchiveRepositoryPayload, + graphql_name="archiveRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ArchiveRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Marks a repository as archived. + + Arguments: + + * `input` (`ArchiveRepositoryInput!`): Parameters for + ArchiveRepository + """ + + cancel_enterprise_admin_invitation = sgqlc.types.Field( + CancelEnterpriseAdminInvitationPayload, + graphql_name="cancelEnterpriseAdminInvitation", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CancelEnterpriseAdminInvitationInput), graphql_name="input", default=None)),) + ), + ) + """Cancels a pending invitation for an administrator to join an + enterprise. + + Arguments: + + * `input` (`CancelEnterpriseAdminInvitationInput!`): Parameters + for CancelEnterpriseAdminInvitation + """ + + cancel_sponsorship = sgqlc.types.Field( + CancelSponsorshipPayload, + graphql_name="cancelSponsorship", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CancelSponsorshipInput), graphql_name="input", default=None)),) + ), + ) + """Cancel an active sponsorship. + + Arguments: + + * `input` (`CancelSponsorshipInput!`): Parameters for + CancelSponsorship + """ + + change_user_status = sgqlc.types.Field( + ChangeUserStatusPayload, + graphql_name="changeUserStatus", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ChangeUserStatusInput), graphql_name="input", default=None)),) + ), + ) + """Update your status on GitHub. + + Arguments: + + * `input` (`ChangeUserStatusInput!`): Parameters for + ChangeUserStatus + """ + + clear_labels_from_labelable = sgqlc.types.Field( + ClearLabelsFromLabelablePayload, + graphql_name="clearLabelsFromLabelable", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ClearLabelsFromLabelableInput), graphql_name="input", default=None)),) + ), + ) + """Clears all labels from a labelable object. + + Arguments: + + * `input` (`ClearLabelsFromLabelableInput!`): Parameters for + ClearLabelsFromLabelable + """ + + clear_project_v2_item_field_value = sgqlc.types.Field( + ClearProjectV2ItemFieldValuePayload, + graphql_name="clearProjectV2ItemFieldValue", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ClearProjectV2ItemFieldValueInput), graphql_name="input", default=None)),) + ), + ) + """This mutation clears the value of a field for an item in a + Project. Currently only text, number, date, assignees, labels, + single-select, iteration and milestone fields are supported. + + Arguments: + + * `input` (`ClearProjectV2ItemFieldValueInput!`): Parameters for + ClearProjectV2ItemFieldValue + """ + + clone_project = sgqlc.types.Field( + CloneProjectPayload, + graphql_name="cloneProject", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CloneProjectInput), graphql_name="input", default=None)),) + ), + ) + """Creates a new project by cloning configuration from an existing + project. + + Arguments: + + * `input` (`CloneProjectInput!`): Parameters for CloneProject + """ + + clone_template_repository = sgqlc.types.Field( + CloneTemplateRepositoryPayload, + graphql_name="cloneTemplateRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CloneTemplateRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Create a new repository with the same files and directory + structure as a template repository. + + Arguments: + + * `input` (`CloneTemplateRepositoryInput!`): Parameters for + CloneTemplateRepository + """ + + close_discussion = sgqlc.types.Field( + CloseDiscussionPayload, + graphql_name="closeDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CloseDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Close a discussion. + + Arguments: + + * `input` (`CloseDiscussionInput!`): Parameters for + CloseDiscussion + """ + + close_issue = sgqlc.types.Field( + CloseIssuePayload, + graphql_name="closeIssue", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(CloseIssueInput), graphql_name="input", default=None)),)), + ) + """Close an issue. + + Arguments: + + * `input` (`CloseIssueInput!`): Parameters for CloseIssue + """ + + close_pull_request = sgqlc.types.Field( + ClosePullRequestPayload, + graphql_name="closePullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ClosePullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Close a pull request. + + Arguments: + + * `input` (`ClosePullRequestInput!`): Parameters for + ClosePullRequest + """ + + convert_project_card_note_to_issue = sgqlc.types.Field( + ConvertProjectCardNoteToIssuePayload, + graphql_name="convertProjectCardNoteToIssue", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ConvertProjectCardNoteToIssueInput), graphql_name="input", default=None)),) + ), + ) + """Convert a project note card to one associated with a newly created + issue. + + Arguments: + + * `input` (`ConvertProjectCardNoteToIssueInput!`): Parameters for + ConvertProjectCardNoteToIssue + """ + + convert_pull_request_to_draft = sgqlc.types.Field( + ConvertPullRequestToDraftPayload, + graphql_name="convertPullRequestToDraft", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ConvertPullRequestToDraftInput), graphql_name="input", default=None)),) + ), + ) + """Converts a pull request to draft + + Arguments: + + * `input` (`ConvertPullRequestToDraftInput!`): Parameters for + ConvertPullRequestToDraft + """ + + copy_project_v2 = sgqlc.types.Field( + CopyProjectV2Payload, + graphql_name="copyProjectV2", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CopyProjectV2Input), graphql_name="input", default=None)),) + ), + ) + """Copy a project. + + Arguments: + + * `input` (`CopyProjectV2Input!`): Parameters for CopyProjectV2 + """ + + create_attribution_invitation = sgqlc.types.Field( + CreateAttributionInvitationPayload, + graphql_name="createAttributionInvitation", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateAttributionInvitationInput), graphql_name="input", default=None)),) + ), + ) + """Invites a user to claim reattributable data + + Arguments: + + * `input` (`CreateAttributionInvitationInput!`): Parameters for + CreateAttributionInvitation + """ + + create_branch_protection_rule = sgqlc.types.Field( + CreateBranchProtectionRulePayload, + graphql_name="createBranchProtectionRule", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateBranchProtectionRuleInput), graphql_name="input", default=None)),) + ), + ) + """Create a new branch protection rule + + Arguments: + + * `input` (`CreateBranchProtectionRuleInput!`): Parameters for + CreateBranchProtectionRule + """ + + create_check_run = sgqlc.types.Field( + CreateCheckRunPayload, + graphql_name="createCheckRun", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateCheckRunInput), graphql_name="input", default=None)),) + ), + ) + """Create a check run. + + Arguments: + + * `input` (`CreateCheckRunInput!`): Parameters for CreateCheckRun + """ + + create_check_suite = sgqlc.types.Field( + CreateCheckSuitePayload, + graphql_name="createCheckSuite", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateCheckSuiteInput), graphql_name="input", default=None)),) + ), + ) + """Create a check suite + + Arguments: + + * `input` (`CreateCheckSuiteInput!`): Parameters for + CreateCheckSuite + """ + + create_commit_on_branch = sgqlc.types.Field( + CreateCommitOnBranchPayload, + graphql_name="createCommitOnBranch", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateCommitOnBranchInput), graphql_name="input", default=None)),) + ), + ) + """Appends a commit to the given branch as the authenticated user. + This mutation creates a commit whose parent is the HEAD of the + provided branch and also updates that branch to point to the new + commit. It can be thought of as similar to `git commit`. ### + Locating a Branch Commits are appended to a `branch` of type + `Ref`. This must refer to a git branch (i.e. the fully qualified + path must begin with `refs/heads/`, although including this prefix + is optional. Callers may specify the `branch` to commit to either + by its global node ID or by passing both of + `repositoryNameWithOwner` and `refName`. For more details see the + documentation for `CommittableBranch`. ### Describing Changes + `fileChanges` are specified as a `FilesChanges` object describing + `FileAdditions` and `FileDeletions`. Please see the documentation + for `FileChanges` for more information on how to use this argument + to describe any set of file changes. ### Authorship Similar to + the web commit interface, this mutation does not support + specifying the author or committer of the commit and will not add + support for this in the future. A commit created by a successful + execution of this mutation will be authored by the owner of the + credential which authenticates the API request. The committer + will be identical to that of commits authored using the web + interface. If you need full control over author and committer + information, please use the Git Database REST API instead. ### + Commit Signing Commits made using this mutation are automatically + signed by GitHub if supported and will be marked as verified in + the user interface. + + Arguments: + + * `input` (`CreateCommitOnBranchInput!`): Parameters for + CreateCommitOnBranch + """ + + create_discussion = sgqlc.types.Field( + CreateDiscussionPayload, + graphql_name="createDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Create a discussion. + + Arguments: + + * `input` (`CreateDiscussionInput!`): Parameters for + CreateDiscussion + """ + + create_enterprise_organization = sgqlc.types.Field( + CreateEnterpriseOrganizationPayload, + graphql_name="createEnterpriseOrganization", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateEnterpriseOrganizationInput), graphql_name="input", default=None)),) + ), + ) + """Creates an organization as part of an enterprise account. + + Arguments: + + * `input` (`CreateEnterpriseOrganizationInput!`): Parameters for + CreateEnterpriseOrganization + """ + + create_environment = sgqlc.types.Field( + CreateEnvironmentPayload, + graphql_name="createEnvironment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateEnvironmentInput), graphql_name="input", default=None)),) + ), + ) + """Creates an environment or simply returns it if already exists. + + Arguments: + + * `input` (`CreateEnvironmentInput!`): Parameters for + CreateEnvironment + """ + + create_ip_allow_list_entry = sgqlc.types.Field( + CreateIpAllowListEntryPayload, + graphql_name="createIpAllowListEntry", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateIpAllowListEntryInput), graphql_name="input", default=None)),) + ), + ) + """Creates a new IP allow list entry. + + Arguments: + + * `input` (`CreateIpAllowListEntryInput!`): Parameters for + CreateIpAllowListEntry + """ + + create_issue = sgqlc.types.Field( + CreateIssuePayload, + graphql_name="createIssue", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateIssueInput), graphql_name="input", default=None)),)), + ) + """Creates a new issue. + + Arguments: + + * `input` (`CreateIssueInput!`): Parameters for CreateIssue + """ + + create_linked_branch = sgqlc.types.Field( + CreateLinkedBranchPayload, + graphql_name="createLinkedBranch", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateLinkedBranchInput), graphql_name="input", default=None)),) + ), + ) + """Create a branch linked to an issue. + + Arguments: + + * `input` (`CreateLinkedBranchInput!`): Parameters for + CreateLinkedBranch + """ + + create_migration_source = sgqlc.types.Field( + CreateMigrationSourcePayload, + graphql_name="createMigrationSource", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateMigrationSourceInput), graphql_name="input", default=None)),) + ), + ) + """Creates a GitHub Enterprise Importer (GEI) migration source. + + Arguments: + + * `input` (`CreateMigrationSourceInput!`): Parameters for + CreateMigrationSource + """ + + create_project = sgqlc.types.Field( + CreateProjectPayload, + graphql_name="createProject", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateProjectInput), graphql_name="input", default=None)),) + ), + ) + """Creates a new project. + + Arguments: + + * `input` (`CreateProjectInput!`): Parameters for CreateProject + """ + + create_project_v2 = sgqlc.types.Field( + CreateProjectV2Payload, + graphql_name="createProjectV2", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateProjectV2Input), graphql_name="input", default=None)),) + ), + ) + """Creates a new project. + + Arguments: + + * `input` (`CreateProjectV2Input!`): Parameters for + CreateProjectV2 + """ + + create_project_v2_field = sgqlc.types.Field( + CreateProjectV2FieldPayload, + graphql_name="createProjectV2Field", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateProjectV2FieldInput), graphql_name="input", default=None)),) + ), + ) + """Create a new project field. + + Arguments: + + * `input` (`CreateProjectV2FieldInput!`): Parameters for + CreateProjectV2Field + """ + + create_pull_request = sgqlc.types.Field( + CreatePullRequestPayload, + graphql_name="createPullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreatePullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Create a new pull request + + Arguments: + + * `input` (`CreatePullRequestInput!`): Parameters for + CreatePullRequest + """ + + create_ref = sgqlc.types.Field( + CreateRefPayload, + graphql_name="createRef", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateRefInput), graphql_name="input", default=None)),)), + ) + """Create a new Git Ref. + + Arguments: + + * `input` (`CreateRefInput!`): Parameters for CreateRef + """ + + create_repository = sgqlc.types.Field( + CreateRepositoryPayload, + graphql_name="createRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Create a new repository. + + Arguments: + + * `input` (`CreateRepositoryInput!`): Parameters for + CreateRepository + """ + + create_repository_ruleset = sgqlc.types.Field( + CreateRepositoryRulesetPayload, + graphql_name="createRepositoryRuleset", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateRepositoryRulesetInput), graphql_name="input", default=None)),) + ), + ) + """Create a repository ruleset + + Arguments: + + * `input` (`CreateRepositoryRulesetInput!`): Parameters for + CreateRepositoryRuleset + """ + + create_sponsors_listing = sgqlc.types.Field( + CreateSponsorsListingPayload, + graphql_name="createSponsorsListing", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateSponsorsListingInput), graphql_name="input", default=None)),) + ), + ) + """Create a GitHub Sponsors profile to allow others to sponsor you or + your organization. + + Arguments: + + * `input` (`CreateSponsorsListingInput!`): Parameters for + CreateSponsorsListing + """ + + create_sponsors_tier = sgqlc.types.Field( + CreateSponsorsTierPayload, + graphql_name="createSponsorsTier", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateSponsorsTierInput), graphql_name="input", default=None)),) + ), + ) + """Create a new payment tier for your GitHub Sponsors profile. + + Arguments: + + * `input` (`CreateSponsorsTierInput!`): Parameters for + CreateSponsorsTier + """ + + create_sponsorship = sgqlc.types.Field( + CreateSponsorshipPayload, + graphql_name="createSponsorship", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateSponsorshipInput), graphql_name="input", default=None)),) + ), + ) + """Start a new sponsorship of a maintainer in GitHub Sponsors, or + reactivate a past sponsorship. + + Arguments: + + * `input` (`CreateSponsorshipInput!`): Parameters for + CreateSponsorship + """ + + create_sponsorships = sgqlc.types.Field( + CreateSponsorshipsPayload, + graphql_name="createSponsorships", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateSponsorshipsInput), graphql_name="input", default=None)),) + ), + ) + """Make many one-time sponsorships for different sponsorable users or + organizations at once. Can only sponsor those who have a public + GitHub Sponsors profile. + + Arguments: + + * `input` (`CreateSponsorshipsInput!`): Parameters for + CreateSponsorships + """ + + create_team_discussion = sgqlc.types.Field( + CreateTeamDiscussionPayload, + graphql_name="createTeamDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateTeamDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Creates a new team discussion. + + Arguments: + + * `input` (`CreateTeamDiscussionInput!`): Parameters for + CreateTeamDiscussion + """ + + create_team_discussion_comment = sgqlc.types.Field( + CreateTeamDiscussionCommentPayload, + graphql_name="createTeamDiscussionComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(CreateTeamDiscussionCommentInput), graphql_name="input", default=None)),) + ), + ) + """Creates a new team discussion comment. + + Arguments: + + * `input` (`CreateTeamDiscussionCommentInput!`): Parameters for + CreateTeamDiscussionComment + """ + + decline_topic_suggestion = sgqlc.types.Field( + DeclineTopicSuggestionPayload, + graphql_name="declineTopicSuggestion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeclineTopicSuggestionInput), graphql_name="input", default=None)),) + ), + ) + """Rejects a suggested topic for the repository. + + Arguments: + + * `input` (`DeclineTopicSuggestionInput!`): Parameters for + DeclineTopicSuggestion + """ + + delete_branch_protection_rule = sgqlc.types.Field( + DeleteBranchProtectionRulePayload, + graphql_name="deleteBranchProtectionRule", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteBranchProtectionRuleInput), graphql_name="input", default=None)),) + ), + ) + """Delete a branch protection rule + + Arguments: + + * `input` (`DeleteBranchProtectionRuleInput!`): Parameters for + DeleteBranchProtectionRule + """ + + delete_deployment = sgqlc.types.Field( + DeleteDeploymentPayload, + graphql_name="deleteDeployment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteDeploymentInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a deployment. + + Arguments: + + * `input` (`DeleteDeploymentInput!`): Parameters for + DeleteDeployment + """ + + delete_discussion = sgqlc.types.Field( + DeleteDiscussionPayload, + graphql_name="deleteDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Delete a discussion and all of its replies. + + Arguments: + + * `input` (`DeleteDiscussionInput!`): Parameters for + DeleteDiscussion + """ + + delete_discussion_comment = sgqlc.types.Field( + DeleteDiscussionCommentPayload, + graphql_name="deleteDiscussionComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteDiscussionCommentInput), graphql_name="input", default=None)),) + ), + ) + """Delete a discussion comment. If it has replies, wipe it instead. + + Arguments: + + * `input` (`DeleteDiscussionCommentInput!`): Parameters for + DeleteDiscussionComment + """ + + delete_environment = sgqlc.types.Field( + DeleteEnvironmentPayload, + graphql_name="deleteEnvironment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteEnvironmentInput), graphql_name="input", default=None)),) + ), + ) + """Deletes an environment + + Arguments: + + * `input` (`DeleteEnvironmentInput!`): Parameters for + DeleteEnvironment + """ + + delete_ip_allow_list_entry = sgqlc.types.Field( + DeleteIpAllowListEntryPayload, + graphql_name="deleteIpAllowListEntry", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteIpAllowListEntryInput), graphql_name="input", default=None)),) + ), + ) + """Deletes an IP allow list entry. + + Arguments: + + * `input` (`DeleteIpAllowListEntryInput!`): Parameters for + DeleteIpAllowListEntry + """ + + delete_issue = sgqlc.types.Field( + DeleteIssuePayload, + graphql_name="deleteIssue", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteIssueInput), graphql_name="input", default=None)),)), + ) + """Deletes an Issue object. + + Arguments: + + * `input` (`DeleteIssueInput!`): Parameters for DeleteIssue + """ + + delete_issue_comment = sgqlc.types.Field( + DeleteIssueCommentPayload, + graphql_name="deleteIssueComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteIssueCommentInput), graphql_name="input", default=None)),) + ), + ) + """Deletes an IssueComment object. + + Arguments: + + * `input` (`DeleteIssueCommentInput!`): Parameters for + DeleteIssueComment + """ + + delete_linked_branch = sgqlc.types.Field( + DeleteLinkedBranchPayload, + graphql_name="deleteLinkedBranch", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteLinkedBranchInput), graphql_name="input", default=None)),) + ), + ) + """Unlink a branch from an issue. + + Arguments: + + * `input` (`DeleteLinkedBranchInput!`): Parameters for + DeleteLinkedBranch + """ + + delete_project = sgqlc.types.Field( + DeleteProjectPayload, + graphql_name="deleteProject", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteProjectInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a project. + + Arguments: + + * `input` (`DeleteProjectInput!`): Parameters for DeleteProject + """ + + delete_project_card = sgqlc.types.Field( + DeleteProjectCardPayload, + graphql_name="deleteProjectCard", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteProjectCardInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a project card. + + Arguments: + + * `input` (`DeleteProjectCardInput!`): Parameters for + DeleteProjectCard + """ + + delete_project_column = sgqlc.types.Field( + DeleteProjectColumnPayload, + graphql_name="deleteProjectColumn", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteProjectColumnInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a project column. + + Arguments: + + * `input` (`DeleteProjectColumnInput!`): Parameters for + DeleteProjectColumn + """ + + delete_project_v2 = sgqlc.types.Field( + DeleteProjectV2Payload, + graphql_name="deleteProjectV2", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteProjectV2Input), graphql_name="input", default=None)),) + ), + ) + """Delete a project. + + Arguments: + + * `input` (`DeleteProjectV2Input!`): Parameters for + DeleteProjectV2 + """ + + delete_project_v2_field = sgqlc.types.Field( + DeleteProjectV2FieldPayload, + graphql_name="deleteProjectV2Field", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteProjectV2FieldInput), graphql_name="input", default=None)),) + ), + ) + """Delete a project field. + + Arguments: + + * `input` (`DeleteProjectV2FieldInput!`): Parameters for + DeleteProjectV2Field + """ + + delete_project_v2_item = sgqlc.types.Field( + DeleteProjectV2ItemPayload, + graphql_name="deleteProjectV2Item", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteProjectV2ItemInput), graphql_name="input", default=None)),) + ), + ) + """Deletes an item from a Project. + + Arguments: + + * `input` (`DeleteProjectV2ItemInput!`): Parameters for + DeleteProjectV2Item + """ + + delete_project_v2_workflow = sgqlc.types.Field( + DeleteProjectV2WorkflowPayload, + graphql_name="deleteProjectV2Workflow", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteProjectV2WorkflowInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a project workflow. + + Arguments: + + * `input` (`DeleteProjectV2WorkflowInput!`): Parameters for + DeleteProjectV2Workflow + """ + + delete_pull_request_review = sgqlc.types.Field( + DeletePullRequestReviewPayload, + graphql_name="deletePullRequestReview", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeletePullRequestReviewInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a pull request review. + + Arguments: + + * `input` (`DeletePullRequestReviewInput!`): Parameters for + DeletePullRequestReview + """ + + delete_pull_request_review_comment = sgqlc.types.Field( + DeletePullRequestReviewCommentPayload, + graphql_name="deletePullRequestReviewComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeletePullRequestReviewCommentInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a pull request review comment. + + Arguments: + + * `input` (`DeletePullRequestReviewCommentInput!`): Parameters for + DeletePullRequestReviewComment + """ + + delete_ref = sgqlc.types.Field( + DeleteRefPayload, + graphql_name="deleteRef", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteRefInput), graphql_name="input", default=None)),)), + ) + """Delete a Git Ref. + + Arguments: + + * `input` (`DeleteRefInput!`): Parameters for DeleteRef + """ + + delete_repository_ruleset = sgqlc.types.Field( + DeleteRepositoryRulesetPayload, + graphql_name="deleteRepositoryRuleset", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteRepositoryRulesetInput), graphql_name="input", default=None)),) + ), + ) + """Delete a repository ruleset + + Arguments: + + * `input` (`DeleteRepositoryRulesetInput!`): Parameters for + DeleteRepositoryRuleset + """ + + delete_team_discussion = sgqlc.types.Field( + DeleteTeamDiscussionPayload, + graphql_name="deleteTeamDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteTeamDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a team discussion. + + Arguments: + + * `input` (`DeleteTeamDiscussionInput!`): Parameters for + DeleteTeamDiscussion + """ + + delete_team_discussion_comment = sgqlc.types.Field( + DeleteTeamDiscussionCommentPayload, + graphql_name="deleteTeamDiscussionComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteTeamDiscussionCommentInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a team discussion comment. + + Arguments: + + * `input` (`DeleteTeamDiscussionCommentInput!`): Parameters for + DeleteTeamDiscussionComment + """ + + delete_verifiable_domain = sgqlc.types.Field( + DeleteVerifiableDomainPayload, + graphql_name="deleteVerifiableDomain", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DeleteVerifiableDomainInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a verifiable domain. + + Arguments: + + * `input` (`DeleteVerifiableDomainInput!`): Parameters for + DeleteVerifiableDomain + """ + + dequeue_pull_request = sgqlc.types.Field( + DequeuePullRequestPayload, + graphql_name="dequeuePullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DequeuePullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Remove a pull request from the merge queue. + + Arguments: + + * `input` (`DequeuePullRequestInput!`): Parameters for + DequeuePullRequest + """ + + disable_pull_request_auto_merge = sgqlc.types.Field( + DisablePullRequestAutoMergePayload, + graphql_name="disablePullRequestAutoMerge", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DisablePullRequestAutoMergeInput), graphql_name="input", default=None)),) + ), + ) + """Disable auto merge on the given pull request + + Arguments: + + * `input` (`DisablePullRequestAutoMergeInput!`): Parameters for + DisablePullRequestAutoMerge + """ + + dismiss_pull_request_review = sgqlc.types.Field( + DismissPullRequestReviewPayload, + graphql_name="dismissPullRequestReview", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(DismissPullRequestReviewInput), graphql_name="input", default=None)),) + ), + ) + """Dismisses an approved or rejected pull request review. + + Arguments: + + * `input` (`DismissPullRequestReviewInput!`): Parameters for + DismissPullRequestReview + """ + + dismiss_repository_vulnerability_alert = sgqlc.types.Field( + DismissRepositoryVulnerabilityAlertPayload, + graphql_name="dismissRepositoryVulnerabilityAlert", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg(sgqlc.types.non_null(DismissRepositoryVulnerabilityAlertInput), graphql_name="input", default=None), + ), + ) + ), + ) + """Dismisses the Dependabot alert. + + Arguments: + + * `input` (`DismissRepositoryVulnerabilityAlertInput!`): + Parameters for DismissRepositoryVulnerabilityAlert + """ + + enable_pull_request_auto_merge = sgqlc.types.Field( + EnablePullRequestAutoMergePayload, + graphql_name="enablePullRequestAutoMerge", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(EnablePullRequestAutoMergeInput), graphql_name="input", default=None)),) + ), + ) + """Enable the default auto-merge on a pull request. + + Arguments: + + * `input` (`EnablePullRequestAutoMergeInput!`): Parameters for + EnablePullRequestAutoMerge + """ + + enqueue_pull_request = sgqlc.types.Field( + EnqueuePullRequestPayload, + graphql_name="enqueuePullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(EnqueuePullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Add a pull request to the merge queue. + + Arguments: + + * `input` (`EnqueuePullRequestInput!`): Parameters for + EnqueuePullRequest + """ + + follow_organization = sgqlc.types.Field( + FollowOrganizationPayload, + graphql_name="followOrganization", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(FollowOrganizationInput), graphql_name="input", default=None)),) + ), + ) + """Follow an organization. + + Arguments: + + * `input` (`FollowOrganizationInput!`): Parameters for + FollowOrganization + """ + + follow_user = sgqlc.types.Field( + FollowUserPayload, + graphql_name="followUser", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(FollowUserInput), graphql_name="input", default=None)),)), + ) + """Follow a user. + + Arguments: + + * `input` (`FollowUserInput!`): Parameters for FollowUser + """ + + grant_enterprise_organizations_migrator_role = sgqlc.types.Field( + GrantEnterpriseOrganizationsMigratorRolePayload, + graphql_name="grantEnterpriseOrganizationsMigratorRole", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(GrantEnterpriseOrganizationsMigratorRoleInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Grant the migrator role to a user for all organizations under an + enterprise account. + + Arguments: + + * `input` (`GrantEnterpriseOrganizationsMigratorRoleInput!`): + Parameters for GrantEnterpriseOrganizationsMigratorRole + """ + + grant_migrator_role = sgqlc.types.Field( + GrantMigratorRolePayload, + graphql_name="grantMigratorRole", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(GrantMigratorRoleInput), graphql_name="input", default=None)),) + ), + ) + """Grant the migrator role to a user or a team. + + Arguments: + + * `input` (`GrantMigratorRoleInput!`): Parameters for + GrantMigratorRole + """ + + invite_enterprise_admin = sgqlc.types.Field( + InviteEnterpriseAdminPayload, + graphql_name="inviteEnterpriseAdmin", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(InviteEnterpriseAdminInput), graphql_name="input", default=None)),) + ), + ) + """Invite someone to become an administrator of the enterprise. + + Arguments: + + * `input` (`InviteEnterpriseAdminInput!`): Parameters for + InviteEnterpriseAdmin + """ + + link_project_v2_to_repository = sgqlc.types.Field( + LinkProjectV2ToRepositoryPayload, + graphql_name="linkProjectV2ToRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(LinkProjectV2ToRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Links a project to a repository. + + Arguments: + + * `input` (`LinkProjectV2ToRepositoryInput!`): Parameters for + LinkProjectV2ToRepository + """ + + link_project_v2_to_team = sgqlc.types.Field( + LinkProjectV2ToTeamPayload, + graphql_name="linkProjectV2ToTeam", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(LinkProjectV2ToTeamInput), graphql_name="input", default=None)),) + ), + ) + """Links a project to a team. + + Arguments: + + * `input` (`LinkProjectV2ToTeamInput!`): Parameters for + LinkProjectV2ToTeam + """ + + link_repository_to_project = sgqlc.types.Field( + LinkRepositoryToProjectPayload, + graphql_name="linkRepositoryToProject", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(LinkRepositoryToProjectInput), graphql_name="input", default=None)),) + ), + ) + """Creates a repository link for a project. + + Arguments: + + * `input` (`LinkRepositoryToProjectInput!`): Parameters for + LinkRepositoryToProject + """ + + lock_lockable = sgqlc.types.Field( + LockLockablePayload, + graphql_name="lockLockable", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(LockLockableInput), graphql_name="input", default=None)),) + ), + ) + """Lock a lockable object + + Arguments: + + * `input` (`LockLockableInput!`): Parameters for LockLockable + """ + + mark_discussion_comment_as_answer = sgqlc.types.Field( + MarkDiscussionCommentAsAnswerPayload, + graphql_name="markDiscussionCommentAsAnswer", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MarkDiscussionCommentAsAnswerInput), graphql_name="input", default=None)),) + ), + ) + """Mark a discussion comment as the chosen answer for discussions in + an answerable category. + + Arguments: + + * `input` (`MarkDiscussionCommentAsAnswerInput!`): Parameters for + MarkDiscussionCommentAsAnswer + """ + + mark_file_as_viewed = sgqlc.types.Field( + MarkFileAsViewedPayload, + graphql_name="markFileAsViewed", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MarkFileAsViewedInput), graphql_name="input", default=None)),) + ), + ) + """Mark a pull request file as viewed + + Arguments: + + * `input` (`MarkFileAsViewedInput!`): Parameters for + MarkFileAsViewed + """ + + mark_project_v2_as_template = sgqlc.types.Field( + MarkProjectV2AsTemplatePayload, + graphql_name="markProjectV2AsTemplate", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MarkProjectV2AsTemplateInput), graphql_name="input", default=None)),) + ), + ) + """Mark a project as a template. Note that only projects which are + owned by an Organization can be marked as a template. + + Arguments: + + * `input` (`MarkProjectV2AsTemplateInput!`): Parameters for + MarkProjectV2AsTemplate + """ + + mark_pull_request_ready_for_review = sgqlc.types.Field( + MarkPullRequestReadyForReviewPayload, + graphql_name="markPullRequestReadyForReview", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MarkPullRequestReadyForReviewInput), graphql_name="input", default=None)),) + ), + ) + """Marks a pull request ready for review. + + Arguments: + + * `input` (`MarkPullRequestReadyForReviewInput!`): Parameters for + MarkPullRequestReadyForReview + """ + + merge_branch = sgqlc.types.Field( + MergeBranchPayload, + graphql_name="mergeBranch", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(MergeBranchInput), graphql_name="input", default=None)),)), + ) + """Merge a head into a branch. + + Arguments: + + * `input` (`MergeBranchInput!`): Parameters for MergeBranch + """ + + merge_pull_request = sgqlc.types.Field( + MergePullRequestPayload, + graphql_name="mergePullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MergePullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Merge a pull request. + + Arguments: + + * `input` (`MergePullRequestInput!`): Parameters for + MergePullRequest + """ + + minimize_comment = sgqlc.types.Field( + MinimizeCommentPayload, + graphql_name="minimizeComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MinimizeCommentInput), graphql_name="input", default=None)),) + ), + ) + """Minimizes a comment on an Issue, Commit, Pull Request, or Gist + + Arguments: + + * `input` (`MinimizeCommentInput!`): Parameters for + MinimizeComment + """ + + move_project_card = sgqlc.types.Field( + MoveProjectCardPayload, + graphql_name="moveProjectCard", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MoveProjectCardInput), graphql_name="input", default=None)),) + ), + ) + """Moves a project card to another place. + + Arguments: + + * `input` (`MoveProjectCardInput!`): Parameters for + MoveProjectCard + """ + + move_project_column = sgqlc.types.Field( + MoveProjectColumnPayload, + graphql_name="moveProjectColumn", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(MoveProjectColumnInput), graphql_name="input", default=None)),) + ), + ) + """Moves a project column to another place. + + Arguments: + + * `input` (`MoveProjectColumnInput!`): Parameters for + MoveProjectColumn + """ + + pin_issue = sgqlc.types.Field( + "PinIssuePayload", + graphql_name="pinIssue", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(PinIssueInput), graphql_name="input", default=None)),)), + ) + """Pin an issue to a repository + + Arguments: + + * `input` (`PinIssueInput!`): Parameters for PinIssue + """ + + publish_sponsors_tier = sgqlc.types.Field( + "PublishSponsorsTierPayload", + graphql_name="publishSponsorsTier", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(PublishSponsorsTierInput), graphql_name="input", default=None)),) + ), + ) + """Publish an existing sponsorship tier that is currently still a + draft to a GitHub Sponsors profile. + + Arguments: + + * `input` (`PublishSponsorsTierInput!`): Parameters for + PublishSponsorsTier + """ + + regenerate_enterprise_identity_provider_recovery_codes = sgqlc.types.Field( + "RegenerateEnterpriseIdentityProviderRecoveryCodesPayload", + graphql_name="regenerateEnterpriseIdentityProviderRecoveryCodes", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(RegenerateEnterpriseIdentityProviderRecoveryCodesInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Regenerates the identity provider recovery codes for an enterprise + + Arguments: + + * `input` + (`RegenerateEnterpriseIdentityProviderRecoveryCodesInput!`): + Parameters for RegenerateEnterpriseIdentityProviderRecoveryCodes + """ + + regenerate_verifiable_domain_token = sgqlc.types.Field( + "RegenerateVerifiableDomainTokenPayload", + graphql_name="regenerateVerifiableDomainToken", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RegenerateVerifiableDomainTokenInput), graphql_name="input", default=None)),) + ), + ) + """Regenerates a verifiable domain's verification token. + + Arguments: + + * `input` (`RegenerateVerifiableDomainTokenInput!`): Parameters + for RegenerateVerifiableDomainToken + """ + + reject_deployments = sgqlc.types.Field( + "RejectDeploymentsPayload", + graphql_name="rejectDeployments", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RejectDeploymentsInput), graphql_name="input", default=None)),) + ), + ) + """Reject all pending deployments under one or more environments + + Arguments: + + * `input` (`RejectDeploymentsInput!`): Parameters for + RejectDeployments + """ + + remove_assignees_from_assignable = sgqlc.types.Field( + "RemoveAssigneesFromAssignablePayload", + graphql_name="removeAssigneesFromAssignable", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveAssigneesFromAssignableInput), graphql_name="input", default=None)),) + ), + ) + """Removes assignees from an assignable object. + + Arguments: + + * `input` (`RemoveAssigneesFromAssignableInput!`): Parameters for + RemoveAssigneesFromAssignable + """ + + remove_enterprise_admin = sgqlc.types.Field( + "RemoveEnterpriseAdminPayload", + graphql_name="removeEnterpriseAdmin", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveEnterpriseAdminInput), graphql_name="input", default=None)),) + ), + ) + """Removes an administrator from the enterprise. + + Arguments: + + * `input` (`RemoveEnterpriseAdminInput!`): Parameters for + RemoveEnterpriseAdmin + """ + + remove_enterprise_identity_provider = sgqlc.types.Field( + "RemoveEnterpriseIdentityProviderPayload", + graphql_name="removeEnterpriseIdentityProvider", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveEnterpriseIdentityProviderInput), graphql_name="input", default=None)),) + ), + ) + """Removes the identity provider from an enterprise + + Arguments: + + * `input` (`RemoveEnterpriseIdentityProviderInput!`): Parameters + for RemoveEnterpriseIdentityProvider + """ + + remove_enterprise_member = sgqlc.types.Field( + "RemoveEnterpriseMemberPayload", + graphql_name="removeEnterpriseMember", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveEnterpriseMemberInput), graphql_name="input", default=None)),) + ), + ) + """Removes a user from all organizations within the enterprise + + Arguments: + + * `input` (`RemoveEnterpriseMemberInput!`): Parameters for + RemoveEnterpriseMember + """ + + remove_enterprise_organization = sgqlc.types.Field( + "RemoveEnterpriseOrganizationPayload", + graphql_name="removeEnterpriseOrganization", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveEnterpriseOrganizationInput), graphql_name="input", default=None)),) + ), + ) + """Removes an organization from the enterprise + + Arguments: + + * `input` (`RemoveEnterpriseOrganizationInput!`): Parameters for + RemoveEnterpriseOrganization + """ + + remove_enterprise_support_entitlement = sgqlc.types.Field( + "RemoveEnterpriseSupportEntitlementPayload", + graphql_name="removeEnterpriseSupportEntitlement", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveEnterpriseSupportEntitlementInput), graphql_name="input", default=None)),) + ), + ) + """Removes a support entitlement from an enterprise member. + + Arguments: + + * `input` (`RemoveEnterpriseSupportEntitlementInput!`): Parameters + for RemoveEnterpriseSupportEntitlement + """ + + remove_labels_from_labelable = sgqlc.types.Field( + "RemoveLabelsFromLabelablePayload", + graphql_name="removeLabelsFromLabelable", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveLabelsFromLabelableInput), graphql_name="input", default=None)),) + ), + ) + """Removes labels from a Labelable object. + + Arguments: + + * `input` (`RemoveLabelsFromLabelableInput!`): Parameters for + RemoveLabelsFromLabelable + """ + + remove_outside_collaborator = sgqlc.types.Field( + "RemoveOutsideCollaboratorPayload", + graphql_name="removeOutsideCollaborator", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveOutsideCollaboratorInput), graphql_name="input", default=None)),) + ), + ) + """Removes outside collaborator from all repositories in an + organization. + + Arguments: + + * `input` (`RemoveOutsideCollaboratorInput!`): Parameters for + RemoveOutsideCollaborator + """ + + remove_reaction = sgqlc.types.Field( + "RemoveReactionPayload", + graphql_name="removeReaction", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveReactionInput), graphql_name="input", default=None)),) + ), + ) + """Removes a reaction from a subject. + + Arguments: + + * `input` (`RemoveReactionInput!`): Parameters for RemoveReaction + """ + + remove_star = sgqlc.types.Field( + "RemoveStarPayload", + graphql_name="removeStar", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveStarInput), graphql_name="input", default=None)),)), + ) + """Removes a star from a Starrable. + + Arguments: + + * `input` (`RemoveStarInput!`): Parameters for RemoveStar + """ + + remove_upvote = sgqlc.types.Field( + "RemoveUpvotePayload", + graphql_name="removeUpvote", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RemoveUpvoteInput), graphql_name="input", default=None)),) + ), + ) + """Remove an upvote to a discussion or discussion comment. + + Arguments: + + * `input` (`RemoveUpvoteInput!`): Parameters for RemoveUpvote + """ + + reopen_discussion = sgqlc.types.Field( + "ReopenDiscussionPayload", + graphql_name="reopenDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ReopenDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Reopen a discussion. + + Arguments: + + * `input` (`ReopenDiscussionInput!`): Parameters for + ReopenDiscussion + """ + + reopen_issue = sgqlc.types.Field( + "ReopenIssuePayload", + graphql_name="reopenIssue", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(ReopenIssueInput), graphql_name="input", default=None)),)), + ) + """Reopen a issue. + + Arguments: + + * `input` (`ReopenIssueInput!`): Parameters for ReopenIssue + """ + + reopen_pull_request = sgqlc.types.Field( + "ReopenPullRequestPayload", + graphql_name="reopenPullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ReopenPullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Reopen a pull request. + + Arguments: + + * `input` (`ReopenPullRequestInput!`): Parameters for + ReopenPullRequest + """ + + request_reviews = sgqlc.types.Field( + "RequestReviewsPayload", + graphql_name="requestReviews", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RequestReviewsInput), graphql_name="input", default=None)),) + ), + ) + """Set review requests on a pull request. + + Arguments: + + * `input` (`RequestReviewsInput!`): Parameters for RequestReviews + """ + + rerequest_check_suite = sgqlc.types.Field( + "RerequestCheckSuitePayload", + graphql_name="rerequestCheckSuite", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RerequestCheckSuiteInput), graphql_name="input", default=None)),) + ), + ) + """Rerequests an existing check suite. + + Arguments: + + * `input` (`RerequestCheckSuiteInput!`): Parameters for + RerequestCheckSuite + """ + + resolve_review_thread = sgqlc.types.Field( + "ResolveReviewThreadPayload", + graphql_name="resolveReviewThread", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(ResolveReviewThreadInput), graphql_name="input", default=None)),) + ), + ) + """Marks a review thread as resolved. + + Arguments: + + * `input` (`ResolveReviewThreadInput!`): Parameters for + ResolveReviewThread + """ + + retire_sponsors_tier = sgqlc.types.Field( + "RetireSponsorsTierPayload", + graphql_name="retireSponsorsTier", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RetireSponsorsTierInput), graphql_name="input", default=None)),) + ), + ) + """Retire a published payment tier from your GitHub Sponsors profile + so it cannot be used to start new sponsorships. + + Arguments: + + * `input` (`RetireSponsorsTierInput!`): Parameters for + RetireSponsorsTier + """ + + revert_pull_request = sgqlc.types.Field( + "RevertPullRequestPayload", + graphql_name="revertPullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RevertPullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Create a pull request that reverts the changes from a merged pull + request. + + Arguments: + + * `input` (`RevertPullRequestInput!`): Parameters for + RevertPullRequest + """ + + revoke_enterprise_organizations_migrator_role = sgqlc.types.Field( + "RevokeEnterpriseOrganizationsMigratorRolePayload", + graphql_name="revokeEnterpriseOrganizationsMigratorRole", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(RevokeEnterpriseOrganizationsMigratorRoleInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Revoke the migrator role to a user for all organizations under an + enterprise account. + + Arguments: + + * `input` (`RevokeEnterpriseOrganizationsMigratorRoleInput!`): + Parameters for RevokeEnterpriseOrganizationsMigratorRole + """ + + revoke_migrator_role = sgqlc.types.Field( + "RevokeMigratorRolePayload", + graphql_name="revokeMigratorRole", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(RevokeMigratorRoleInput), graphql_name="input", default=None)),) + ), + ) + """Revoke the migrator role from a user or a team. + + Arguments: + + * `input` (`RevokeMigratorRoleInput!`): Parameters for + RevokeMigratorRole + """ + + set_enterprise_identity_provider = sgqlc.types.Field( + "SetEnterpriseIdentityProviderPayload", + graphql_name="setEnterpriseIdentityProvider", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(SetEnterpriseIdentityProviderInput), graphql_name="input", default=None)),) + ), + ) + """Creates or updates the identity provider for an enterprise. + + Arguments: + + * `input` (`SetEnterpriseIdentityProviderInput!`): Parameters for + SetEnterpriseIdentityProvider + """ + + set_organization_interaction_limit = sgqlc.types.Field( + "SetOrganizationInteractionLimitPayload", + graphql_name="setOrganizationInteractionLimit", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(SetOrganizationInteractionLimitInput), graphql_name="input", default=None)),) + ), + ) + """Set an organization level interaction limit for an organization's + public repositories. + + Arguments: + + * `input` (`SetOrganizationInteractionLimitInput!`): Parameters + for SetOrganizationInteractionLimit + """ + + set_repository_interaction_limit = sgqlc.types.Field( + "SetRepositoryInteractionLimitPayload", + graphql_name="setRepositoryInteractionLimit", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(SetRepositoryInteractionLimitInput), graphql_name="input", default=None)),) + ), + ) + """Sets an interaction limit setting for a repository. + + Arguments: + + * `input` (`SetRepositoryInteractionLimitInput!`): Parameters for + SetRepositoryInteractionLimit + """ + + set_user_interaction_limit = sgqlc.types.Field( + "SetUserInteractionLimitPayload", + graphql_name="setUserInteractionLimit", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(SetUserInteractionLimitInput), graphql_name="input", default=None)),) + ), + ) + """Set a user level interaction limit for an user's public + repositories. + + Arguments: + + * `input` (`SetUserInteractionLimitInput!`): Parameters for + SetUserInteractionLimit + """ + + start_organization_migration = sgqlc.types.Field( + "StartOrganizationMigrationPayload", + graphql_name="startOrganizationMigration", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(StartOrganizationMigrationInput), graphql_name="input", default=None)),) + ), + ) + """Starts a GitHub Enterprise Importer organization migration. + + Arguments: + + * `input` (`StartOrganizationMigrationInput!`): Parameters for + StartOrganizationMigration + """ + + start_repository_migration = sgqlc.types.Field( + "StartRepositoryMigrationPayload", + graphql_name="startRepositoryMigration", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(StartRepositoryMigrationInput), graphql_name="input", default=None)),) + ), + ) + """Starts a GitHub Enterprise Importer (GEI) repository migration. + + Arguments: + + * `input` (`StartRepositoryMigrationInput!`): Parameters for + StartRepositoryMigration + """ + + submit_pull_request_review = sgqlc.types.Field( + "SubmitPullRequestReviewPayload", + graphql_name="submitPullRequestReview", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(SubmitPullRequestReviewInput), graphql_name="input", default=None)),) + ), + ) + """Submits a pending pull request review. + + Arguments: + + * `input` (`SubmitPullRequestReviewInput!`): Parameters for + SubmitPullRequestReview + """ + + transfer_enterprise_organization = sgqlc.types.Field( + "TransferEnterpriseOrganizationPayload", + graphql_name="transferEnterpriseOrganization", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(TransferEnterpriseOrganizationInput), graphql_name="input", default=None)),) + ), + ) + """Transfer an organization from one enterprise to another + enterprise. + + Arguments: + + * `input` (`TransferEnterpriseOrganizationInput!`): Parameters for + TransferEnterpriseOrganization + """ + + transfer_issue = sgqlc.types.Field( + "TransferIssuePayload", + graphql_name="transferIssue", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(TransferIssueInput), graphql_name="input", default=None)),) + ), + ) + """Transfer an issue to a different repository + + Arguments: + + * `input` (`TransferIssueInput!`): Parameters for TransferIssue + """ + + unarchive_project_v2_item = sgqlc.types.Field( + "UnarchiveProjectV2ItemPayload", + graphql_name="unarchiveProjectV2Item", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnarchiveProjectV2ItemInput), graphql_name="input", default=None)),) + ), + ) + """Unarchives a ProjectV2Item + + Arguments: + + * `input` (`UnarchiveProjectV2ItemInput!`): Parameters for + UnarchiveProjectV2Item + """ + + unarchive_repository = sgqlc.types.Field( + "UnarchiveRepositoryPayload", + graphql_name="unarchiveRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnarchiveRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Unarchives a repository. + + Arguments: + + * `input` (`UnarchiveRepositoryInput!`): Parameters for + UnarchiveRepository + """ + + unfollow_organization = sgqlc.types.Field( + "UnfollowOrganizationPayload", + graphql_name="unfollowOrganization", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnfollowOrganizationInput), graphql_name="input", default=None)),) + ), + ) + """Unfollow an organization. + + Arguments: + + * `input` (`UnfollowOrganizationInput!`): Parameters for + UnfollowOrganization + """ + + unfollow_user = sgqlc.types.Field( + "UnfollowUserPayload", + graphql_name="unfollowUser", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnfollowUserInput), graphql_name="input", default=None)),) + ), + ) + """Unfollow a user. + + Arguments: + + * `input` (`UnfollowUserInput!`): Parameters for UnfollowUser + """ + + unlink_project_v2_from_repository = sgqlc.types.Field( + "UnlinkProjectV2FromRepositoryPayload", + graphql_name="unlinkProjectV2FromRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnlinkProjectV2FromRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Unlinks a project from a repository. + + Arguments: + + * `input` (`UnlinkProjectV2FromRepositoryInput!`): Parameters for + UnlinkProjectV2FromRepository + """ + + unlink_project_v2_from_team = sgqlc.types.Field( + "UnlinkProjectV2FromTeamPayload", + graphql_name="unlinkProjectV2FromTeam", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnlinkProjectV2FromTeamInput), graphql_name="input", default=None)),) + ), + ) + """Unlinks a project to a team. + + Arguments: + + * `input` (`UnlinkProjectV2FromTeamInput!`): Parameters for + UnlinkProjectV2FromTeam + """ + + unlink_repository_from_project = sgqlc.types.Field( + "UnlinkRepositoryFromProjectPayload", + graphql_name="unlinkRepositoryFromProject", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnlinkRepositoryFromProjectInput), graphql_name="input", default=None)),) + ), + ) + """Deletes a repository link from a project. + + Arguments: + + * `input` (`UnlinkRepositoryFromProjectInput!`): Parameters for + UnlinkRepositoryFromProject + """ + + unlock_lockable = sgqlc.types.Field( + "UnlockLockablePayload", + graphql_name="unlockLockable", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnlockLockableInput), graphql_name="input", default=None)),) + ), + ) + """Unlock a lockable object + + Arguments: + + * `input` (`UnlockLockableInput!`): Parameters for UnlockLockable + """ + + unmark_discussion_comment_as_answer = sgqlc.types.Field( + "UnmarkDiscussionCommentAsAnswerPayload", + graphql_name="unmarkDiscussionCommentAsAnswer", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnmarkDiscussionCommentAsAnswerInput), graphql_name="input", default=None)),) + ), + ) + """Unmark a discussion comment as the chosen answer for discussions + in an answerable category. + + Arguments: + + * `input` (`UnmarkDiscussionCommentAsAnswerInput!`): Parameters + for UnmarkDiscussionCommentAsAnswer + """ + + unmark_file_as_viewed = sgqlc.types.Field( + "UnmarkFileAsViewedPayload", + graphql_name="unmarkFileAsViewed", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnmarkFileAsViewedInput), graphql_name="input", default=None)),) + ), + ) + """Unmark a pull request file as viewed + + Arguments: + + * `input` (`UnmarkFileAsViewedInput!`): Parameters for + UnmarkFileAsViewed + """ + + unmark_issue_as_duplicate = sgqlc.types.Field( + "UnmarkIssueAsDuplicatePayload", + graphql_name="unmarkIssueAsDuplicate", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnmarkIssueAsDuplicateInput), graphql_name="input", default=None)),) + ), + ) + """Unmark an issue as a duplicate of another issue. + + Arguments: + + * `input` (`UnmarkIssueAsDuplicateInput!`): Parameters for + UnmarkIssueAsDuplicate + """ + + unmark_project_v2_as_template = sgqlc.types.Field( + "UnmarkProjectV2AsTemplatePayload", + graphql_name="unmarkProjectV2AsTemplate", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnmarkProjectV2AsTemplateInput), graphql_name="input", default=None)),) + ), + ) + """Unmark a project as a template. + + Arguments: + + * `input` (`UnmarkProjectV2AsTemplateInput!`): Parameters for + UnmarkProjectV2AsTemplate + """ + + unminimize_comment = sgqlc.types.Field( + "UnminimizeCommentPayload", + graphql_name="unminimizeComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnminimizeCommentInput), graphql_name="input", default=None)),) + ), + ) + """Unminimizes a comment on an Issue, Commit, Pull Request, or Gist + + Arguments: + + * `input` (`UnminimizeCommentInput!`): Parameters for + UnminimizeComment + """ + + unpin_issue = sgqlc.types.Field( + "UnpinIssuePayload", + graphql_name="unpinIssue", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(UnpinIssueInput), graphql_name="input", default=None)),)), + ) + """Unpin a pinned issue from a repository + + Arguments: + + * `input` (`UnpinIssueInput!`): Parameters for UnpinIssue + """ + + unresolve_review_thread = sgqlc.types.Field( + "UnresolveReviewThreadPayload", + graphql_name="unresolveReviewThread", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UnresolveReviewThreadInput), graphql_name="input", default=None)),) + ), + ) + """Marks a review thread as unresolved. + + Arguments: + + * `input` (`UnresolveReviewThreadInput!`): Parameters for + UnresolveReviewThread + """ + + update_branch_protection_rule = sgqlc.types.Field( + "UpdateBranchProtectionRulePayload", + graphql_name="updateBranchProtectionRule", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateBranchProtectionRuleInput), graphql_name="input", default=None)),) + ), + ) + """Update a branch protection rule + + Arguments: + + * `input` (`UpdateBranchProtectionRuleInput!`): Parameters for + UpdateBranchProtectionRule + """ + + update_check_run = sgqlc.types.Field( + "UpdateCheckRunPayload", + graphql_name="updateCheckRun", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateCheckRunInput), graphql_name="input", default=None)),) + ), + ) + """Update a check run + + Arguments: + + * `input` (`UpdateCheckRunInput!`): Parameters for UpdateCheckRun + """ + + update_check_suite_preferences = sgqlc.types.Field( + "UpdateCheckSuitePreferencesPayload", + graphql_name="updateCheckSuitePreferences", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateCheckSuitePreferencesInput), graphql_name="input", default=None)),) + ), + ) + """Modifies the settings of an existing check suite + + Arguments: + + * `input` (`UpdateCheckSuitePreferencesInput!`): Parameters for + UpdateCheckSuitePreferences + """ + + update_discussion = sgqlc.types.Field( + "UpdateDiscussionPayload", + graphql_name="updateDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Update a discussion + + Arguments: + + * `input` (`UpdateDiscussionInput!`): Parameters for + UpdateDiscussion + """ + + update_discussion_comment = sgqlc.types.Field( + "UpdateDiscussionCommentPayload", + graphql_name="updateDiscussionComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateDiscussionCommentInput), graphql_name="input", default=None)),) + ), + ) + """Update the contents of a comment on a Discussion + + Arguments: + + * `input` (`UpdateDiscussionCommentInput!`): Parameters for + UpdateDiscussionComment + """ + + update_enterprise_administrator_role = sgqlc.types.Field( + "UpdateEnterpriseAdministratorRolePayload", + graphql_name="updateEnterpriseAdministratorRole", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateEnterpriseAdministratorRoleInput), graphql_name="input", default=None)),) + ), + ) + """Updates the role of an enterprise administrator. + + Arguments: + + * `input` (`UpdateEnterpriseAdministratorRoleInput!`): Parameters + for UpdateEnterpriseAdministratorRole + """ + + update_enterprise_allow_private_repository_forking_setting = sgqlc.types.Field( + "UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload", + graphql_name="updateEnterpriseAllowPrivateRepositoryForkingSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets whether private repository forks are enabled for an + enterprise. + + Arguments: + + * `input` + (`UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput!`): + Parameters for + UpdateEnterpriseAllowPrivateRepositoryForkingSetting + """ + + update_enterprise_default_repository_permission_setting = sgqlc.types.Field( + "UpdateEnterpriseDefaultRepositoryPermissionSettingPayload", + graphql_name="updateEnterpriseDefaultRepositoryPermissionSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseDefaultRepositoryPermissionSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets the base repository permission for organizations in an + enterprise. + + Arguments: + + * `input` + (`UpdateEnterpriseDefaultRepositoryPermissionSettingInput!`): + Parameters for + UpdateEnterpriseDefaultRepositoryPermissionSetting + """ + + update_enterprise_members_can_change_repository_visibility_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload", + graphql_name="updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput), + graphql_name="input", + default=None, + ), + ), + ) + ), + ) + """Sets whether organization members with admin permissions on a + repository can change repository visibility. + + Arguments: + + * `input` (`UpdateEnterpriseMembersCanChangeRepositoryVisibilitySe + ttingInput!`): Parameters for + UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting + """ + + update_enterprise_members_can_create_repositories_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload", + graphql_name="updateEnterpriseMembersCanCreateRepositoriesSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanCreateRepositoriesSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets the members can create repositories setting for an + enterprise. + + Arguments: + + * `input` + (`UpdateEnterpriseMembersCanCreateRepositoriesSettingInput!`): + Parameters for + UpdateEnterpriseMembersCanCreateRepositoriesSetting + """ + + update_enterprise_members_can_delete_issues_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanDeleteIssuesSettingPayload", + graphql_name="updateEnterpriseMembersCanDeleteIssuesSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanDeleteIssuesSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets the members can delete issues setting for an enterprise. + + Arguments: + + * `input` (`UpdateEnterpriseMembersCanDeleteIssuesSettingInput!`): + Parameters for UpdateEnterpriseMembersCanDeleteIssuesSetting + """ + + update_enterprise_members_can_delete_repositories_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload", + graphql_name="updateEnterpriseMembersCanDeleteRepositoriesSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets the members can delete repositories setting for an + enterprise. + + Arguments: + + * `input` + (`UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput!`): + Parameters for + UpdateEnterpriseMembersCanDeleteRepositoriesSetting + """ + + update_enterprise_members_can_invite_collaborators_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload", + graphql_name="updateEnterpriseMembersCanInviteCollaboratorsSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets whether members can invite collaborators are enabled for an + enterprise. + + Arguments: + + * `input` + (`UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput!`): + Parameters for + UpdateEnterpriseMembersCanInviteCollaboratorsSetting + """ + + update_enterprise_members_can_make_purchases_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanMakePurchasesSettingPayload", + graphql_name="updateEnterpriseMembersCanMakePurchasesSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanMakePurchasesSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets whether or not an organization admin can make purchases. + + Arguments: + + * `input` + (`UpdateEnterpriseMembersCanMakePurchasesSettingInput!`): + Parameters for UpdateEnterpriseMembersCanMakePurchasesSetting + """ + + update_enterprise_members_can_update_protected_branches_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload", + graphql_name="updateEnterpriseMembersCanUpdateProtectedBranchesSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput), + graphql_name="input", + default=None, + ), + ), + ) + ), + ) + """Sets the members can update protected branches setting for an + enterprise. + + Arguments: + + * `input` (`UpdateEnterpriseMembersCanUpdateProtectedBranchesSetti + ngInput!`): Parameters for + UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting + """ + + update_enterprise_members_can_view_dependency_insights_setting = sgqlc.types.Field( + "UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload", + graphql_name="updateEnterpriseMembersCanViewDependencyInsightsSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput), + graphql_name="input", + default=None, + ), + ), + ) + ), + ) + """Sets the members can view dependency insights for an enterprise. + + Arguments: + + * `input` (`UpdateEnterpriseMembersCanViewDependencyInsightsSettin + gInput!`): Parameters for + UpdateEnterpriseMembersCanViewDependencyInsightsSetting + """ + + update_enterprise_organization_projects_setting = sgqlc.types.Field( + "UpdateEnterpriseOrganizationProjectsSettingPayload", + graphql_name="updateEnterpriseOrganizationProjectsSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseOrganizationProjectsSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets whether organization projects are enabled for an enterprise. + + Arguments: + + * `input` (`UpdateEnterpriseOrganizationProjectsSettingInput!`): + Parameters for UpdateEnterpriseOrganizationProjectsSetting + """ + + update_enterprise_owner_organization_role = sgqlc.types.Field( + "UpdateEnterpriseOwnerOrganizationRolePayload", + graphql_name="updateEnterpriseOwnerOrganizationRole", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg(sgqlc.types.non_null(UpdateEnterpriseOwnerOrganizationRoleInput), graphql_name="input", default=None), + ), + ) + ), + ) + """Updates the role of an enterprise owner with an organization. + + Arguments: + + * `input` (`UpdateEnterpriseOwnerOrganizationRoleInput!`): + Parameters for UpdateEnterpriseOwnerOrganizationRole + """ + + update_enterprise_profile = sgqlc.types.Field( + "UpdateEnterpriseProfilePayload", + graphql_name="updateEnterpriseProfile", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateEnterpriseProfileInput), graphql_name="input", default=None)),) + ), + ) + """Updates an enterprise's profile. + + Arguments: + + * `input` (`UpdateEnterpriseProfileInput!`): Parameters for + UpdateEnterpriseProfile + """ + + update_enterprise_repository_projects_setting = sgqlc.types.Field( + "UpdateEnterpriseRepositoryProjectsSettingPayload", + graphql_name="updateEnterpriseRepositoryProjectsSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseRepositoryProjectsSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets whether repository projects are enabled for a enterprise. + + Arguments: + + * `input` (`UpdateEnterpriseRepositoryProjectsSettingInput!`): + Parameters for UpdateEnterpriseRepositoryProjectsSetting + """ + + update_enterprise_team_discussions_setting = sgqlc.types.Field( + "UpdateEnterpriseTeamDiscussionsSettingPayload", + graphql_name="updateEnterpriseTeamDiscussionsSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg(sgqlc.types.non_null(UpdateEnterpriseTeamDiscussionsSettingInput), graphql_name="input", default=None), + ), + ) + ), + ) + """Sets whether team discussions are enabled for an enterprise. + + Arguments: + + * `input` (`UpdateEnterpriseTeamDiscussionsSettingInput!`): + Parameters for UpdateEnterpriseTeamDiscussionsSetting + """ + + update_enterprise_two_factor_authentication_required_setting = sgqlc.types.Field( + "UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload", + graphql_name="updateEnterpriseTwoFactorAuthenticationRequiredSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput), + graphql_name="input", + default=None, + ), + ), + ) + ), + ) + """Sets whether two factor authentication is required for all users + in an enterprise. + + Arguments: + + * `input` (`UpdateEnterpriseTwoFactorAuthenticationRequiredSetting + Input!`): Parameters for + UpdateEnterpriseTwoFactorAuthenticationRequiredSetting + """ + + update_environment = sgqlc.types.Field( + "UpdateEnvironmentPayload", + graphql_name="updateEnvironment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateEnvironmentInput), graphql_name="input", default=None)),) + ), + ) + """Updates an environment. + + Arguments: + + * `input` (`UpdateEnvironmentInput!`): Parameters for + UpdateEnvironment + """ + + update_ip_allow_list_enabled_setting = sgqlc.types.Field( + "UpdateIpAllowListEnabledSettingPayload", + graphql_name="updateIpAllowListEnabledSetting", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateIpAllowListEnabledSettingInput), graphql_name="input", default=None)),) + ), + ) + """Sets whether an IP allow list is enabled on an owner. + + Arguments: + + * `input` (`UpdateIpAllowListEnabledSettingInput!`): Parameters + for UpdateIpAllowListEnabledSetting + """ + + update_ip_allow_list_entry = sgqlc.types.Field( + "UpdateIpAllowListEntryPayload", + graphql_name="updateIpAllowListEntry", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateIpAllowListEntryInput), graphql_name="input", default=None)),) + ), + ) + """Updates an IP allow list entry. + + Arguments: + + * `input` (`UpdateIpAllowListEntryInput!`): Parameters for + UpdateIpAllowListEntry + """ + + update_ip_allow_list_for_installed_apps_enabled_setting = sgqlc.types.Field( + "UpdateIpAllowListForInstalledAppsEnabledSettingPayload", + graphql_name="updateIpAllowListForInstalledAppsEnabledSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateIpAllowListForInstalledAppsEnabledSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets whether IP allow list configuration for installed GitHub Apps + is enabled on an owner. + + Arguments: + + * `input` + (`UpdateIpAllowListForInstalledAppsEnabledSettingInput!`): + Parameters for UpdateIpAllowListForInstalledAppsEnabledSetting + """ + + update_issue = sgqlc.types.Field( + "UpdateIssuePayload", + graphql_name="updateIssue", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateIssueInput), graphql_name="input", default=None)),)), + ) + """Updates an Issue. + + Arguments: + + * `input` (`UpdateIssueInput!`): Parameters for UpdateIssue + """ + + update_issue_comment = sgqlc.types.Field( + "UpdateIssueCommentPayload", + graphql_name="updateIssueComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateIssueCommentInput), graphql_name="input", default=None)),) + ), + ) + """Updates an IssueComment object. + + Arguments: + + * `input` (`UpdateIssueCommentInput!`): Parameters for + UpdateIssueComment + """ + + update_notification_restriction_setting = sgqlc.types.Field( + "UpdateNotificationRestrictionSettingPayload", + graphql_name="updateNotificationRestrictionSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg(sgqlc.types.non_null(UpdateNotificationRestrictionSettingInput), graphql_name="input", default=None), + ), + ) + ), + ) + """Update the setting to restrict notifications to only verified or + approved domains available to an owner. + + Arguments: + + * `input` (`UpdateNotificationRestrictionSettingInput!`): + Parameters for UpdateNotificationRestrictionSetting + """ + + update_organization_allow_private_repository_forking_setting = sgqlc.types.Field( + "UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload", + graphql_name="updateOrganizationAllowPrivateRepositoryForkingSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateOrganizationAllowPrivateRepositoryForkingSettingInput), + graphql_name="input", + default=None, + ), + ), + ) + ), + ) + """Sets whether private repository forks are enabled for an + organization. + + Arguments: + + * `input` (`UpdateOrganizationAllowPrivateRepositoryForkingSetting + Input!`): Parameters for + UpdateOrganizationAllowPrivateRepositoryForkingSetting + """ + + update_organization_web_commit_signoff_setting = sgqlc.types.Field( + "UpdateOrganizationWebCommitSignoffSettingPayload", + graphql_name="updateOrganizationWebCommitSignoffSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg( + sgqlc.types.non_null(UpdateOrganizationWebCommitSignoffSettingInput), graphql_name="input", default=None + ), + ), + ) + ), + ) + """Sets whether contributors are required to sign off on web-based + commits for repositories in an organization. + + Arguments: + + * `input` (`UpdateOrganizationWebCommitSignoffSettingInput!`): + Parameters for UpdateOrganizationWebCommitSignoffSetting + """ + + update_project = sgqlc.types.Field( + "UpdateProjectPayload", + graphql_name="updateProject", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectInput), graphql_name="input", default=None)),) + ), + ) + """Updates an existing project. + + Arguments: + + * `input` (`UpdateProjectInput!`): Parameters for UpdateProject + """ + + update_project_card = sgqlc.types.Field( + "UpdateProjectCardPayload", + graphql_name="updateProjectCard", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectCardInput), graphql_name="input", default=None)),) + ), + ) + """Updates an existing project card. + + Arguments: + + * `input` (`UpdateProjectCardInput!`): Parameters for + UpdateProjectCard + """ + + update_project_column = sgqlc.types.Field( + "UpdateProjectColumnPayload", + graphql_name="updateProjectColumn", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectColumnInput), graphql_name="input", default=None)),) + ), + ) + """Updates an existing project column. + + Arguments: + + * `input` (`UpdateProjectColumnInput!`): Parameters for + UpdateProjectColumn + """ + + update_project_v2 = sgqlc.types.Field( + "UpdateProjectV2Payload", + graphql_name="updateProjectV2", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectV2Input), graphql_name="input", default=None)),) + ), + ) + """Updates an existing project (beta). + + Arguments: + + * `input` (`UpdateProjectV2Input!`): Parameters for + UpdateProjectV2 + """ + + update_project_v2_collaborators = sgqlc.types.Field( + "UpdateProjectV2CollaboratorsPayload", + graphql_name="updateProjectV2Collaborators", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectV2CollaboratorsInput), graphql_name="input", default=None)),) + ), + ) + """Update the collaborators on a team or a project + + Arguments: + + * `input` (`UpdateProjectV2CollaboratorsInput!`): Parameters for + UpdateProjectV2Collaborators + """ + + update_project_v2_draft_issue = sgqlc.types.Field( + "UpdateProjectV2DraftIssuePayload", + graphql_name="updateProjectV2DraftIssue", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectV2DraftIssueInput), graphql_name="input", default=None)),) + ), + ) + """Updates a draft issue within a Project. + + Arguments: + + * `input` (`UpdateProjectV2DraftIssueInput!`): Parameters for + UpdateProjectV2DraftIssue + """ + + update_project_v2_item_field_value = sgqlc.types.Field( + "UpdateProjectV2ItemFieldValuePayload", + graphql_name="updateProjectV2ItemFieldValue", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectV2ItemFieldValueInput), graphql_name="input", default=None)),) + ), + ) + """This mutation updates the value of a field for an item in a + Project. Currently only single-select, text, number, date, and + iteration fields are supported. + + Arguments: + + * `input` (`UpdateProjectV2ItemFieldValueInput!`): Parameters for + UpdateProjectV2ItemFieldValue + """ + + update_project_v2_item_position = sgqlc.types.Field( + "UpdateProjectV2ItemPositionPayload", + graphql_name="updateProjectV2ItemPosition", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateProjectV2ItemPositionInput), graphql_name="input", default=None)),) + ), + ) + """This mutation updates the position of the item in the project, + where the position represents the priority of an item. + + Arguments: + + * `input` (`UpdateProjectV2ItemPositionInput!`): Parameters for + UpdateProjectV2ItemPosition + """ + + update_pull_request = sgqlc.types.Field( + "UpdatePullRequestPayload", + graphql_name="updatePullRequest", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdatePullRequestInput), graphql_name="input", default=None)),) + ), + ) + """Update a pull request + + Arguments: + + * `input` (`UpdatePullRequestInput!`): Parameters for + UpdatePullRequest + """ + + update_pull_request_branch = sgqlc.types.Field( + "UpdatePullRequestBranchPayload", + graphql_name="updatePullRequestBranch", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdatePullRequestBranchInput), graphql_name="input", default=None)),) + ), + ) + """Merge or Rebase HEAD from upstream branch into pull request branch + + Arguments: + + * `input` (`UpdatePullRequestBranchInput!`): Parameters for + UpdatePullRequestBranch + """ + + update_pull_request_review = sgqlc.types.Field( + "UpdatePullRequestReviewPayload", + graphql_name="updatePullRequestReview", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdatePullRequestReviewInput), graphql_name="input", default=None)),) + ), + ) + """Updates the body of a pull request review. + + Arguments: + + * `input` (`UpdatePullRequestReviewInput!`): Parameters for + UpdatePullRequestReview + """ + + update_pull_request_review_comment = sgqlc.types.Field( + "UpdatePullRequestReviewCommentPayload", + graphql_name="updatePullRequestReviewComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdatePullRequestReviewCommentInput), graphql_name="input", default=None)),) + ), + ) + """Updates a pull request review comment. + + Arguments: + + * `input` (`UpdatePullRequestReviewCommentInput!`): Parameters for + UpdatePullRequestReviewComment + """ + + update_ref = sgqlc.types.Field( + "UpdateRefPayload", + graphql_name="updateRef", + args=sgqlc.types.ArgDict((("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateRefInput), graphql_name="input", default=None)),)), + ) + """Update a Git Ref. + + Arguments: + + * `input` (`UpdateRefInput!`): Parameters for UpdateRef + """ + + update_repository = sgqlc.types.Field( + "UpdateRepositoryPayload", + graphql_name="updateRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Update information about a repository. + + Arguments: + + * `input` (`UpdateRepositoryInput!`): Parameters for + UpdateRepository + """ + + update_repository_ruleset = sgqlc.types.Field( + "UpdateRepositoryRulesetPayload", + graphql_name="updateRepositoryRuleset", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateRepositoryRulesetInput), graphql_name="input", default=None)),) + ), + ) + """Update a repository ruleset + + Arguments: + + * `input` (`UpdateRepositoryRulesetInput!`): Parameters for + UpdateRepositoryRuleset + """ + + update_repository_web_commit_signoff_setting = sgqlc.types.Field( + "UpdateRepositoryWebCommitSignoffSettingPayload", + graphql_name="updateRepositoryWebCommitSignoffSetting", + args=sgqlc.types.ArgDict( + ( + ( + "input", + sgqlc.types.Arg(sgqlc.types.non_null(UpdateRepositoryWebCommitSignoffSettingInput), graphql_name="input", default=None), + ), + ) + ), + ) + """Sets whether contributors are required to sign off on web-based + commits for a repository. + + Arguments: + + * `input` (`UpdateRepositoryWebCommitSignoffSettingInput!`): + Parameters for UpdateRepositoryWebCommitSignoffSetting + """ + + update_sponsorship_preferences = sgqlc.types.Field( + "UpdateSponsorshipPreferencesPayload", + graphql_name="updateSponsorshipPreferences", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateSponsorshipPreferencesInput), graphql_name="input", default=None)),) + ), + ) + """Change visibility of your sponsorship and opt in or out of email + updates from the maintainer. + + Arguments: + + * `input` (`UpdateSponsorshipPreferencesInput!`): Parameters for + UpdateSponsorshipPreferences + """ + + update_subscription = sgqlc.types.Field( + "UpdateSubscriptionPayload", + graphql_name="updateSubscription", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateSubscriptionInput), graphql_name="input", default=None)),) + ), + ) + """Updates the state for subscribable subjects. + + Arguments: + + * `input` (`UpdateSubscriptionInput!`): Parameters for + UpdateSubscription + """ + + update_team_discussion = sgqlc.types.Field( + "UpdateTeamDiscussionPayload", + graphql_name="updateTeamDiscussion", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateTeamDiscussionInput), graphql_name="input", default=None)),) + ), + ) + """Updates a team discussion. + + Arguments: + + * `input` (`UpdateTeamDiscussionInput!`): Parameters for + UpdateTeamDiscussion + """ + + update_team_discussion_comment = sgqlc.types.Field( + "UpdateTeamDiscussionCommentPayload", + graphql_name="updateTeamDiscussionComment", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateTeamDiscussionCommentInput), graphql_name="input", default=None)),) + ), + ) + """Updates a discussion comment. + + Arguments: + + * `input` (`UpdateTeamDiscussionCommentInput!`): Parameters for + UpdateTeamDiscussionComment + """ + + update_teams_repository = sgqlc.types.Field( + "UpdateTeamsRepositoryPayload", + graphql_name="updateTeamsRepository", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateTeamsRepositoryInput), graphql_name="input", default=None)),) + ), + ) + """Update team repository. + + Arguments: + + * `input` (`UpdateTeamsRepositoryInput!`): Parameters for + UpdateTeamsRepository + """ + + update_topics = sgqlc.types.Field( + "UpdateTopicsPayload", + graphql_name="updateTopics", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(UpdateTopicsInput), graphql_name="input", default=None)),) + ), + ) + """Replaces the repository's topics with the given topics. + + Arguments: + + * `input` (`UpdateTopicsInput!`): Parameters for UpdateTopics + """ + + verify_verifiable_domain = sgqlc.types.Field( + "VerifyVerifiableDomainPayload", + graphql_name="verifyVerifiableDomain", + args=sgqlc.types.ArgDict( + (("input", sgqlc.types.Arg(sgqlc.types.non_null(VerifyVerifiableDomainInput), graphql_name="input", default=None)),) + ), + ) + """Verify that a verifiable domain has the expected DNS record. + + Arguments: + + * `input` (`VerifyVerifiableDomainInput!`): Parameters for + VerifyVerifiableDomain + """ + + +class OrganizationAuditEntryConnection(sgqlc.types.relay.Connection): + """The connection type for OrganizationAuditEntry.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("OrganizationAuditEntryEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("OrganizationAuditEntry"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class OrganizationAuditEntryEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("OrganizationAuditEntry", graphql_name="node") + """The item at the end of the edge.""" + + +class OrganizationConnection(sgqlc.types.relay.Connection): + """A list of organizations managed by an enterprise.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("OrganizationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Organization"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class OrganizationEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Organization", graphql_name="node") + """The item at the end of the edge.""" + + +class OrganizationEnterpriseOwnerConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("OrganizationEnterpriseOwnerEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class OrganizationEnterpriseOwnerEdge(sgqlc.types.Type): + """An enterprise owner in the context of an organization that is part + of the enterprise. + """ + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "organization_role") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("User", graphql_name="node") + """The item at the end of the edge.""" + + organization_role = sgqlc.types.Field(sgqlc.types.non_null(RoleInOrganization), graphql_name="organizationRole") + """The role of the owner with respect to the organization.""" + + +class OrganizationInvitationConnection(sgqlc.types.relay.Connection): + """The connection type for OrganizationInvitation.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("OrganizationInvitationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("OrganizationInvitation"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class OrganizationInvitationEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("OrganizationInvitation", graphql_name="node") + """The item at the end of the edge.""" + + +class OrganizationMemberConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("OrganizationMemberEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class OrganizationMemberEdge(sgqlc.types.Type): + """Represents a user within an organization.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "has_two_factor_enabled", "node", "role") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + has_two_factor_enabled = sgqlc.types.Field(Boolean, graphql_name="hasTwoFactorEnabled") + """Whether the organization member has two factor enabled or not. + Returns null if information is not available to viewer. + """ + + node = sgqlc.types.Field("User", graphql_name="node") + """The item at the end of the edge.""" + + role = sgqlc.types.Field(OrganizationMemberRole, graphql_name="role") + """The role this user has in the organization.""" + + +class PackageConnection(sgqlc.types.relay.Connection): + """The connection type for Package.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PackageEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Package"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PackageEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Package", graphql_name="node") + """The item at the end of the edge.""" + + +class PackageFileConnection(sgqlc.types.relay.Connection): + """The connection type for PackageFile.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PackageFileEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PackageFile"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PackageFileEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PackageFile", graphql_name="node") + """The item at the end of the edge.""" + + +class PackageStatistics(sgqlc.types.Type): + """Represents a object that contains package activity statistics such + as downloads. + """ + + __schema__ = github_schema + __field_names__ = ("downloads_total_count",) + downloads_total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="downloadsTotalCount") + """Number of times the package was downloaded since it was created.""" + + +class PackageVersionConnection(sgqlc.types.relay.Connection): + """The connection type for PackageVersion.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PackageVersionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PackageVersion"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null("PageInfo"), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PackageVersionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PackageVersion", graphql_name="node") + """The item at the end of the edge.""" + + +class PackageVersionStatistics(sgqlc.types.Type): + """Represents a object that contains package version activity + statistics such as downloads. + """ + + __schema__ = github_schema + __field_names__ = ("downloads_total_count",) + downloads_total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="downloadsTotalCount") + """Number of times the package was downloaded since it was created.""" + + +class PageInfo(sgqlc.types.Type): + """Information about pagination in a connection.""" + + __schema__ = github_schema + __field_names__ = ("end_cursor", "has_next_page", "has_previous_page", "start_cursor") + end_cursor = sgqlc.types.Field(String, graphql_name="endCursor") + """When paginating forwards, the cursor to continue.""" + + has_next_page = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasNextPage") + """When paginating forwards, are there more items?""" + + has_previous_page = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasPreviousPage") + """When paginating backwards, are there more items?""" + + start_cursor = sgqlc.types.Field(String, graphql_name="startCursor") + """When paginating backwards, the cursor to continue.""" + + +class PermissionSource(sgqlc.types.Type): + """A level of permission and source for a user's access to a + repository. + """ + + __schema__ = github_schema + __field_names__ = ("organization", "permission", "source") + organization = sgqlc.types.Field(sgqlc.types.non_null("Organization"), graphql_name="organization") + """The organization the repository belongs to.""" + + permission = sgqlc.types.Field(sgqlc.types.non_null(DefaultRepositoryPermissionField), graphql_name="permission") + """The level of access this source has granted to the user.""" + + source = sgqlc.types.Field(sgqlc.types.non_null("PermissionGranter"), graphql_name="source") + """The source of this permission.""" + + +class PinIssuePayload(sgqlc.types.Type): + """Autogenerated return type of PinIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The issue that was pinned""" + + +class PinnableItemConnection(sgqlc.types.relay.Connection): + """The connection type for PinnableItem.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PinnableItemEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PinnableItem"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PinnableItemEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PinnableItem", graphql_name="node") + """The item at the end of the edge.""" + + +class PinnedDiscussionConnection(sgqlc.types.relay.Connection): + """The connection type for PinnedDiscussion.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PinnedDiscussionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PinnedDiscussion"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PinnedDiscussionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PinnedDiscussion", graphql_name="node") + """The item at the end of the edge.""" + + +class PinnedIssueConnection(sgqlc.types.relay.Connection): + """The connection type for PinnedIssue.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PinnedIssueEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PinnedIssue"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PinnedIssueEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PinnedIssue", graphql_name="node") + """The item at the end of the edge.""" + + +class ProfileItemShowcase(sgqlc.types.Type): + """A curatable list of repositories relating to a repository owner, + which defaults to showing the most popular repositories they own. + """ + + __schema__ = github_schema + __field_names__ = ("has_pinned_items", "items") + has_pinned_items = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasPinnedItems") + """Whether or not the owner has pinned any repositories or gists.""" + + items = sgqlc.types.Field( + sgqlc.types.non_null(PinnableItemConnection), + graphql_name="items", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The repositories and gists in the showcase. If the profile owner + has any pinned items, those will be returned. Otherwise, the + profile owner's popular repositories will be returned. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class ProjectCardConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectCard.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectCardEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectCard"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectCardEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectCard", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectColumnConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectColumn.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectColumnEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectColumn"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectColumnEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectColumn", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectConnection(sgqlc.types.relay.Connection): + """A list of projects associated with the owner.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Project"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Project", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectProgress(sgqlc.types.Type): + """Project progress stats.""" + + __schema__ = github_schema + __field_names__ = ( + "done_count", + "done_percentage", + "enabled", + "in_progress_count", + "in_progress_percentage", + "todo_count", + "todo_percentage", + ) + done_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="doneCount") + """The number of done cards.""" + + done_percentage = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="donePercentage") + """The percentage of done cards.""" + + enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="enabled") + """Whether progress tracking is enabled and cards with purpose exist + for this project + """ + + in_progress_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="inProgressCount") + """The number of in-progress cards.""" + + in_progress_percentage = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="inProgressPercentage") + """The percentage of in-progress cards.""" + + todo_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="todoCount") + """The number of to do cards.""" + + todo_percentage = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="todoPercentage") + """The percentage of to do cards.""" + + +class ProjectV2ActorConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2Actor.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2ActorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2Actor"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2ActorEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2Actor", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2Connection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2Edge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2Edge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2FieldConfigurationConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2FieldConfiguration.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2FieldConfigurationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2FieldConfiguration"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2FieldConfigurationEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2FieldConfiguration", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2FieldConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2Field.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2FieldEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2Field"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2FieldEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2Field", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2ItemConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2Item.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2ItemEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2Item"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2ItemEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2Item", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2ItemFieldLabelValue(sgqlc.types.Type): + """The value of the labels field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("field", "labels") + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The field that contains this value.""" + + labels = sgqlc.types.Field( + LabelConnection, + graphql_name="labels", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Labels value of a field + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class ProjectV2ItemFieldMilestoneValue(sgqlc.types.Type): + """The value of a milestone field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("field", "milestone") + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The field that contains this value.""" + + milestone = sgqlc.types.Field("Milestone", graphql_name="milestone") + """Milestone value of a field""" + + +class ProjectV2ItemFieldPullRequestValue(sgqlc.types.Type): + """The value of a pull request field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("field", "pull_requests") + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The field that contains this value.""" + + pull_requests = sgqlc.types.Field( + "PullRequestConnection", + graphql_name="pullRequests", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(PullRequestOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"}), + ), + ) + ), + ) + """The pull requests for this field + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`PullRequestOrder`): Ordering options for pull + requests. (default: `{field: CREATED_AT, direction: ASC}`) + """ + + +class ProjectV2ItemFieldRepositoryValue(sgqlc.types.Type): + """The value of a repository field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("field", "repository") + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The field that contains this value.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository for this field.""" + + +class ProjectV2ItemFieldReviewerValue(sgqlc.types.Type): + """The value of a reviewers field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("field", "reviewers") + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The field that contains this value.""" + + reviewers = sgqlc.types.Field( + "RequestedReviewerConnection", + graphql_name="reviewers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The reviewers for this field. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class ProjectV2ItemFieldUserValue(sgqlc.types.Type): + """The value of a user field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("field", "users") + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The field that contains this value.""" + + users = sgqlc.types.Field( + "UserConnection", + graphql_name="users", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The users for this field + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class ProjectV2ItemFieldValueConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2ItemFieldValue.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2ItemFieldValueEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2ItemFieldValue"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2ItemFieldValueEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2ItemFieldValue", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2IterationFieldConfiguration(sgqlc.types.Type): + """Iteration field configuration for a project.""" + + __schema__ = github_schema + __field_names__ = ("completed_iterations", "duration", "iterations", "start_day") + completed_iterations = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("ProjectV2IterationFieldIteration"))), + graphql_name="completedIterations", + ) + """The iteration's completed iterations""" + + duration = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="duration") + """The iteration's duration in days""" + + iterations = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("ProjectV2IterationFieldIteration"))), graphql_name="iterations" + ) + """The iteration's iterations""" + + start_day = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="startDay") + """The iteration's start day of the week""" + + +class ProjectV2IterationFieldIteration(sgqlc.types.Type): + """Iteration field iteration settings for a project.""" + + __schema__ = github_schema + __field_names__ = ("duration", "id", "start_date", "title", "title_html") + duration = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="duration") + """The iteration's duration in days""" + + id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="id") + """The iteration's ID.""" + + start_date = sgqlc.types.Field(sgqlc.types.non_null(Date), graphql_name="startDate") + """The iteration's start date""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The iteration's title.""" + + title_html = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="titleHTML") + """The iteration's html title.""" + + +class ProjectV2SingleSelectFieldOption(sgqlc.types.Type): + """Single select field option for a configuration for a project.""" + + __schema__ = github_schema + __field_names__ = ("id", "name", "name_html") + id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="id") + """The option's ID.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The option's name.""" + + name_html = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="nameHTML") + """The option's html name.""" + + +class ProjectV2SortBy(sgqlc.types.Type): + """Represents a sort by field and direction.""" + + __schema__ = github_schema + __field_names__ = ("direction", "field") + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction of the sorting. Possible values are ASC and DESC.""" + + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2Field"), graphql_name="field") + """The field by which items are sorted.""" + + +class ProjectV2SortByConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2SortBy.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2SortByEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(ProjectV2SortBy), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2SortByEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(ProjectV2SortBy, graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2SortByField(sgqlc.types.Type): + """Represents a sort by field and direction.""" + + __schema__ = github_schema + __field_names__ = ("direction", "field") + direction = sgqlc.types.Field(sgqlc.types.non_null(OrderDirection), graphql_name="direction") + """The direction of the sorting. Possible values are ASC and DESC.""" + + field = sgqlc.types.Field(sgqlc.types.non_null("ProjectV2FieldConfiguration"), graphql_name="field") + """The field by which items are sorted.""" + + +class ProjectV2SortByFieldConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2SortByField.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2SortByFieldEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(ProjectV2SortByField), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2SortByFieldEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(ProjectV2SortByField, graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2ViewConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2View.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2ViewEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2View"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2ViewEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2View", graphql_name="node") + """The item at the end of the edge.""" + + +class ProjectV2WorkflowConnection(sgqlc.types.relay.Connection): + """The connection type for ProjectV2Workflow.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2WorkflowEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ProjectV2Workflow"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ProjectV2WorkflowEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ProjectV2Workflow", graphql_name="node") + """The item at the end of the edge.""" + + +class PublicKeyConnection(sgqlc.types.relay.Connection): + """The connection type for PublicKey.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PublicKeyEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PublicKey"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PublicKeyEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PublicKey", graphql_name="node") + """The item at the end of the edge.""" + + +class PublishSponsorsTierPayload(sgqlc.types.Type): + """Autogenerated return type of PublishSponsorsTier""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsors_tier") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsors_tier = sgqlc.types.Field("SponsorsTier", graphql_name="sponsorsTier") + """The tier that was published.""" + + +class PullRequestChangedFile(sgqlc.types.Type): + """A file changed in a pull request.""" + + __schema__ = github_schema + __field_names__ = ("additions", "change_type", "deletions", "path", "viewer_viewed_state") + additions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="additions") + """The number of additions to the file.""" + + change_type = sgqlc.types.Field(sgqlc.types.non_null(PatchStatus), graphql_name="changeType") + """How the file was changed in this PullRequest""" + + deletions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="deletions") + """The number of deletions to the file.""" + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path of the file.""" + + viewer_viewed_state = sgqlc.types.Field(sgqlc.types.non_null(FileViewedState), graphql_name="viewerViewedState") + """The state of the file for the viewer.""" + + +class PullRequestChangedFileConnection(sgqlc.types.relay.Connection): + """The connection type for PullRequestChangedFile.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestChangedFileEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(PullRequestChangedFile), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PullRequestChangedFileEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(PullRequestChangedFile, graphql_name="node") + """The item at the end of the edge.""" + + +class PullRequestCommitConnection(sgqlc.types.relay.Connection): + """The connection type for PullRequestCommit.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestCommitEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PullRequestCommit"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PullRequestCommitEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PullRequestCommit", graphql_name="node") + """The item at the end of the edge.""" + + +class PullRequestConnection(sgqlc.types.relay.Connection): + """The connection type for PullRequest.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PullRequest"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PullRequestContributionsByRepository(sgqlc.types.Type): + """This aggregates pull requests opened by a user within one + repository. + """ + + __schema__ = github_schema + __field_names__ = ("contributions", "repository") + contributions = sgqlc.types.Field( + sgqlc.types.non_null(CreatedPullRequestContributionConnection), + graphql_name="contributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(ContributionOrder, graphql_name="orderBy", default={"direction": "DESC"})), + ) + ), + ) + """The pull request contributions. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ContributionOrder`): Ordering options for + contributions returned from the connection. (default: + `{direction: DESC}`) + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository in which the pull requests were opened.""" + + +class PullRequestEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PullRequest", graphql_name="node") + """The item at the end of the edge.""" + + +class PullRequestParameters(sgqlc.types.Type): + """Require all commits be made to a non-target branch and submitted + via a pull request before they can be merged. + """ + + __schema__ = github_schema + __field_names__ = ( + "dismiss_stale_reviews_on_push", + "require_code_owner_review", + "require_last_push_approval", + "required_approving_review_count", + "required_review_thread_resolution", + ) + dismiss_stale_reviews_on_push = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="dismissStaleReviewsOnPush") + """New, reviewable commits pushed will dismiss previous pull request + review approvals. + """ + + require_code_owner_review = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requireCodeOwnerReview") + """Require an approving review in pull requests that modify files + that have a designated code owner. + """ + + require_last_push_approval = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requireLastPushApproval") + """Whether the most recent reviewable push must be approved by + someone other than the person who pushed it. + """ + + required_approving_review_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="requiredApprovingReviewCount") + """The number of approving reviews that are required before a pull + request can be merged. + """ + + required_review_thread_resolution = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiredReviewThreadResolution") + """All conversations on code must be resolved before a pull request + can be merged. + """ + + +class PullRequestReviewCommentConnection(sgqlc.types.relay.Connection): + """The connection type for PullRequestReviewComment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestReviewCommentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PullRequestReviewComment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PullRequestReviewCommentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PullRequestReviewComment", graphql_name="node") + """The item at the end of the edge.""" + + +class PullRequestReviewConnection(sgqlc.types.relay.Connection): + """The connection type for PullRequestReview.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestReviewEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PullRequestReview"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PullRequestReviewContributionsByRepository(sgqlc.types.Type): + """This aggregates pull request reviews made by a user within one + repository. + """ + + __schema__ = github_schema + __field_names__ = ("contributions", "repository") + contributions = sgqlc.types.Field( + sgqlc.types.non_null(CreatedPullRequestReviewContributionConnection), + graphql_name="contributions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(ContributionOrder, graphql_name="orderBy", default={"direction": "DESC"})), + ) + ), + ) + """The pull request review contributions. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ContributionOrder`): Ordering options for + contributions returned from the connection. (default: + `{direction: DESC}`) + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository in which the pull request reviews were made.""" + + +class PullRequestReviewEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PullRequestReview", graphql_name="node") + """The item at the end of the edge.""" + + +class PullRequestReviewThreadConnection(sgqlc.types.relay.Connection): + """Review comment threads for a pull request review.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestReviewThreadEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PullRequestReviewThread"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PullRequestReviewThreadEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PullRequestReviewThread", graphql_name="node") + """The item at the end of the edge.""" + + +class PullRequestRevisionMarker(sgqlc.types.Type): + """Represents the latest point in the pull request timeline for which + the viewer has seen the pull request's commits. + """ + + __schema__ = github_schema + __field_names__ = ("created_at", "last_seen_commit", "pull_request") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + last_seen_commit = sgqlc.types.Field(sgqlc.types.non_null("Commit"), graphql_name="lastSeenCommit") + """The last commit the viewer has seen.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """The pull request to which the marker belongs.""" + + +class PullRequestTemplate(sgqlc.types.Type): + """A repository pull request template.""" + + __schema__ = github_schema + __field_names__ = ("body", "filename", "repository") + body = sgqlc.types.Field(String, graphql_name="body") + """The body of the template""" + + filename = sgqlc.types.Field(String, graphql_name="filename") + """The filename of the template""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository the template belongs to""" + + +class PullRequestTimelineConnection(sgqlc.types.relay.Connection): + """The connection type for PullRequestTimelineItem.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestTimelineItemEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PullRequestTimelineItem"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PullRequestTimelineItemEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PullRequestTimelineItem", graphql_name="node") + """The item at the end of the edge.""" + + +class PullRequestTimelineItemsConnection(sgqlc.types.relay.Connection): + """The connection type for PullRequestTimelineItems.""" + + __schema__ = github_schema + __field_names__ = ("edges", "filtered_count", "nodes", "page_count", "page_info", "total_count", "updated_at") + edges = sgqlc.types.Field(sgqlc.types.list_of("PullRequestTimelineItemsEdge"), graphql_name="edges") + """A list of edges.""" + + filtered_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="filteredCount") + """Identifies the count of items after applying `before` and `after` + filters. + """ + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PullRequestTimelineItems"), graphql_name="nodes") + """A list of nodes.""" + + page_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="pageCount") + """Identifies the count of items after applying `before`/`after` + filters and `first`/`last`/`skip` slicing. + """ + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the timeline was last updated.""" + + +class PullRequestTimelineItemsEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PullRequestTimelineItems", graphql_name="node") + """The item at the end of the edge.""" + + +class PushAllowanceConnection(sgqlc.types.relay.Connection): + """The connection type for PushAllowance.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("PushAllowanceEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("PushAllowance"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class PushAllowanceEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("PushAllowance", graphql_name="node") + """The item at the end of the edge.""" + + +class Query(sgqlc.types.Type): + """The query root of GitHub's GraphQL interface.""" + + __schema__ = github_schema + __field_names__ = ( + "code_of_conduct", + "codes_of_conduct", + "enterprise", + "enterprise_administrator_invitation", + "enterprise_administrator_invitation_by_token", + "license", + "licenses", + "marketplace_categories", + "marketplace_category", + "marketplace_listing", + "marketplace_listings", + "meta", + "node", + "nodes", + "organization", + "rate_limit", + "relay", + "repository", + "repository_owner", + "resource", + "search", + "security_advisories", + "security_advisory", + "security_vulnerabilities", + "sponsorables", + "topic", + "user", + "viewer", + ) + code_of_conduct = sgqlc.types.Field( + "CodeOfConduct", + graphql_name="codeOfConduct", + args=sgqlc.types.ArgDict((("key", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="key", default=None)),)), + ) + """Look up a code of conduct by its key + + Arguments: + + * `key` (`String!`): The code of conduct's key + """ + + codes_of_conduct = sgqlc.types.Field(sgqlc.types.list_of("CodeOfConduct"), graphql_name="codesOfConduct") + """Look up a code of conduct by its key""" + + enterprise = sgqlc.types.Field( + "Enterprise", + graphql_name="enterprise", + args=sgqlc.types.ArgDict( + ( + ("slug", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="slug", default=None)), + ("invitation_token", sgqlc.types.Arg(String, graphql_name="invitationToken", default=None)), + ) + ), + ) + """Look up an enterprise by URL slug. + + Arguments: + + * `slug` (`String!`): The enterprise URL slug. + * `invitation_token` (`String`): The enterprise invitation token. + """ + + enterprise_administrator_invitation = sgqlc.types.Field( + "EnterpriseAdministratorInvitation", + graphql_name="enterpriseAdministratorInvitation", + args=sgqlc.types.ArgDict( + ( + ("user_login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="userLogin", default=None)), + ("enterprise_slug", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="enterpriseSlug", default=None)), + ("role", sgqlc.types.Arg(sgqlc.types.non_null(EnterpriseAdministratorRole), graphql_name="role", default=None)), + ) + ), + ) + """Look up a pending enterprise administrator invitation by invitee, + enterprise and role. + + Arguments: + + * `user_login` (`String!`): The login of the user invited to join + the business. + * `enterprise_slug` (`String!`): The slug of the enterprise the + user was invited to join. + * `role` (`EnterpriseAdministratorRole!`): The role for the + business member invitation. + """ + + enterprise_administrator_invitation_by_token = sgqlc.types.Field( + "EnterpriseAdministratorInvitation", + graphql_name="enterpriseAdministratorInvitationByToken", + args=sgqlc.types.ArgDict( + (("invitation_token", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="invitationToken", default=None)),) + ), + ) + """Look up a pending enterprise administrator invitation by + invitation token. + + Arguments: + + * `invitation_token` (`String!`): The invitation token sent with + the invitation email. + """ + + license = sgqlc.types.Field( + "License", + graphql_name="license", + args=sgqlc.types.ArgDict((("key", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="key", default=None)),)), + ) + """Look up an open source license by its key + + Arguments: + + * `key` (`String!`): The license's downcased SPDX ID + """ + + licenses = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of("License")), graphql_name="licenses") + """Return a list of known open source licenses""" + + marketplace_categories = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("MarketplaceCategory"))), + graphql_name="marketplaceCategories", + args=sgqlc.types.ArgDict( + ( + ( + "include_categories", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="includeCategories", default=None), + ), + ("exclude_empty", sgqlc.types.Arg(Boolean, graphql_name="excludeEmpty", default=None)), + ("exclude_subcategories", sgqlc.types.Arg(Boolean, graphql_name="excludeSubcategories", default=None)), + ) + ), + ) + """Get alphabetically sorted list of Marketplace categories + + Arguments: + + * `include_categories` (`[String!]`): Return only the specified + categories. + * `exclude_empty` (`Boolean`): Exclude categories with no + listings. + * `exclude_subcategories` (`Boolean`): Returns top level + categories only, excluding any subcategories. + """ + + marketplace_category = sgqlc.types.Field( + "MarketplaceCategory", + graphql_name="marketplaceCategory", + args=sgqlc.types.ArgDict( + ( + ("slug", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="slug", default=None)), + ("use_topic_aliases", sgqlc.types.Arg(Boolean, graphql_name="useTopicAliases", default=None)), + ) + ), + ) + """Look up a Marketplace category by its slug. + + Arguments: + + * `slug` (`String!`): The URL slug of the category. + * `use_topic_aliases` (`Boolean`): Also check topic aliases for + the category slug + """ + + marketplace_listing = sgqlc.types.Field( + "MarketplaceListing", + graphql_name="marketplaceListing", + args=sgqlc.types.ArgDict((("slug", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="slug", default=None)),)), + ) + """Look up a single Marketplace listing + + Arguments: + + * `slug` (`String!`): Select the listing that matches this slug. + It's the short name of the listing used in its URL. + """ + + marketplace_listings = sgqlc.types.Field( + sgqlc.types.non_null(MarketplaceListingConnection), + graphql_name="marketplaceListings", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("category_slug", sgqlc.types.Arg(String, graphql_name="categorySlug", default=None)), + ("use_topic_aliases", sgqlc.types.Arg(Boolean, graphql_name="useTopicAliases", default=None)), + ("viewer_can_admin", sgqlc.types.Arg(Boolean, graphql_name="viewerCanAdmin", default=None)), + ("admin_id", sgqlc.types.Arg(ID, graphql_name="adminId", default=None)), + ("organization_id", sgqlc.types.Arg(ID, graphql_name="organizationId", default=None)), + ("all_states", sgqlc.types.Arg(Boolean, graphql_name="allStates", default=None)), + ("slugs", sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name="slugs", default=None)), + ("primary_category_only", sgqlc.types.Arg(Boolean, graphql_name="primaryCategoryOnly", default=False)), + ("with_free_trials_only", sgqlc.types.Arg(Boolean, graphql_name="withFreeTrialsOnly", default=False)), + ) + ), + ) + """Look up Marketplace listings + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `category_slug` (`String`): Select only listings with the given + category. + * `use_topic_aliases` (`Boolean`): Also check topic aliases for + the category slug + * `viewer_can_admin` (`Boolean`): Select listings to which user + has admin access. If omitted, listings visible to the viewer are + returned. + * `admin_id` (`ID`): Select listings that can be administered by + the specified user. + * `organization_id` (`ID`): Select listings for products owned by + the specified organization. + * `all_states` (`Boolean`): Select listings visible to the viewer + even if they are not approved. If omitted or false, only + approved listings will be returned. + * `slugs` (`[String]`): Select the listings with these slugs, if + they are visible to the viewer. + * `primary_category_only` (`Boolean`): Select only listings where + the primary category matches the given category slug. (default: + `false`) + * `with_free_trials_only` (`Boolean`): Select only listings that + offer a free trial. (default: `false`) + """ + + meta = sgqlc.types.Field(sgqlc.types.non_null(GitHubMetadata), graphql_name="meta") + """Return information about the GitHub instance""" + + node = sgqlc.types.Field( + Node, + graphql_name="node", + args=sgqlc.types.ArgDict((("id", sgqlc.types.Arg(sgqlc.types.non_null(ID), graphql_name="id", default=None)),)), + ) + """Fetches an object given its ID. + + Arguments: + + * `id` (`ID!`): ID of the object. + """ + + nodes = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(Node)), + graphql_name="nodes", + args=sgqlc.types.ArgDict( + ( + ( + "ids", + sgqlc.types.Arg(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ID))), graphql_name="ids", default=None), + ), + ) + ), + ) + """Lookup nodes by a list of IDs. + + Arguments: + + * `ids` (`[ID!]!`): The list of node IDs. + """ + + organization = sgqlc.types.Field( + "Organization", + graphql_name="organization", + args=sgqlc.types.ArgDict((("login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="login", default=None)),)), + ) + """Lookup a organization by login. + + Arguments: + + * `login` (`String!`): The organization's login. + """ + + rate_limit = sgqlc.types.Field( + "RateLimit", + graphql_name="rateLimit", + args=sgqlc.types.ArgDict((("dry_run", sgqlc.types.Arg(Boolean, graphql_name="dryRun", default=False)),)), + ) + """The client's rate limit information. + + Arguments: + + * `dry_run` (`Boolean`): If true, calculate the cost for the query + without evaluating it (default: `false`) + """ + + relay = sgqlc.types.Field(sgqlc.types.non_null("Query"), graphql_name="relay") + """Workaround for re-exposing the root query object. (Refer to + https://github.com/facebook/relay/issues/112 for more + information.) + """ + + repository = sgqlc.types.Field( + "Repository", + graphql_name="repository", + args=sgqlc.types.ArgDict( + ( + ("owner", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="owner", default=None)), + ("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)), + ("follow_renames", sgqlc.types.Arg(Boolean, graphql_name="followRenames", default=True)), + ) + ), + ) + """Lookup a given repository by the owner and repository name. + + Arguments: + + * `owner` (`String!`): The login field of a user or organization + * `name` (`String!`): The name of the repository + * `follow_renames` (`Boolean`): Follow repository renames. If + disabled, a repository referenced by its old name will return an + error. (default: `true`) + """ + + repository_owner = sgqlc.types.Field( + RepositoryOwner, + graphql_name="repositoryOwner", + args=sgqlc.types.ArgDict((("login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="login", default=None)),)), + ) + """Lookup a repository owner (ie. either a User or an Organization) + by login. + + Arguments: + + * `login` (`String!`): The username to lookup the owner by. + """ + + resource = sgqlc.types.Field( + UniformResourceLocatable, + graphql_name="resource", + args=sgqlc.types.ArgDict((("url", sgqlc.types.Arg(sgqlc.types.non_null(URI), graphql_name="url", default=None)),)), + ) + """Lookup resource by a URL. + + Arguments: + + * `url` (`URI!`): The URL. + """ + + search = sgqlc.types.Field( + sgqlc.types.non_null("SearchResultItemConnection"), + graphql_name="search", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("query", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="query", default=None)), + ("type", sgqlc.types.Arg(sgqlc.types.non_null(SearchType), graphql_name="type", default=None)), + ) + ), + ) + """Perform a search across resources, returning a maximum of 1,000 + results. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `query` (`String!`): The search string to look for. + * `type` (`SearchType!`): The types of search items to search + within. + """ + + security_advisories = sgqlc.types.Field( + sgqlc.types.non_null("SecurityAdvisoryConnection"), + graphql_name="securityAdvisories", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg(SecurityAdvisoryOrder, graphql_name="orderBy", default={"field": "UPDATED_AT", "direction": "DESC"}), + ), + ("identifier", sgqlc.types.Arg(SecurityAdvisoryIdentifierFilter, graphql_name="identifier", default=None)), + ("published_since", sgqlc.types.Arg(DateTime, graphql_name="publishedSince", default=None)), + ("updated_since", sgqlc.types.Arg(DateTime, graphql_name="updatedSince", default=None)), + ( + "classifications", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(SecurityAdvisoryClassification)), + graphql_name="classifications", + default=None, + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """GitHub Security Advisories + + Arguments: + + * `order_by` (`SecurityAdvisoryOrder`): Ordering options for the + returned topics. (default: `{field: UPDATED_AT, direction: + DESC}`) + * `identifier` (`SecurityAdvisoryIdentifierFilter`): Filter + advisories by identifier, e.g. GHSA or CVE. + * `published_since` (`DateTime`): Filter advisories to those + published since a time in the past. + * `updated_since` (`DateTime`): Filter advisories to those updated + since a time in the past. + * `classifications` (`[SecurityAdvisoryClassification!]`): A list + of classifications to filter advisories by. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + security_advisory = sgqlc.types.Field( + "SecurityAdvisory", + graphql_name="securityAdvisory", + args=sgqlc.types.ArgDict((("ghsa_id", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="ghsaId", default=None)),)), + ) + """Fetch a Security Advisory by its GHSA ID + + Arguments: + + * `ghsa_id` (`String!`): GitHub Security Advisory ID. + """ + + security_vulnerabilities = sgqlc.types.Field( + sgqlc.types.non_null("SecurityVulnerabilityConnection"), + graphql_name="securityVulnerabilities", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg( + SecurityVulnerabilityOrder, graphql_name="orderBy", default={"field": "UPDATED_AT", "direction": "DESC"} + ), + ), + ("ecosystem", sgqlc.types.Arg(SecurityAdvisoryEcosystem, graphql_name="ecosystem", default=None)), + ("package", sgqlc.types.Arg(String, graphql_name="package", default=None)), + ( + "severities", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(SecurityAdvisorySeverity)), graphql_name="severities", default=None + ), + ), + ( + "classifications", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(SecurityAdvisoryClassification)), + graphql_name="classifications", + default=None, + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Software Vulnerabilities documented by GitHub Security Advisories + + Arguments: + + * `order_by` (`SecurityVulnerabilityOrder`): Ordering options for + the returned topics. (default: `{field: UPDATED_AT, direction: + DESC}`) + * `ecosystem` (`SecurityAdvisoryEcosystem`): An ecosystem to + filter vulnerabilities by. + * `package` (`String`): A package name to filter vulnerabilities + by. + * `severities` (`[SecurityAdvisorySeverity!]`): A list of + severities to filter vulnerabilities by. + * `classifications` (`[SecurityAdvisoryClassification!]`): A list + of advisory classifications to filter vulnerabilities by. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + sponsorables = sgqlc.types.Field( + sgqlc.types.non_null("SponsorableItemConnection"), + graphql_name="sponsorables", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(SponsorableOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ("only_dependencies", sgqlc.types.Arg(Boolean, graphql_name="onlyDependencies", default=False)), + ("org_login_for_dependencies", sgqlc.types.Arg(String, graphql_name="orgLoginForDependencies", default=None)), + ("dependency_ecosystem", sgqlc.types.Arg(SecurityAdvisoryEcosystem, graphql_name="dependencyEcosystem", default=None)), + ("ecosystem", sgqlc.types.Arg(DependencyGraphEcosystem, graphql_name="ecosystem", default=None)), + ) + ), + ) + """Users and organizations who can be sponsored via GitHub Sponsors. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`SponsorableOrder`): Ordering options for users and + organizations returned from the connection. (default: `{field: + LOGIN, direction: ASC}`) + * `only_dependencies` (`Boolean`): Whether only sponsorables who + own the viewer's dependencies will be returned. Must be + authenticated to use. Can check an organization instead for + their dependencies owned by sponsorables by passing + orgLoginForDependencies. (default: `false`) + * `org_login_for_dependencies` (`String`): Optional organization + username for whose dependencies should be checked. Used when + onlyDependencies = true. Omit to check your own dependencies. If + you are not an administrator of the organization, only + dependencies from its public repositories will be considered. + * `dependency_ecosystem` (`SecurityAdvisoryEcosystem`): Optional + filter for which dependencies should be checked for sponsorable + owners. Only sponsorable owners of dependencies in this + ecosystem will be included. Used when onlyDependencies = true. + **Upcoming Change on 2022-07-01 UTC** **Description:** + `dependencyEcosystem` will be removed. Use the ecosystem + argument instead. **Reason:** The type is switching from + SecurityAdvisoryEcosystem to DependencyGraphEcosystem. + * `ecosystem` (`DependencyGraphEcosystem`): Optional filter for + which dependencies should be checked for sponsorable owners. + Only sponsorable owners of dependencies in this ecosystem will + be included. Used when onlyDependencies = true. + """ + + topic = sgqlc.types.Field( + "Topic", + graphql_name="topic", + args=sgqlc.types.ArgDict((("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)),)), + ) + """Look up a topic by name. + + Arguments: + + * `name` (`String!`): The topic's name. + """ + + user = sgqlc.types.Field( + "User", + graphql_name="user", + args=sgqlc.types.ArgDict((("login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="login", default=None)),)), + ) + """Lookup a user by login. + + Arguments: + + * `login` (`String!`): The user's login. + """ + + viewer = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="viewer") + """The currently authenticated user.""" + + +class RateLimit(sgqlc.types.Type): + """Represents the client's rate limit.""" + + __schema__ = github_schema + __field_names__ = ("cost", "limit", "node_count", "remaining", "reset_at", "used") + cost = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="cost") + """The point cost for the current query counting against the rate + limit. + """ + + limit = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="limit") + """The maximum number of points the client is permitted to consume in + a 60 minute window. + """ + + node_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="nodeCount") + """The maximum number of nodes this query may return""" + + remaining = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="remaining") + """The number of points remaining in the current rate limit window.""" + + reset_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="resetAt") + """The time at which the current rate limit window resets in UTC + epoch seconds. + """ + + used = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="used") + """The number of points used in the current rate limit window.""" + + +class ReactingUserConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ReactingUserEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ReactingUserEdge(sgqlc.types.Type): + """Represents a user that's made a reaction.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "reacted_at") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="node") + + reacted_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="reactedAt") + """The moment when the user made the reaction.""" + + +class ReactionConnection(sgqlc.types.relay.Connection): + """A list of reactions that have been left on the subject.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count", "viewer_has_reacted") + edges = sgqlc.types.Field(sgqlc.types.list_of("ReactionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Reaction"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + viewer_has_reacted = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerHasReacted") + """Whether or not the authenticated user has left a reaction on the + subject. + """ + + +class ReactionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Reaction", graphql_name="node") + """The item at the end of the edge.""" + + +class ReactionGroup(sgqlc.types.Type): + """A group of emoji reactions to a particular piece of content.""" + + __schema__ = github_schema + __field_names__ = ("content", "created_at", "reactors", "subject", "viewer_has_reacted") + content = sgqlc.types.Field(sgqlc.types.non_null(ReactionContent), graphql_name="content") + """Identifies the emoji reaction.""" + + created_at = sgqlc.types.Field(DateTime, graphql_name="createdAt") + """Identifies when the reaction was created.""" + + reactors = sgqlc.types.Field( + sgqlc.types.non_null("ReactorConnection"), + graphql_name="reactors", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Reactors to the reaction subject with the emotion represented by + this reaction group. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + subject = sgqlc.types.Field(sgqlc.types.non_null(Reactable), graphql_name="subject") + """The subject that was reacted to.""" + + viewer_has_reacted = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerHasReacted") + """Whether or not the authenticated user has left a reaction on the + subject. + """ + + +class ReactorConnection(sgqlc.types.relay.Connection): + """The connection type for Reactor.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ReactorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Reactor"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ReactorEdge(sgqlc.types.Type): + """Represents an author of a reaction.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "reacted_at") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(sgqlc.types.non_null("Reactor"), graphql_name="node") + """The author of the reaction.""" + + reacted_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="reactedAt") + """The moment when the user made the reaction.""" + + +class RefConnection(sgqlc.types.relay.Connection): + """The connection type for Ref.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RefEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Ref"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RefEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Ref", graphql_name="node") + """The item at the end of the edge.""" + + +class RefNameConditionTarget(sgqlc.types.Type): + """Parameters to be used for the ref_name condition""" + + __schema__ = github_schema + __field_names__ = ("exclude", "include") + exclude = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="exclude") + """Array of ref names or patterns to exclude. The condition will not + pass if any of these patterns match. + """ + + include = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="include") + """Array of ref names or patterns to include. One of these patterns + must match for the condition to pass. Also accepts + `~DEFAULT_BRANCH` to include the default branch or `~ALL` to + include all branches. + """ + + +class RefUpdateRule(sgqlc.types.Type): + """A ref update rules for a viewer.""" + + __schema__ = github_schema + __field_names__ = ( + "allows_deletions", + "allows_force_pushes", + "blocks_creations", + "pattern", + "required_approving_review_count", + "required_status_check_contexts", + "requires_code_owner_reviews", + "requires_conversation_resolution", + "requires_linear_history", + "requires_signatures", + "viewer_allowed_to_dismiss_reviews", + "viewer_can_push", + ) + allows_deletions = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="allowsDeletions") + """Can this branch be deleted.""" + + allows_force_pushes = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="allowsForcePushes") + """Are force pushes allowed on this branch.""" + + blocks_creations = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="blocksCreations") + """Can matching branches be created.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """Identifies the protection rule pattern.""" + + required_approving_review_count = sgqlc.types.Field(Int, graphql_name="requiredApprovingReviewCount") + """Number of approving reviews required to update matching branches.""" + + required_status_check_contexts = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name="requiredStatusCheckContexts") + """List of required status check contexts that must pass for commits + to be accepted to matching branches. + """ + + requires_code_owner_reviews = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresCodeOwnerReviews") + """Are reviews from code owners required to update matching branches.""" + + requires_conversation_resolution = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresConversationResolution") + """Are conversations required to be resolved before merging.""" + + requires_linear_history = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresLinearHistory") + """Are merge commits prohibited from being pushed to this branch.""" + + requires_signatures = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresSignatures") + """Are commits required to be signed.""" + + viewer_allowed_to_dismiss_reviews = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerAllowedToDismissReviews") + """Is the viewer allowed to dismiss reviews.""" + + viewer_can_push = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanPush") + """Can the viewer push to the branch""" + + +class RegenerateEnterpriseIdentityProviderRecoveryCodesPayload(sgqlc.types.Type): + """Autogenerated return type of + RegenerateEnterpriseIdentityProviderRecoveryCodes + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "identity_provider") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + identity_provider = sgqlc.types.Field("EnterpriseIdentityProvider", graphql_name="identityProvider") + """The identity provider for the enterprise.""" + + +class RegenerateVerifiableDomainTokenPayload(sgqlc.types.Type): + """Autogenerated return type of RegenerateVerifiableDomainToken""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "verification_token") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + verification_token = sgqlc.types.Field(String, graphql_name="verificationToken") + """The verification token that was generated.""" + + +class RejectDeploymentsPayload(sgqlc.types.Type): + """Autogenerated return type of RejectDeployments""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "deployments") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + deployments = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("Deployment")), graphql_name="deployments") + """The affected deployments.""" + + +class ReleaseAssetConnection(sgqlc.types.relay.Connection): + """The connection type for ReleaseAsset.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ReleaseAssetEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ReleaseAsset"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ReleaseAssetEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ReleaseAsset", graphql_name="node") + """The item at the end of the edge.""" + + +class ReleaseConnection(sgqlc.types.relay.Connection): + """The connection type for Release.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ReleaseEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Release"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ReleaseEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Release", graphql_name="node") + """The item at the end of the edge.""" + + +class RemoveAssigneesFromAssignablePayload(sgqlc.types.Type): + """Autogenerated return type of RemoveAssigneesFromAssignable""" + + __schema__ = github_schema + __field_names__ = ("assignable", "client_mutation_id") + assignable = sgqlc.types.Field(Assignable, graphql_name="assignable") + """The item that was unassigned.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class RemoveEnterpriseAdminPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveEnterpriseAdmin""" + + __schema__ = github_schema + __field_names__ = ("admin", "client_mutation_id", "enterprise", "message", "viewer") + admin = sgqlc.types.Field("User", graphql_name="admin") + """The user who was removed as an administrator.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The updated enterprise.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of removing an administrator.""" + + viewer = sgqlc.types.Field("User", graphql_name="viewer") + """The viewer performing the mutation.""" + + +class RemoveEnterpriseIdentityProviderPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveEnterpriseIdentityProvider""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "identity_provider") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + identity_provider = sgqlc.types.Field("EnterpriseIdentityProvider", graphql_name="identityProvider") + """The identity provider that was removed from the enterprise.""" + + +class RemoveEnterpriseMemberPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveEnterpriseMember""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "user", "viewer") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The updated enterprise.""" + + user = sgqlc.types.Field("User", graphql_name="user") + """The user that was removed from the enterprise.""" + + viewer = sgqlc.types.Field("User", graphql_name="viewer") + """The viewer performing the mutation.""" + + +class RemoveEnterpriseOrganizationPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveEnterpriseOrganization""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "organization", "viewer") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The updated enterprise.""" + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization that was removed from the enterprise.""" + + viewer = sgqlc.types.Field("User", graphql_name="viewer") + """The viewer performing the mutation.""" + + +class RemoveEnterpriseSupportEntitlementPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveEnterpriseSupportEntitlement""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of removing the support + entitlement. + """ + + +class RemoveLabelsFromLabelablePayload(sgqlc.types.Type): + """Autogenerated return type of RemoveLabelsFromLabelable""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "labelable") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + labelable = sgqlc.types.Field(Labelable, graphql_name="labelable") + """The Labelable the labels were removed from.""" + + +class RemoveOutsideCollaboratorPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveOutsideCollaborator""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "removed_user") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + removed_user = sgqlc.types.Field("User", graphql_name="removedUser") + """The user that was removed as an outside collaborator.""" + + +class RemoveReactionPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveReaction""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "reaction", "reaction_groups", "subject") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + reaction = sgqlc.types.Field("Reaction", graphql_name="reaction") + """The reaction object.""" + + reaction_groups = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ReactionGroup)), graphql_name="reactionGroups") + """The reaction groups for the subject.""" + + subject = sgqlc.types.Field(Reactable, graphql_name="subject") + """The reactable subject.""" + + +class RemoveStarPayload(sgqlc.types.Type): + """Autogenerated return type of RemoveStar""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "starrable") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + starrable = sgqlc.types.Field(Starrable, graphql_name="starrable") + """The starrable.""" + + +class RemoveUpvotePayload(sgqlc.types.Type): + """Autogenerated return type of RemoveUpvote""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "subject") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + subject = sgqlc.types.Field(Votable, graphql_name="subject") + """The votable subject.""" + + +class ReopenDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of ReopenDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The discussion that was reopened.""" + + +class ReopenIssuePayload(sgqlc.types.Type): + """Autogenerated return type of ReopenIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The issue that was opened.""" + + +class ReopenPullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of ReopenPullRequest""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that was reopened.""" + + +class RepositoryCodeowners(sgqlc.types.Type): + """Information extracted from a repository's `CODEOWNERS` file.""" + + __schema__ = github_schema + __field_names__ = ("errors",) + errors = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("RepositoryCodeownersError"))), graphql_name="errors" + ) + """Any problems that were encountered while parsing the `CODEOWNERS` + file. + """ + + +class RepositoryCodeownersError(sgqlc.types.Type): + """An error in a `CODEOWNERS` file.""" + + __schema__ = github_schema + __field_names__ = ("column", "kind", "line", "message", "path", "source", "suggestion") + column = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="column") + """The column number where the error occurs.""" + + kind = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="kind") + """A short string describing the type of error.""" + + line = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="line") + """The line number where the error occurs.""" + + message = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="message") + """A complete description of the error, combining information from + other fields. + """ + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path to the file when the error occurs.""" + + source = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="source") + """The content of the line where the error occurs.""" + + suggestion = sgqlc.types.Field(String, graphql_name="suggestion") + """A suggestion of how to fix the error.""" + + +class RepositoryCollaboratorConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryCollaboratorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryCollaboratorEdge(sgqlc.types.Type): + """Represents a user who is a collaborator of a repository.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "permission", "permission_sources") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="node") + + permission = sgqlc.types.Field(sgqlc.types.non_null(RepositoryPermission), graphql_name="permission") + """The permission the user has on the repository.""" + + permission_sources = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(PermissionSource)), graphql_name="permissionSources") + """A list of sources for the user's access to the repository.""" + + +class RepositoryConnection(sgqlc.types.relay.Connection): + """A list of repositories owned by the subject.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count", "total_disk_usage") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Repository"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + total_disk_usage = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalDiskUsage") + """The total size in kilobytes of all repositories in the connection.""" + + +class RepositoryContactLink(sgqlc.types.Type): + """A repository contact link.""" + + __schema__ = github_schema + __field_names__ = ("about", "name", "url") + about = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="about") + """The contact link purpose.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The contact link name.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The contact link URL.""" + + +class RepositoryEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Repository", graphql_name="node") + """The item at the end of the edge.""" + + +class RepositoryInteractionAbility(sgqlc.types.Type): + """Repository interaction limit that applies to this object.""" + + __schema__ = github_schema + __field_names__ = ("expires_at", "limit", "origin") + expires_at = sgqlc.types.Field(DateTime, graphql_name="expiresAt") + """The time the currently active limit expires.""" + + limit = sgqlc.types.Field(sgqlc.types.non_null(RepositoryInteractionLimit), graphql_name="limit") + """The current limit that is enabled on this object.""" + + origin = sgqlc.types.Field(sgqlc.types.non_null(RepositoryInteractionLimitOrigin), graphql_name="origin") + """The origin of the currently active interaction limit.""" + + +class RepositoryInvitationConnection(sgqlc.types.relay.Connection): + """A list of repository invitations.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryInvitationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RepositoryInvitation"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryInvitationEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RepositoryInvitation", graphql_name="node") + """The item at the end of the edge.""" + + +class RepositoryMigrationConnection(sgqlc.types.relay.Connection): + """The connection type for RepositoryMigration.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryMigrationEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RepositoryMigration"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryMigrationEdge(sgqlc.types.Type): + """Represents a repository migration.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RepositoryMigration", graphql_name="node") + """The item at the end of the edge.""" + + +class RepositoryNameConditionTarget(sgqlc.types.Type): + """Parameters to be used for the repository_name condition""" + + __schema__ = github_schema + __field_names__ = ("exclude", "include", "protected") + exclude = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="exclude") + """Array of repository names or patterns to exclude. The condition + will not pass if any of these patterns match. + """ + + include = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="include") + """Array of repository names or patterns to include. One of these + patterns must match for the condition to pass. Also accepts `~ALL` + to include all repositories. + """ + + protected = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="protected") + """Target changes that match these patterns will be prevented except + by those with bypass permissions. + """ + + +class RepositoryRuleConditions(sgqlc.types.Type): + """Set of conditions that determine if a ruleset will evaluate""" + + __schema__ = github_schema + __field_names__ = ("ref_name", "repository_name") + ref_name = sgqlc.types.Field(RefNameConditionTarget, graphql_name="refName") + """Configuration for the ref_name condition""" + + repository_name = sgqlc.types.Field(RepositoryNameConditionTarget, graphql_name="repositoryName") + """Configuration for the repository_name condition""" + + +class RepositoryRuleConnection(sgqlc.types.relay.Connection): + """The connection type for RepositoryRule.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryRuleEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RepositoryRule"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryRuleEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RepositoryRule", graphql_name="node") + """The item at the end of the edge.""" + + +class RepositoryRulesetBypassActorConnection(sgqlc.types.relay.Connection): + """The connection type for RepositoryRulesetBypassActor.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryRulesetBypassActorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RepositoryRulesetBypassActor"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryRulesetBypassActorEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RepositoryRulesetBypassActor", graphql_name="node") + """The item at the end of the edge.""" + + +class RepositoryRulesetConnection(sgqlc.types.relay.Connection): + """The connection type for RepositoryRuleset.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryRulesetEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RepositoryRuleset"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryRulesetEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RepositoryRuleset", graphql_name="node") + """The item at the end of the edge.""" + + +class RepositoryTopicConnection(sgqlc.types.relay.Connection): + """The connection type for RepositoryTopic.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryTopicEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RepositoryTopic"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryTopicEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RepositoryTopic", graphql_name="node") + """The item at the end of the edge.""" + + +class RepositoryVulnerabilityAlertConnection(sgqlc.types.relay.Connection): + """The connection type for RepositoryVulnerabilityAlert.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RepositoryVulnerabilityAlertEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RepositoryVulnerabilityAlert"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RepositoryVulnerabilityAlertEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RepositoryVulnerabilityAlert", graphql_name="node") + """The item at the end of the edge.""" + + +class RequestReviewsPayload(sgqlc.types.Type): + """Autogenerated return type of RequestReviews""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "pull_request", "requested_reviewers_edge") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that is getting requests.""" + + requested_reviewers_edge = sgqlc.types.Field("UserEdge", graphql_name="requestedReviewersEdge") + """The edge from the pull request to the requested reviewers.""" + + +class RequestedReviewerConnection(sgqlc.types.relay.Connection): + """The connection type for RequestedReviewer.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("RequestedReviewerEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("RequestedReviewer"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class RequestedReviewerEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("RequestedReviewer", graphql_name="node") + """The item at the end of the edge.""" + + +class RequiredDeploymentsParameters(sgqlc.types.Type): + """Choose which environments must be successfully deployed to before + branches can be merged into a branch that matches this rule. + """ + + __schema__ = github_schema + __field_names__ = ("required_deployment_environments",) + required_deployment_environments = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="requiredDeploymentEnvironments" + ) + """The environments that must be successfully deployed to before + branches can be merged. + """ + + +class RequiredStatusCheckDescription(sgqlc.types.Type): + """Represents a required status check for a protected branch, but not + any specific run of that check. + """ + + __schema__ = github_schema + __field_names__ = ("app", "context") + app = sgqlc.types.Field("App", graphql_name="app") + """The App that must provide this status in order for it to be + accepted. + """ + + context = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="context") + """The name of this status.""" + + +class RequiredStatusChecksParameters(sgqlc.types.Type): + """Choose which status checks must pass before branches can be merged + into a branch that matches this rule. When enabled, commits must + first be pushed to another branch, then merged or pushed directly + to a branch that matches this rule after status checks have + passed. + """ + + __schema__ = github_schema + __field_names__ = ("required_status_checks", "strict_required_status_checks_policy") + required_status_checks = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("StatusCheckConfiguration"))), graphql_name="requiredStatusChecks" + ) + """Status checks that are required.""" + + strict_required_status_checks_policy = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="strictRequiredStatusChecksPolicy") + """Whether pull requests targeting a matching branch must be tested + with the latest code. This setting will not take effect unless at + least one status check is enabled. + """ + + +class RerequestCheckSuitePayload(sgqlc.types.Type): + """Autogenerated return type of RerequestCheckSuite""" + + __schema__ = github_schema + __field_names__ = ("check_suite", "client_mutation_id") + check_suite = sgqlc.types.Field("CheckSuite", graphql_name="checkSuite") + """The requested check suite.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class ResolveReviewThreadPayload(sgqlc.types.Type): + """Autogenerated return type of ResolveReviewThread""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "thread") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + thread = sgqlc.types.Field("PullRequestReviewThread", graphql_name="thread") + """The thread to resolve.""" + + +class RetireSponsorsTierPayload(sgqlc.types.Type): + """Autogenerated return type of RetireSponsorsTier""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsors_tier") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsors_tier = sgqlc.types.Field("SponsorsTier", graphql_name="sponsorsTier") + """The tier that was retired.""" + + +class RevertPullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of RevertPullRequest""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request", "revert_pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that was reverted.""" + + revert_pull_request = sgqlc.types.Field("PullRequest", graphql_name="revertPullRequest") + """The new pull request that reverts the input pull request.""" + + +class ReviewDismissalAllowanceConnection(sgqlc.types.relay.Connection): + """The connection type for ReviewDismissalAllowance.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ReviewDismissalAllowanceEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ReviewDismissalAllowance"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ReviewDismissalAllowanceEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ReviewDismissalAllowance", graphql_name="node") + """The item at the end of the edge.""" + + +class ReviewRequestConnection(sgqlc.types.relay.Connection): + """The connection type for ReviewRequest.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("ReviewRequestEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("ReviewRequest"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class ReviewRequestEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("ReviewRequest", graphql_name="node") + """The item at the end of the edge.""" + + +class RevokeEnterpriseOrganizationsMigratorRolePayload(sgqlc.types.Type): + """Autogenerated return type of + RevokeEnterpriseOrganizationsMigratorRole + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "organizations") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + organizations = sgqlc.types.Field( + OrganizationConnection, + graphql_name="organizations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The organizations that had the migrator role revoked for the given + user. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class RevokeMigratorRolePayload(sgqlc.types.Type): + """Autogenerated return type of RevokeMigratorRole""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "success") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + success = sgqlc.types.Field(Boolean, graphql_name="success") + """Did the operation succeed?""" + + +class SavedReplyConnection(sgqlc.types.relay.Connection): + """The connection type for SavedReply.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SavedReplyEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("SavedReply"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SavedReplyEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("SavedReply", graphql_name="node") + """The item at the end of the edge.""" + + +class SearchResultItemConnection(sgqlc.types.relay.Connection): + """A list of results that matched against a search query. Regardless + of the number of matches, a maximum of 1,000 results will be + available across all types, potentially split across many pages. + """ + + __schema__ = github_schema + __field_names__ = ( + "code_count", + "discussion_count", + "edges", + "issue_count", + "nodes", + "page_info", + "repository_count", + "user_count", + "wiki_count", + ) + code_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="codeCount") + """The total number of pieces of code that matched the search query. + Regardless of the total number of matches, a maximum of 1,000 + results will be available across all types. + """ + + discussion_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="discussionCount") + """The total number of discussions that matched the search query. + Regardless of the total number of matches, a maximum of 1,000 + results will be available across all types. + """ + + edges = sgqlc.types.Field(sgqlc.types.list_of("SearchResultItemEdge"), graphql_name="edges") + """A list of edges.""" + + issue_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="issueCount") + """The total number of issues that matched the search query. + Regardless of the total number of matches, a maximum of 1,000 + results will be available across all types. + """ + + nodes = sgqlc.types.Field(sgqlc.types.list_of("SearchResultItem"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + repository_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="repositoryCount") + """The total number of repositories that matched the search query. + Regardless of the total number of matches, a maximum of 1,000 + results will be available across all types. + """ + + user_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="userCount") + """The total number of users that matched the search query. + Regardless of the total number of matches, a maximum of 1,000 + results will be available across all types. + """ + + wiki_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="wikiCount") + """The total number of wiki pages that matched the search query. + Regardless of the total number of matches, a maximum of 1,000 + results will be available across all types. + """ + + +class SearchResultItemEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "text_matches") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("SearchResultItem", graphql_name="node") + """The item at the end of the edge.""" + + text_matches = sgqlc.types.Field(sgqlc.types.list_of("TextMatch"), graphql_name="textMatches") + """Text matches on the result found.""" + + +class SecurityAdvisoryConnection(sgqlc.types.relay.Connection): + """The connection type for SecurityAdvisory.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SecurityAdvisoryEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("SecurityAdvisory"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SecurityAdvisoryEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("SecurityAdvisory", graphql_name="node") + """The item at the end of the edge.""" + + +class SecurityAdvisoryIdentifier(sgqlc.types.Type): + """A GitHub Security Advisory Identifier""" + + __schema__ = github_schema + __field_names__ = ("type", "value") + type = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="type") + """The identifier type, e.g. GHSA, CVE""" + + value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="value") + """The identifier""" + + +class SecurityAdvisoryPackage(sgqlc.types.Type): + """An individual package""" + + __schema__ = github_schema + __field_names__ = ("ecosystem", "name") + ecosystem = sgqlc.types.Field(sgqlc.types.non_null(SecurityAdvisoryEcosystem), graphql_name="ecosystem") + """The ecosystem the package belongs to, e.g. RUBYGEMS, NPM""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The package name""" + + +class SecurityAdvisoryPackageVersion(sgqlc.types.Type): + """An individual package version""" + + __schema__ = github_schema + __field_names__ = ("identifier",) + identifier = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="identifier") + """The package name or version""" + + +class SecurityAdvisoryReference(sgqlc.types.Type): + """A GitHub Security Advisory Reference""" + + __schema__ = github_schema + __field_names__ = ("url",) + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """A publicly accessible reference""" + + +class SecurityVulnerability(sgqlc.types.Type): + """An individual vulnerability within an Advisory""" + + __schema__ = github_schema + __field_names__ = ("advisory", "first_patched_version", "package", "severity", "updated_at", "vulnerable_version_range") + advisory = sgqlc.types.Field(sgqlc.types.non_null("SecurityAdvisory"), graphql_name="advisory") + """The Advisory associated with this Vulnerability""" + + first_patched_version = sgqlc.types.Field(SecurityAdvisoryPackageVersion, graphql_name="firstPatchedVersion") + """The first version containing a fix for the vulnerability""" + + package = sgqlc.types.Field(sgqlc.types.non_null(SecurityAdvisoryPackage), graphql_name="package") + """A description of the vulnerable package""" + + severity = sgqlc.types.Field(sgqlc.types.non_null(SecurityAdvisorySeverity), graphql_name="severity") + """The severity of the vulnerability within this package""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """When the vulnerability was last updated""" + + vulnerable_version_range = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="vulnerableVersionRange") + """A string that describes the vulnerable package versions. This + string follows a basic syntax with a few forms. + `= 0.2.0` + denotes a single vulnerable version. + `<= 1.0.8` denotes a + version range up to and including the specified version + `< + 0.1.11` denotes a version range up to, but excluding, the + specified version + `>= 4.3.0, < 4.3.5` denotes a version range + with a known minimum and maximum version. + `>= 0.0.1` denotes a + version range with a known minimum, but no known maximum + """ + + +class SecurityVulnerabilityConnection(sgqlc.types.relay.Connection): + """The connection type for SecurityVulnerability.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SecurityVulnerabilityEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(SecurityVulnerability), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SecurityVulnerabilityEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(SecurityVulnerability, graphql_name="node") + """The item at the end of the edge.""" + + +class SetEnterpriseIdentityProviderPayload(sgqlc.types.Type): + """Autogenerated return type of SetEnterpriseIdentityProvider""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "identity_provider") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + identity_provider = sgqlc.types.Field("EnterpriseIdentityProvider", graphql_name="identityProvider") + """The identity provider for the enterprise.""" + + +class SetOrganizationInteractionLimitPayload(sgqlc.types.Type): + """Autogenerated return type of SetOrganizationInteractionLimit""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "organization") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization that the interaction limit was set for.""" + + +class SetRepositoryInteractionLimitPayload(sgqlc.types.Type): + """Autogenerated return type of SetRepositoryInteractionLimit""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository that the interaction limit was set for.""" + + +class SetUserInteractionLimitPayload(sgqlc.types.Type): + """Autogenerated return type of SetUserInteractionLimit""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "user") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + user = sgqlc.types.Field("User", graphql_name="user") + """The user that the interaction limit was set for.""" + + +class SocialAccount(sgqlc.types.Type): + """Social media profile associated with a user.""" + + __schema__ = github_schema + __field_names__ = ("display_name", "provider", "url") + display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="displayName") + """Name of the social media account as it appears on the profile.""" + + provider = sgqlc.types.Field(sgqlc.types.non_null(SocialAccountProvider), graphql_name="provider") + """Software or company that hosts the social media account.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """URL of the social media account.""" + + +class SocialAccountConnection(sgqlc.types.relay.Connection): + """The connection type for SocialAccount.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SocialAccountEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(SocialAccount), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SocialAccountEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(SocialAccount, graphql_name="node") + """The item at the end of the edge.""" + + +class SponsorConnection(sgqlc.types.relay.Connection): + """The connection type for Sponsor.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SponsorEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Sponsor"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SponsorEdge(sgqlc.types.Type): + """Represents a user or organization who is sponsoring someone in + GitHub Sponsors. + """ + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Sponsor", graphql_name="node") + """The item at the end of the edge.""" + + +class SponsorableItemConnection(sgqlc.types.relay.Connection): + """The connection type for SponsorableItem.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SponsorableItemEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("SponsorableItem"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SponsorableItemEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("SponsorableItem", graphql_name="node") + """The item at the end of the edge.""" + + +class SponsorsActivityConnection(sgqlc.types.relay.Connection): + """The connection type for SponsorsActivity.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SponsorsActivityEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("SponsorsActivity"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SponsorsActivityEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("SponsorsActivity", graphql_name="node") + """The item at the end of the edge.""" + + +class SponsorsGoal(sgqlc.types.Type): + """A goal associated with a GitHub Sponsors listing, representing a + target the sponsored maintainer would like to attain. + """ + + __schema__ = github_schema + __field_names__ = ("description", "kind", "percent_complete", "target_value", "title") + description = sgqlc.types.Field(String, graphql_name="description") + """A description of the goal from the maintainer.""" + + kind = sgqlc.types.Field(sgqlc.types.non_null(SponsorsGoalKind), graphql_name="kind") + """What the objective of this goal is.""" + + percent_complete = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="percentComplete") + """The percentage representing how complete this goal is, between + 0-100. + """ + + target_value = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="targetValue") + """What the goal amount is. Represents an amount in USD for monthly + sponsorship amount goals. Represents a count of unique sponsors + for total sponsors count goals. + """ + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """A brief summary of the kind and target value of this goal.""" + + +class SponsorsTierAdminInfo(sgqlc.types.Type): + """SponsorsTier information only visible to users that can administer + the associated Sponsors listing. + """ + + __schema__ = github_schema + __field_names__ = ("is_draft", "is_published", "is_retired", "sponsorships") + is_draft = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDraft") + """Indicates whether this tier is still a work in progress by the + sponsorable and not yet published to the associated GitHub + Sponsors profile. Draft tiers cannot be used for new sponsorships + and will not be in use on existing sponsorships. Draft tiers + cannot be seen by anyone but the admins of the GitHub Sponsors + profile. + """ + + is_published = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPublished") + """Indicates whether this tier is published to the associated GitHub + Sponsors profile. Published tiers are visible to anyone who can + see the GitHub Sponsors profile, and are available for use in + sponsorships if the GitHub Sponsors profile is publicly visible. + """ + + is_retired = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isRetired") + """Indicates whether this tier has been retired from the associated + GitHub Sponsors profile. Retired tiers are no longer shown on the + GitHub Sponsors profile and cannot be chosen for new sponsorships. + Existing sponsorships may still use retired tiers if the sponsor + selected the tier before it was retired. + """ + + sponsorships = sgqlc.types.Field( + sgqlc.types.non_null("SponsorshipConnection"), + graphql_name="sponsorships", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("include_private", sgqlc.types.Arg(Boolean, graphql_name="includePrivate", default=False)), + ("order_by", sgqlc.types.Arg(SponsorshipOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """The sponsorships using this tier. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `include_private` (`Boolean`): Whether or not to return private + sponsorships using this tier. Defaults to only returning public + sponsorships on this tier. (default: `false`) + * `order_by` (`SponsorshipOrder`): Ordering options for + sponsorships returned from this connection. If left blank, the + sponsorships will be ordered based on relevancy to the viewer. + """ + + +class SponsorsTierConnection(sgqlc.types.relay.Connection): + """The connection type for SponsorsTier.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SponsorsTierEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("SponsorsTier"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SponsorsTierEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("SponsorsTier", graphql_name="node") + """The item at the end of the edge.""" + + +class SponsorshipConnection(sgqlc.types.relay.Connection): + """The connection type for Sponsorship.""" + + __schema__ = github_schema + __field_names__ = ( + "edges", + "nodes", + "page_info", + "total_count", + "total_recurring_monthly_price_in_cents", + "total_recurring_monthly_price_in_dollars", + ) + edges = sgqlc.types.Field(sgqlc.types.list_of("SponsorshipEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Sponsorship"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + total_recurring_monthly_price_in_cents = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalRecurringMonthlyPriceInCents") + """The total amount in cents of all recurring sponsorships in the + connection whose amount you can view. Does not include one-time + sponsorships. + """ + + total_recurring_monthly_price_in_dollars = sgqlc.types.Field( + sgqlc.types.non_null(Int), graphql_name="totalRecurringMonthlyPriceInDollars" + ) + """The total amount in USD of all recurring sponsorships in the + connection whose amount you can view. Does not include one-time + sponsorships. + """ + + +class SponsorshipEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Sponsorship", graphql_name="node") + """The item at the end of the edge.""" + + +class SponsorshipNewsletterConnection(sgqlc.types.relay.Connection): + """The connection type for SponsorshipNewsletter.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SponsorshipNewsletterEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("SponsorshipNewsletter"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SponsorshipNewsletterEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("SponsorshipNewsletter", graphql_name="node") + """The item at the end of the edge.""" + + +class StargazerConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("StargazerEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class StargazerEdge(sgqlc.types.Type): + """Represents a user that's starred a repository.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "starred_at") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="node") + + starred_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="starredAt") + """Identifies when the item was starred.""" + + +class StarredRepositoryConnection(sgqlc.types.relay.Connection): + """The connection type for Repository.""" + + __schema__ = github_schema + __field_names__ = ("edges", "is_over_limit", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("StarredRepositoryEdge"), graphql_name="edges") + """A list of edges.""" + + is_over_limit = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isOverLimit") + """Is the list of stars for this user truncated? This is true for + users that have many stars. + """ + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Repository"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class StarredRepositoryEdge(sgqlc.types.Type): + """Represents a starred repository.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "starred_at") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="node") + + starred_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="starredAt") + """Identifies when the item was starred.""" + + +class StartOrganizationMigrationPayload(sgqlc.types.Type): + """Autogenerated return type of StartOrganizationMigration""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "org_migration") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + org_migration = sgqlc.types.Field("OrganizationMigration", graphql_name="orgMigration") + """The new organization migration.""" + + +class StartRepositoryMigrationPayload(sgqlc.types.Type): + """Autogenerated return type of StartRepositoryMigration""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository_migration") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository_migration = sgqlc.types.Field("RepositoryMigration", graphql_name="repositoryMigration") + """The new repository migration.""" + + +class StatusCheckConfiguration(sgqlc.types.Type): + """Required status check""" + + __schema__ = github_schema + __field_names__ = ("context", "integration_id") + context = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="context") + """The status check context name that must be present on the commit.""" + + integration_id = sgqlc.types.Field(Int, graphql_name="integrationId") + """The optional integration ID that this status check must originate + from. + """ + + +class StatusCheckRollupContextConnection(sgqlc.types.relay.Connection): + """The connection type for StatusCheckRollupContext.""" + + __schema__ = github_schema + __field_names__ = ( + "check_run_count", + "check_run_counts_by_state", + "edges", + "nodes", + "page_info", + "status_context_count", + "status_context_counts_by_state", + "total_count", + ) + check_run_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="checkRunCount") + """The number of check runs in this rollup.""" + + check_run_counts_by_state = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(CheckRunStateCount)), graphql_name="checkRunCountsByState" + ) + """Counts of check runs by state.""" + + edges = sgqlc.types.Field(sgqlc.types.list_of("StatusCheckRollupContextEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("StatusCheckRollupContext"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + status_context_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="statusContextCount") + """The number of status contexts in this rollup.""" + + status_context_counts_by_state = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null("StatusContextStateCount")), graphql_name="statusContextCountsByState" + ) + """Counts of status contexts by state.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class StatusCheckRollupContextEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("StatusCheckRollupContext", graphql_name="node") + """The item at the end of the edge.""" + + +class StatusContextStateCount(sgqlc.types.Type): + """Represents a count of the state of a status context.""" + + __schema__ = github_schema + __field_names__ = ("count", "state") + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="count") + """The number of statuses with this state.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(StatusState), graphql_name="state") + """The state of a status context.""" + + +class StripeConnectAccount(sgqlc.types.Type): + """A Stripe Connect account for receiving sponsorship funds from + GitHub Sponsors. + """ + + __schema__ = github_schema + __field_names__ = ( + "account_id", + "billing_country_or_region", + "country_or_region", + "is_active", + "sponsors_listing", + "stripe_dashboard_url", + ) + account_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="accountId") + """The account number used to identify this Stripe Connect account.""" + + billing_country_or_region = sgqlc.types.Field(String, graphql_name="billingCountryOrRegion") + """The name of the country or region of an external account, such as + a bank account, tied to the Stripe Connect account. Will only + return a value when queried by the maintainer of the associated + GitHub Sponsors profile themselves, or by an admin of the + sponsorable organization. + """ + + country_or_region = sgqlc.types.Field(String, graphql_name="countryOrRegion") + """The name of the country or region of the Stripe Connect account. + Will only return a value when queried by the maintainer of the + associated GitHub Sponsors profile themselves, or by an admin of + the sponsorable organization. + """ + + is_active = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isActive") + """Whether this Stripe Connect account is currently in use for the + associated GitHub Sponsors profile. + """ + + sponsors_listing = sgqlc.types.Field(sgqlc.types.non_null("SponsorsListing"), graphql_name="sponsorsListing") + """The GitHub Sponsors profile associated with this Stripe Connect + account. + """ + + stripe_dashboard_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="stripeDashboardUrl") + """The URL to access this Stripe Connect account on Stripe's website.""" + + +class SubmitPullRequestReviewPayload(sgqlc.types.Type): + """Autogenerated return type of SubmitPullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request_review") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request_review = sgqlc.types.Field("PullRequestReview", graphql_name="pullRequestReview") + """The submitted pull request review.""" + + +class Submodule(sgqlc.types.Type): + """A pointer to a repository at a specific revision embedded inside + another repository. + """ + + __schema__ = github_schema + __field_names__ = ("branch", "git_url", "name", "name_raw", "path", "path_raw", "subproject_commit_oid") + branch = sgqlc.types.Field(String, graphql_name="branch") + """The branch of the upstream submodule for tracking updates""" + + git_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="gitUrl") + """The git URL of the submodule repository""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the submodule in .gitmodules""" + + name_raw = sgqlc.types.Field(sgqlc.types.non_null(Base64String), graphql_name="nameRaw") + """The name of the submodule in .gitmodules (Base64-encoded)""" + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path in the superproject that this submodule is located in""" + + path_raw = sgqlc.types.Field(sgqlc.types.non_null(Base64String), graphql_name="pathRaw") + """The path in the superproject that this submodule is located in + (Base64-encoded) + """ + + subproject_commit_oid = sgqlc.types.Field(GitObjectID, graphql_name="subprojectCommitOid") + """The commit revision of the subproject repository being tracked by + the submodule + """ + + +class SubmoduleConnection(sgqlc.types.relay.Connection): + """The connection type for Submodule.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("SubmoduleEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of(Submodule), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class SubmoduleEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(Submodule, graphql_name="node") + """The item at the end of the edge.""" + + +class SuggestedReviewer(sgqlc.types.Type): + """A suggestion to review a pull request based on a user's commit + history and review comments. + """ + + __schema__ = github_schema + __field_names__ = ("is_author", "is_commenter", "reviewer") + is_author = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isAuthor") + """Is this suggestion based on past commits?""" + + is_commenter = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCommenter") + """Is this suggestion based on past review comments?""" + + reviewer = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="reviewer") + """Identifies the user suggested to review the pull request.""" + + +class TagNamePatternParameters(sgqlc.types.Type): + """Parameters to be used for the tag_name_pattern rule""" + + __schema__ = github_schema + __field_names__ = ("name", "negate", "operator", "pattern") + name = sgqlc.types.Field(String, graphql_name="name") + """How this rule will appear to users.""" + + negate = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="negate") + """If true, the rule will fail if the pattern matches.""" + + operator = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="operator") + """The operator to use for matching.""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """The pattern to match with.""" + + +class TeamConnection(sgqlc.types.relay.Connection): + """The connection type for Team.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("TeamEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Team"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class TeamDiscussionCommentConnection(sgqlc.types.relay.Connection): + """The connection type for TeamDiscussionComment.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("TeamDiscussionCommentEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("TeamDiscussionComment"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class TeamDiscussionCommentEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("TeamDiscussionComment", graphql_name="node") + """The item at the end of the edge.""" + + +class TeamDiscussionConnection(sgqlc.types.relay.Connection): + """The connection type for TeamDiscussion.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("TeamDiscussionEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("TeamDiscussion"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class TeamDiscussionEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("TeamDiscussion", graphql_name="node") + """The item at the end of the edge.""" + + +class TeamEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("Team", graphql_name="node") + """The item at the end of the edge.""" + + +class TeamMemberConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("TeamMemberEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class TeamMemberEdge(sgqlc.types.Type): + """Represents a user who is a member of a team.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "member_access_resource_path", "member_access_url", "node", "role") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + member_access_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="memberAccessResourcePath") + """The HTTP path to the organization's member access page.""" + + member_access_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="memberAccessUrl") + """The HTTP URL to the organization's member access page.""" + + node = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="node") + + role = sgqlc.types.Field(sgqlc.types.non_null(TeamMemberRole), graphql_name="role") + """The role the member has on the team.""" + + +class TeamRepositoryConnection(sgqlc.types.relay.Connection): + """The connection type for Repository.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("TeamRepositoryEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("Repository"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class TeamRepositoryEdge(sgqlc.types.Type): + """Represents a team repository.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node", "permission") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="node") + + permission = sgqlc.types.Field(sgqlc.types.non_null(RepositoryPermission), graphql_name="permission") + """The permission level the team has on the repository""" + + +class TextMatch(sgqlc.types.Type): + """A text match within a search result.""" + + __schema__ = github_schema + __field_names__ = ("fragment", "highlights", "property") + fragment = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="fragment") + """The specific text fragment within the property matched on.""" + + highlights = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("TextMatchHighlight"))), graphql_name="highlights" + ) + """Highlights within the matched fragment.""" + + property = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="property") + """The property matched on.""" + + +class TextMatchHighlight(sgqlc.types.Type): + """Represents a single highlight in a search result match.""" + + __schema__ = github_schema + __field_names__ = ("begin_indice", "end_indice", "text") + begin_indice = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="beginIndice") + """The indice in the fragment where the matched text begins.""" + + end_indice = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="endIndice") + """The indice in the fragment where the matched text ends.""" + + text = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="text") + """The text matched.""" + + +class TransferEnterpriseOrganizationPayload(sgqlc.types.Type): + """Autogenerated return type of TransferEnterpriseOrganization""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "organization") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization for which a transfer was initiated.""" + + +class TransferIssuePayload(sgqlc.types.Type): + """Autogenerated return type of TransferIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The issue that was transferred""" + + +class TreeEntry(sgqlc.types.Type): + """Represents a Git tree entry.""" + + __schema__ = github_schema + __field_names__ = ( + "extension", + "is_generated", + "language", + "line_count", + "mode", + "name", + "name_raw", + "object", + "oid", + "path", + "path_raw", + "repository", + "size", + "submodule", + "type", + ) + extension = sgqlc.types.Field(String, graphql_name="extension") + """The extension of the file""" + + is_generated = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isGenerated") + """Whether or not this tree entry is generated""" + + language = sgqlc.types.Field("Language", graphql_name="language") + """The programming language this file is written in.""" + + line_count = sgqlc.types.Field(Int, graphql_name="lineCount") + """Number of lines in the file.""" + + mode = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="mode") + """Entry file mode.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """Entry file name.""" + + name_raw = sgqlc.types.Field(sgqlc.types.non_null(Base64String), graphql_name="nameRaw") + """Entry file name. (Base64-encoded)""" + + object = sgqlc.types.Field(GitObject, graphql_name="object") + """Entry file object.""" + + oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="oid") + """Entry file Git object ID.""" + + path = sgqlc.types.Field(String, graphql_name="path") + """The full path of the file.""" + + path_raw = sgqlc.types.Field(Base64String, graphql_name="pathRaw") + """The full path of the file. (Base64-encoded)""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The Repository the tree entry belongs to""" + + size = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="size") + """Entry byte size""" + + submodule = sgqlc.types.Field(Submodule, graphql_name="submodule") + """If the TreeEntry is for a directory occupied by a submodule + project, this returns the corresponding submodule + """ + + type = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="type") + """Entry file type.""" + + +class UnarchiveProjectV2ItemPayload(sgqlc.types.Type): + """Autogenerated return type of UnarchiveProjectV2Item""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "item") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + item = sgqlc.types.Field("ProjectV2Item", graphql_name="item") + """The item unarchived from the project.""" + + +class UnarchiveRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of UnarchiveRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository that was unarchived.""" + + +class UnfollowOrganizationPayload(sgqlc.types.Type): + """Autogenerated return type of UnfollowOrganization""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "organization") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization that was unfollowed.""" + + +class UnfollowUserPayload(sgqlc.types.Type): + """Autogenerated return type of UnfollowUser""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "user") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + user = sgqlc.types.Field("User", graphql_name="user") + """The user that was unfollowed.""" + + +class UnlinkProjectV2FromRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of UnlinkProjectV2FromRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository the project is no longer linked to.""" + + +class UnlinkProjectV2FromTeamPayload(sgqlc.types.Type): + """Autogenerated return type of UnlinkProjectV2FromTeam""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "team") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + team = sgqlc.types.Field("Team", graphql_name="team") + """The team the project is unlinked from""" + + +class UnlinkRepositoryFromProjectPayload(sgqlc.types.Type): + """Autogenerated return type of UnlinkRepositoryFromProject""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project = sgqlc.types.Field("Project", graphql_name="project") + """The linked Project.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The linked Repository.""" + + +class UnlockLockablePayload(sgqlc.types.Type): + """Autogenerated return type of UnlockLockable""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "unlocked_record") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + unlocked_record = sgqlc.types.Field(Lockable, graphql_name="unlockedRecord") + """The item that was unlocked.""" + + +class UnmarkDiscussionCommentAsAnswerPayload(sgqlc.types.Type): + """Autogenerated return type of UnmarkDiscussionCommentAsAnswer""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The discussion that includes the comment.""" + + +class UnmarkFileAsViewedPayload(sgqlc.types.Type): + """Autogenerated return type of UnmarkFileAsViewed""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The updated pull request.""" + + +class UnmarkIssueAsDuplicatePayload(sgqlc.types.Type): + """Autogenerated return type of UnmarkIssueAsDuplicate""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "duplicate") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + duplicate = sgqlc.types.Field("IssueOrPullRequest", graphql_name="duplicate") + """The issue or pull request that was marked as a duplicate.""" + + +class UnmarkProjectV2AsTemplatePayload(sgqlc.types.Type): + """Autogenerated return type of UnmarkProjectV2AsTemplate""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2 = sgqlc.types.Field("ProjectV2", graphql_name="projectV2") + """The project.""" + + +class UnminimizeCommentPayload(sgqlc.types.Type): + """Autogenerated return type of UnminimizeComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "unminimized_comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + unminimized_comment = sgqlc.types.Field(Minimizable, graphql_name="unminimizedComment") + """The comment that was unminimized.""" + + +class UnpinIssuePayload(sgqlc.types.Type): + """Autogenerated return type of UnpinIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The issue that was unpinned""" + + +class UnresolveReviewThreadPayload(sgqlc.types.Type): + """Autogenerated return type of UnresolveReviewThread""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "thread") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + thread = sgqlc.types.Field("PullRequestReviewThread", graphql_name="thread") + """The thread to resolve.""" + + +class UpdateBranchProtectionRulePayload(sgqlc.types.Type): + """Autogenerated return type of UpdateBranchProtectionRule""" + + __schema__ = github_schema + __field_names__ = ("branch_protection_rule", "client_mutation_id") + branch_protection_rule = sgqlc.types.Field("BranchProtectionRule", graphql_name="branchProtectionRule") + """The newly created BranchProtectionRule.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateCheckRunPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateCheckRun""" + + __schema__ = github_schema + __field_names__ = ("check_run", "client_mutation_id") + check_run = sgqlc.types.Field("CheckRun", graphql_name="checkRun") + """The updated check run.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + +class UpdateCheckSuitePreferencesPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateCheckSuitePreferences""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The updated repository.""" + + +class UpdateDiscussionCommentPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + comment = sgqlc.types.Field("DiscussionComment", graphql_name="comment") + """The modified discussion comment.""" + + +class UpdateDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The modified discussion.""" + + +class UpdateEnterpriseAdministratorRolePayload(sgqlc.types.Type): + """Autogenerated return type of UpdateEnterpriseAdministratorRole""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of changing the administrator's + role. + """ + + +class UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseAllowPrivateRepositoryForkingSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated allow private repository forking + setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the allow private + repository forking setting. + """ + + +class UpdateEnterpriseDefaultRepositoryPermissionSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseDefaultRepositoryPermissionSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated base repository permission + setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the base repository + permission setting. + """ + + +class UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can change repository + visibility setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can change + repository visibility setting. + """ + + +class UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanCreateRepositoriesSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can create repositories + setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can create + repositories setting. + """ + + +class UpdateEnterpriseMembersCanDeleteIssuesSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanDeleteIssuesSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can delete issues setting.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can delete + issues setting. + """ + + +class UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanDeleteRepositoriesSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can delete repositories + setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can delete + repositories setting. + """ + + +class UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanInviteCollaboratorsSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can invite collaborators + setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can invite + collaborators setting. + """ + + +class UpdateEnterpriseMembersCanMakePurchasesSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanMakePurchasesSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can make purchases + setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can make + purchases setting. + """ + + +class UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can update protected + branches setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can update + protected branches setting. + """ + + +class UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseMembersCanViewDependencyInsightsSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated members can view dependency + insights setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the members can view + dependency insights setting. + """ + + +class UpdateEnterpriseOrganizationProjectsSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseOrganizationProjectsSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated organization projects setting.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the organization + projects setting. + """ + + +class UpdateEnterpriseOwnerOrganizationRolePayload(sgqlc.types.Type): + """Autogenerated return type of UpdateEnterpriseOwnerOrganizationRole""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of changing the owner's + organization role. + """ + + +class UpdateEnterpriseProfilePayload(sgqlc.types.Type): + """Autogenerated return type of UpdateEnterpriseProfile""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The updated enterprise.""" + + +class UpdateEnterpriseRepositoryProjectsSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseRepositoryProjectsSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated repository projects setting.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the repository + projects setting. + """ + + +class UpdateEnterpriseTeamDiscussionsSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseTeamDiscussionsSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated team discussions setting.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the team discussions + setting. + """ + + +class UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateEnterpriseTwoFactorAuthenticationRequiredSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "enterprise", "message") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + enterprise = sgqlc.types.Field("Enterprise", graphql_name="enterprise") + """The enterprise with the updated two factor authentication required + setting. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the two factor + authentication required setting. + """ + + +class UpdateEnvironmentPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateEnvironment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "environment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + environment = sgqlc.types.Field("Environment", graphql_name="environment") + """The updated environment.""" + + +class UpdateIpAllowListEnabledSettingPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateIpAllowListEnabledSetting""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "owner") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + owner = sgqlc.types.Field("IpAllowListOwner", graphql_name="owner") + """The IP allow list owner on which the setting was updated.""" + + +class UpdateIpAllowListEntryPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateIpAllowListEntry""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "ip_allow_list_entry") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + ip_allow_list_entry = sgqlc.types.Field("IpAllowListEntry", graphql_name="ipAllowListEntry") + """The IP allow list entry that was updated.""" + + +class UpdateIpAllowListForInstalledAppsEnabledSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateIpAllowListForInstalledAppsEnabledSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "owner") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + owner = sgqlc.types.Field("IpAllowListOwner", graphql_name="owner") + """The IP allow list owner on which the setting was updated.""" + + +class UpdateIssueCommentPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateIssueComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "issue_comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue_comment = sgqlc.types.Field("IssueComment", graphql_name="issueComment") + """The updated comment.""" + + +class UpdateIssuePayload(sgqlc.types.Type): + """Autogenerated return type of UpdateIssue""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "issue") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + issue = sgqlc.types.Field("Issue", graphql_name="issue") + """The issue.""" + + +class UpdateNotificationRestrictionSettingPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateNotificationRestrictionSetting""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "owner") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + owner = sgqlc.types.Field("VerifiableDomainOwner", graphql_name="owner") + """The owner on which the setting was updated.""" + + +class UpdateOrganizationAllowPrivateRepositoryForkingSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateOrganizationAllowPrivateRepositoryForkingSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "message", "organization") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the allow private + repository forking setting. + """ + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization with the updated allow private repository forking + setting. + """ + + +class UpdateOrganizationWebCommitSignoffSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateOrganizationWebCommitSignoffSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "message", "organization") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the web commit signoff + setting. + """ + + organization = sgqlc.types.Field("Organization", graphql_name="organization") + """The organization with the updated web commit signoff setting.""" + + +class UpdateParameters(sgqlc.types.Type): + """Only allow users with bypass permission to update matching refs.""" + + __schema__ = github_schema + __field_names__ = ("update_allows_fetch_and_merge",) + update_allows_fetch_and_merge = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="updateAllowsFetchAndMerge") + """Branch can pull changes from its upstream repository""" + + +class UpdateProjectCardPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateProjectCard""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_card") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_card = sgqlc.types.Field("ProjectCard", graphql_name="projectCard") + """The updated ProjectCard.""" + + +class UpdateProjectColumnPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateProjectColumn""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_column") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_column = sgqlc.types.Field("ProjectColumn", graphql_name="projectColumn") + """The updated project column.""" + + +class UpdateProjectPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateProject""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project = sgqlc.types.Field("Project", graphql_name="project") + """The updated project.""" + + +class UpdateProjectV2CollaboratorsPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateProjectV2Collaborators""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "collaborators") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + collaborators = sgqlc.types.Field( + ProjectV2ActorConnection, + graphql_name="collaborators", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The collaborators granted a role + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class UpdateProjectV2DraftIssuePayload(sgqlc.types.Type): + """Autogenerated return type of UpdateProjectV2DraftIssue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "draft_issue") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + draft_issue = sgqlc.types.Field("DraftIssue", graphql_name="draftIssue") + """The draft issue updated in the project.""" + + +class UpdateProjectV2ItemFieldValuePayload(sgqlc.types.Type): + """Autogenerated return type of UpdateProjectV2ItemFieldValue""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2_item") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2_item = sgqlc.types.Field("ProjectV2Item", graphql_name="projectV2Item") + """The updated item.""" + + +class UpdateProjectV2ItemPositionPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateProjectV2ItemPosition""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "items") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + items = sgqlc.types.Field( + ProjectV2ItemConnection, + graphql_name="items", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The items in the new order + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class UpdateProjectV2Payload(sgqlc.types.Type): + """Autogenerated return type of UpdateProjectV2""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "project_v2") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + project_v2 = sgqlc.types.Field("ProjectV2", graphql_name="projectV2") + """The updated Project.""" + + +class UpdatePullRequestBranchPayload(sgqlc.types.Type): + """Autogenerated return type of UpdatePullRequestBranch""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The updated pull request.""" + + +class UpdatePullRequestPayload(sgqlc.types.Type): + """Autogenerated return type of UpdatePullRequest""" + + __schema__ = github_schema + __field_names__ = ("actor", "client_mutation_id", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The updated pull request.""" + + +class UpdatePullRequestReviewCommentPayload(sgqlc.types.Type): + """Autogenerated return type of UpdatePullRequestReviewComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request_review_comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request_review_comment = sgqlc.types.Field("PullRequestReviewComment", graphql_name="pullRequestReviewComment") + """The updated comment.""" + + +class UpdatePullRequestReviewPayload(sgqlc.types.Type): + """Autogenerated return type of UpdatePullRequestReview""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "pull_request_review") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + pull_request_review = sgqlc.types.Field("PullRequestReview", graphql_name="pullRequestReview") + """The updated pull request review.""" + + +class UpdateRefPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateRef""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "ref") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """The updated Ref.""" + + +class UpdateRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The updated repository.""" + + +class UpdateRepositoryRulesetPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateRepositoryRuleset""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "ruleset") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + ruleset = sgqlc.types.Field("RepositoryRuleset", graphql_name="ruleset") + """The newly created Ruleset.""" + + +class UpdateRepositoryWebCommitSignoffSettingPayload(sgqlc.types.Type): + """Autogenerated return type of + UpdateRepositoryWebCommitSignoffSetting + """ + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "message", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + message = sgqlc.types.Field(String, graphql_name="message") + """A message confirming the result of updating the web commit signoff + setting. + """ + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The updated repository.""" + + +class UpdateSponsorshipPreferencesPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateSponsorshipPreferences""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "sponsorship") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + sponsorship = sgqlc.types.Field("Sponsorship", graphql_name="sponsorship") + """The sponsorship that was updated.""" + + +class UpdateSubscriptionPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateSubscription""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "subscribable") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + subscribable = sgqlc.types.Field(Subscribable, graphql_name="subscribable") + """The input subscribable entity.""" + + +class UpdateTeamDiscussionCommentPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateTeamDiscussionComment""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "team_discussion_comment") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + team_discussion_comment = sgqlc.types.Field("TeamDiscussionComment", graphql_name="teamDiscussionComment") + """The updated comment.""" + + +class UpdateTeamDiscussionPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateTeamDiscussion""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "team_discussion") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + team_discussion = sgqlc.types.Field("TeamDiscussion", graphql_name="teamDiscussion") + """The updated discussion.""" + + +class UpdateTeamsRepositoryPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateTeamsRepository""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "repository", "teams") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository that was updated.""" + + teams = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null("Team")), graphql_name="teams") + """The teams granted permission on the repository.""" + + +class UpdateTopicsPayload(sgqlc.types.Type): + """Autogenerated return type of UpdateTopics""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "invalid_topic_names", "repository") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + invalid_topic_names = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="invalidTopicNames") + """Names of the provided topics that are not valid.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The updated repository.""" + + +class UserConnection(sgqlc.types.relay.Connection): + """The connection type for User.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("UserEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("User"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class UserContentEditConnection(sgqlc.types.relay.Connection): + """A list of edits to content.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("UserContentEditEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("UserContentEdit"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class UserContentEditEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("UserContentEdit", graphql_name="node") + """The item at the end of the edge.""" + + +class UserEdge(sgqlc.types.Type): + """Represents a user.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("User", graphql_name="node") + """The item at the end of the edge.""" + + +class UserEmailMetadata(sgqlc.types.Type): + """Email attributes from External Identity""" + + __schema__ = github_schema + __field_names__ = ("primary", "type", "value") + primary = sgqlc.types.Field(Boolean, graphql_name="primary") + """Boolean to identify primary emails""" + + type = sgqlc.types.Field(String, graphql_name="type") + """Type of email""" + + value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="value") + """Email id""" + + +class UserStatusConnection(sgqlc.types.relay.Connection): + """The connection type for UserStatus.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("UserStatusEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("UserStatus"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class UserStatusEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("UserStatus", graphql_name="node") + """The item at the end of the edge.""" + + +class VerifiableDomainConnection(sgqlc.types.relay.Connection): + """The connection type for VerifiableDomain.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("VerifiableDomainEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("VerifiableDomain"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class VerifiableDomainEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("VerifiableDomain", graphql_name="node") + """The item at the end of the edge.""" + + +class VerifyVerifiableDomainPayload(sgqlc.types.Type): + """Autogenerated return type of VerifyVerifiableDomain""" + + __schema__ = github_schema + __field_names__ = ("client_mutation_id", "domain") + client_mutation_id = sgqlc.types.Field(String, graphql_name="clientMutationId") + """A unique identifier for the client performing the mutation.""" + + domain = sgqlc.types.Field("VerifiableDomain", graphql_name="domain") + """The verifiable domain that was verified.""" + + +class WorkflowRunConnection(sgqlc.types.relay.Connection): + """The connection type for WorkflowRun.""" + + __schema__ = github_schema + __field_names__ = ("edges", "nodes", "page_info", "total_count") + edges = sgqlc.types.Field(sgqlc.types.list_of("WorkflowRunEdge"), graphql_name="edges") + """A list of edges.""" + + nodes = sgqlc.types.Field(sgqlc.types.list_of("WorkflowRun"), graphql_name="nodes") + """A list of nodes.""" + + page_info = sgqlc.types.Field(sgqlc.types.non_null(PageInfo), graphql_name="pageInfo") + """Information to aid in pagination.""" + + total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalCount") + """Identifies the total count of items in the connection.""" + + +class WorkflowRunEdge(sgqlc.types.Type): + """An edge in a connection.""" + + __schema__ = github_schema + __field_names__ = ("cursor", "node") + cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cursor") + """A cursor for use in pagination.""" + + node = sgqlc.types.Field("WorkflowRun", graphql_name="node") + """The item at the end of the edge.""" + + +class AddedToMergeQueueEvent(sgqlc.types.Type, Node): + """Represents an 'added_to_merge_queue' event on a given pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "enqueuer", "merge_queue", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + enqueuer = sgqlc.types.Field("User", graphql_name="enqueuer") + """The user who added this Pull Request to the merge queue""" + + merge_queue = sgqlc.types.Field("MergeQueue", graphql_name="mergeQueue") + """The merge queue where this pull request was added to.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class AddedToProjectEvent(sgqlc.types.Type, Node): + """Represents a 'added_to_project' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "database_id") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + +class App(sgqlc.types.Type, Node): + """A GitHub App.""" + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "database_id", + "description", + "ip_allow_list_entries", + "logo_background_color", + "logo_url", + "name", + "slug", + "updated_at", + "url", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The description of the app.""" + + ip_allow_list_entries = sgqlc.types.Field( + sgqlc.types.non_null(IpAllowListEntryConnection), + graphql_name="ipAllowListEntries", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg( + IpAllowListEntryOrder, graphql_name="orderBy", default={"field": "ALLOW_LIST_VALUE", "direction": "ASC"} + ), + ), + ) + ), + ) + """The IP addresses of the app. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`IpAllowListEntryOrder`): Ordering options for IP + allow list entries returned. (default: `{field: + ALLOW_LIST_VALUE, direction: ASC}`) + """ + + logo_background_color = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="logoBackgroundColor") + """The hex color code, without the leading '#', for the logo + background. + """ + + logo_url = sgqlc.types.Field( + sgqlc.types.non_null(URI), + graphql_name="logoUrl", + args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=None)),)), + ) + """A URL pointing to the app's logo. + + Arguments: + + * `size` (`Int`): The size of the resulting image. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the app.""" + + slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="slug") + """A slug based on the name of the app for use in URLs.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The URL to the app's homepage.""" + + +class AssignedEvent(sgqlc.types.Type, Node): + """Represents an 'assigned' event on any assignable object.""" + + __schema__ = github_schema + __field_names__ = ("actor", "assignable", "assignee", "created_at") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + assignable = sgqlc.types.Field(sgqlc.types.non_null(Assignable), graphql_name="assignable") + """Identifies the assignable associated with the event.""" + + assignee = sgqlc.types.Field("Assignee", graphql_name="assignee") + """Identifies the user or mannequin that was assigned.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + +class AutoMergeDisabledEvent(sgqlc.types.Type, Node): + """Represents a 'auto_merge_disabled' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "disabler", "pull_request", "reason", "reason_code") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + disabler = sgqlc.types.Field("User", graphql_name="disabler") + """The user who disabled auto-merge for this Pull Request""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """PullRequest referenced by event""" + + reason = sgqlc.types.Field(String, graphql_name="reason") + """The reason auto-merge was disabled""" + + reason_code = sgqlc.types.Field(String, graphql_name="reasonCode") + """The reason_code relating to why auto-merge was disabled""" + + +class AutoMergeEnabledEvent(sgqlc.types.Type, Node): + """Represents a 'auto_merge_enabled' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "enabler", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + enabler = sgqlc.types.Field("User", graphql_name="enabler") + """The user who enabled auto-merge for this Pull Request""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class AutoRebaseEnabledEvent(sgqlc.types.Type, Node): + """Represents a 'auto_rebase_enabled' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "enabler", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + enabler = sgqlc.types.Field("User", graphql_name="enabler") + """The user who enabled auto-merge (rebase) for this Pull Request""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class AutoSquashEnabledEvent(sgqlc.types.Type, Node): + """Represents a 'auto_squash_enabled' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "enabler", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + enabler = sgqlc.types.Field("User", graphql_name="enabler") + """The user who enabled auto-merge (squash) for this Pull Request""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class AutomaticBaseChangeFailedEvent(sgqlc.types.Type, Node): + """Represents a 'automatic_base_change_failed' event on a given pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "new_base", "old_base", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + new_base = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="newBase") + """The new base for this PR""" + + old_base = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="oldBase") + """The old base for this PR""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class AutomaticBaseChangeSucceededEvent(sgqlc.types.Type, Node): + """Represents a 'automatic_base_change_succeeded' event on a given + pull request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "new_base", "old_base", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + new_base = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="newBase") + """The new base for this PR""" + + old_base = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="oldBase") + """The old base for this PR""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class BaseRefChangedEvent(sgqlc.types.Type, Node): + """Represents a 'base_ref_changed' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "current_ref_name", "database_id", "previous_ref_name", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + current_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="currentRefName") + """Identifies the name of the base ref for the pull request after it + was changed. + """ + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + previous_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="previousRefName") + """Identifies the name of the base ref for the pull request before it + was changed. + """ + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class BaseRefDeletedEvent(sgqlc.types.Type, Node): + """Represents a 'base_ref_deleted' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "base_ref_name", "created_at", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + base_ref_name = sgqlc.types.Field(String, graphql_name="baseRefName") + """Identifies the name of the Ref associated with the + `base_ref_deleted` event. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class BaseRefForcePushedEvent(sgqlc.types.Type, Node): + """Represents a 'base_ref_force_pushed' event on a given pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "after_commit", "before_commit", "created_at", "pull_request", "ref") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + after_commit = sgqlc.types.Field("Commit", graphql_name="afterCommit") + """Identifies the after commit SHA for the 'base_ref_force_pushed' + event. + """ + + before_commit = sgqlc.types.Field("Commit", graphql_name="beforeCommit") + """Identifies the before commit SHA for the 'base_ref_force_pushed' + event. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """Identifies the fully qualified ref name for the + 'base_ref_force_pushed' event. + """ + + +class Blob(sgqlc.types.Type, GitObject, Node): + """Represents a Git blob.""" + + __schema__ = github_schema + __field_names__ = ("byte_size", "is_binary", "is_truncated", "text") + byte_size = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="byteSize") + """Byte size of Blob object""" + + is_binary = sgqlc.types.Field(Boolean, graphql_name="isBinary") + """Indicates whether the Blob is binary or text. Returns null if + unable to determine the encoding. + """ + + is_truncated = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isTruncated") + """Indicates whether the contents is truncated""" + + text = sgqlc.types.Field(String, graphql_name="text") + """UTF8 text data or null if the Blob is binary""" + + +class Bot(sgqlc.types.Type, Node, Actor, UniformResourceLocatable): + """A special type of user which takes actions on behalf of GitHub + Apps. + """ + + __schema__ = github_schema + __field_names__ = ("created_at", "database_id", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class BranchProtectionRule(sgqlc.types.Type, Node): + """A branch protection rule.""" + + __schema__ = github_schema + __field_names__ = ( + "allows_deletions", + "allows_force_pushes", + "blocks_creations", + "branch_protection_rule_conflicts", + "bypass_force_push_allowances", + "bypass_pull_request_allowances", + "creator", + "database_id", + "dismisses_stale_reviews", + "is_admin_enforced", + "lock_allows_fetch_and_merge", + "lock_branch", + "matching_refs", + "pattern", + "push_allowances", + "repository", + "require_last_push_approval", + "required_approving_review_count", + "required_deployment_environments", + "required_status_check_contexts", + "required_status_checks", + "requires_approving_reviews", + "requires_code_owner_reviews", + "requires_commit_signatures", + "requires_conversation_resolution", + "requires_deployments", + "requires_linear_history", + "requires_status_checks", + "requires_strict_status_checks", + "restricts_pushes", + "restricts_review_dismissals", + "review_dismissal_allowances", + ) + allows_deletions = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="allowsDeletions") + """Can this branch be deleted.""" + + allows_force_pushes = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="allowsForcePushes") + """Are force pushes allowed on this branch.""" + + blocks_creations = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="blocksCreations") + """Is branch creation a protected operation.""" + + branch_protection_rule_conflicts = sgqlc.types.Field( + sgqlc.types.non_null(BranchProtectionRuleConflictConnection), + graphql_name="branchProtectionRuleConflicts", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of conflicts matching branches protection rule and other + branch protection rules + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + bypass_force_push_allowances = sgqlc.types.Field( + sgqlc.types.non_null(BypassForcePushAllowanceConnection), + graphql_name="bypassForcePushAllowances", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of actors able to force push for this branch protection + rule. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + bypass_pull_request_allowances = sgqlc.types.Field( + sgqlc.types.non_null(BypassPullRequestAllowanceConnection), + graphql_name="bypassPullRequestAllowances", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of actors able to bypass PRs for this branch protection + rule. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who created this branch protection rule.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + dismisses_stale_reviews = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="dismissesStaleReviews") + """Will new commits pushed to matching branches dismiss pull request + review approvals. + """ + + is_admin_enforced = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isAdminEnforced") + """Can admins overwrite branch protection.""" + + lock_allows_fetch_and_merge = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="lockAllowsFetchAndMerge") + """Whether users can pull changes from upstream when the branch is + locked. Set to `true` to allow fork syncing. Set to `false` to + prevent fork syncing. + """ + + lock_branch = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="lockBranch") + """Whether to set the branch as read-only. If this is true, users + will not be able to push to the branch. + """ + + matching_refs = sgqlc.types.Field( + sgqlc.types.non_null(RefConnection), + graphql_name="matchingRefs", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Repository refs that are protected by this rule + + Arguments: + + * `query` (`String`): Filters refs with query on name + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pattern = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="pattern") + """Identifies the protection rule pattern.""" + + push_allowances = sgqlc.types.Field( + sgqlc.types.non_null(PushAllowanceConnection), + graphql_name="pushAllowances", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list push allowances for this branch protection rule. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository associated with this branch protection rule.""" + + require_last_push_approval = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requireLastPushApproval") + """Whether the most recent push must be approved by someone other + than the person who pushed it + """ + + required_approving_review_count = sgqlc.types.Field(Int, graphql_name="requiredApprovingReviewCount") + """Number of approving reviews required to update matching branches.""" + + required_deployment_environments = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name="requiredDeploymentEnvironments") + """List of required deployment environments that must be deployed + successfully to update matching branches + """ + + required_status_check_contexts = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name="requiredStatusCheckContexts") + """List of required status check contexts that must pass for commits + to be accepted to matching branches. + """ + + required_status_checks = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(RequiredStatusCheckDescription)), graphql_name="requiredStatusChecks" + ) + """List of required status checks that must pass for commits to be + accepted to matching branches. + """ + + requires_approving_reviews = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresApprovingReviews") + """Are approving reviews required to update matching branches.""" + + requires_code_owner_reviews = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresCodeOwnerReviews") + """Are reviews from code owners required to update matching branches.""" + + requires_commit_signatures = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresCommitSignatures") + """Are commits required to be signed.""" + + requires_conversation_resolution = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresConversationResolution") + """Are conversations required to be resolved before merging.""" + + requires_deployments = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresDeployments") + """Does this branch require deployment to specific environments + before merging + """ + + requires_linear_history = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresLinearHistory") + """Are merge commits prohibited from being pushed to this branch.""" + + requires_status_checks = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresStatusChecks") + """Are status checks required to update matching branches.""" + + requires_strict_status_checks = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="requiresStrictStatusChecks") + """Are branches required to be up to date before merging.""" + + restricts_pushes = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="restrictsPushes") + """Is pushing to matching branches restricted.""" + + restricts_review_dismissals = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="restrictsReviewDismissals") + """Is dismissal of pull request reviews restricted.""" + + review_dismissal_allowances = sgqlc.types.Field( + sgqlc.types.non_null(ReviewDismissalAllowanceConnection), + graphql_name="reviewDismissalAllowances", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list review dismissal allowances for this branch protection + rule. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class BypassForcePushAllowance(sgqlc.types.Type, Node): + """A user, team, or app who has the ability to bypass a force push + requirement on a protected branch. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "branch_protection_rule") + actor = sgqlc.types.Field("BranchActorAllowanceActor", graphql_name="actor") + """The actor that can force push.""" + + branch_protection_rule = sgqlc.types.Field(BranchProtectionRule, graphql_name="branchProtectionRule") + """Identifies the branch protection rule associated with the allowed + user, team, or app. + """ + + +class BypassPullRequestAllowance(sgqlc.types.Type, Node): + """A user, team, or app who has the ability to bypass a pull request + requirement on a protected branch. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "branch_protection_rule") + actor = sgqlc.types.Field("BranchActorAllowanceActor", graphql_name="actor") + """The actor that can bypass.""" + + branch_protection_rule = sgqlc.types.Field(BranchProtectionRule, graphql_name="branchProtectionRule") + """Identifies the branch protection rule associated with the allowed + user, team, or app. + """ + + +class CWE(sgqlc.types.Type, Node): + """A common weakness enumeration""" + + __schema__ = github_schema + __field_names__ = ("cwe_id", "description", "name") + cwe_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="cweId") + """The id of the CWE""" + + description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="description") + """A detailed description of this CWE""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of this CWE""" + + +class CheckRun(sgqlc.types.Type, Node, UniformResourceLocatable, RequirableByPullRequest): + """A check run.""" + + __schema__ = github_schema + __field_names__ = ( + "annotations", + "check_suite", + "completed_at", + "conclusion", + "database_id", + "deployment", + "details_url", + "external_id", + "name", + "pending_deployment_request", + "permalink", + "repository", + "started_at", + "status", + "steps", + "summary", + "text", + "title", + ) + annotations = sgqlc.types.Field( + CheckAnnotationConnection, + graphql_name="annotations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The check run's annotations + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + check_suite = sgqlc.types.Field(sgqlc.types.non_null("CheckSuite"), graphql_name="checkSuite") + """The check suite that this run is a part of.""" + + completed_at = sgqlc.types.Field(DateTime, graphql_name="completedAt") + """Identifies the date and time when the check run was completed.""" + + conclusion = sgqlc.types.Field(CheckConclusionState, graphql_name="conclusion") + """The conclusion of the check run.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + deployment = sgqlc.types.Field("Deployment", graphql_name="deployment") + """The corresponding deployment for this job, if any""" + + details_url = sgqlc.types.Field(URI, graphql_name="detailsUrl") + """The URL from which to find full details of the check run on the + integrator's site. + """ + + external_id = sgqlc.types.Field(String, graphql_name="externalId") + """A reference for the check run on the integrator's system.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the check for this check run.""" + + pending_deployment_request = sgqlc.types.Field(DeploymentRequest, graphql_name="pendingDeploymentRequest") + """Information about a pending deployment, if any, in this check run""" + + permalink = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="permalink") + """The permalink to the check run summary.""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository associated with this check run.""" + + started_at = sgqlc.types.Field(DateTime, graphql_name="startedAt") + """Identifies the date and time when the check run was started.""" + + status = sgqlc.types.Field(sgqlc.types.non_null(CheckStatusState), graphql_name="status") + """The current status of the check run.""" + + steps = sgqlc.types.Field( + CheckStepConnection, + graphql_name="steps", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("number", sgqlc.types.Arg(Int, graphql_name="number", default=None)), + ) + ), + ) + """The check run's steps + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `number` (`Int`): Step number + """ + + summary = sgqlc.types.Field(String, graphql_name="summary") + """A string representing the check run's summary""" + + text = sgqlc.types.Field(String, graphql_name="text") + """A string representing the check run's text""" + + title = sgqlc.types.Field(String, graphql_name="title") + """A string representing the check run""" + + +class CheckSuite(sgqlc.types.Type, Node): + """A check suite.""" + + __schema__ = github_schema + __field_names__ = ( + "app", + "branch", + "check_runs", + "commit", + "conclusion", + "created_at", + "creator", + "database_id", + "matching_pull_requests", + "push", + "repository", + "resource_path", + "status", + "updated_at", + "url", + "workflow_run", + ) + app = sgqlc.types.Field(App, graphql_name="app") + """The GitHub App which created this check suite.""" + + branch = sgqlc.types.Field("Ref", graphql_name="branch") + """The name of the branch for this check suite.""" + + check_runs = sgqlc.types.Field( + CheckRunConnection, + graphql_name="checkRuns", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("filter_by", sgqlc.types.Arg(CheckRunFilter, graphql_name="filterBy", default=None)), + ) + ), + ) + """The check runs associated with a check suite. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `filter_by` (`CheckRunFilter`): Filters the check runs by this + type. + """ + + commit = sgqlc.types.Field(sgqlc.types.non_null("Commit"), graphql_name="commit") + """The commit for this check suite""" + + conclusion = sgqlc.types.Field(CheckConclusionState, graphql_name="conclusion") + """The conclusion of this check suite.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field("User", graphql_name="creator") + """The user who triggered the check suite.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + matching_pull_requests = sgqlc.types.Field( + PullRequestConnection, + graphql_name="matchingPullRequests", + args=sgqlc.types.ArgDict( + ( + ( + "states", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PullRequestState)), graphql_name="states", default=None), + ), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("head_ref_name", sgqlc.types.Arg(String, graphql_name="headRefName", default=None)), + ("base_ref_name", sgqlc.types.Arg(String, graphql_name="baseRefName", default=None)), + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of open pull requests matching the check suite. + + Arguments: + + * `states` (`[PullRequestState!]`): A list of states to filter the + pull requests by. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `head_ref_name` (`String`): The head ref name to filter the pull + requests by. + * `base_ref_name` (`String`): The base ref name to filter the pull + requests by. + * `order_by` (`IssueOrder`): Ordering options for pull requests + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + push = sgqlc.types.Field("Push", graphql_name="push") + """The push that triggered this check suite.""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository associated with this check suite.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this check suite""" + + status = sgqlc.types.Field(sgqlc.types.non_null(CheckStatusState), graphql_name="status") + """The status of this check suite.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this check suite""" + + workflow_run = sgqlc.types.Field("WorkflowRun", graphql_name="workflowRun") + """The workflow run associated with this check suite.""" + + +class ClosedEvent(sgqlc.types.Type, Node, UniformResourceLocatable): + """Represents a 'closed' event on any `Closable`.""" + + __schema__ = github_schema + __field_names__ = ("actor", "closable", "closer", "created_at", "state_reason") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + closable = sgqlc.types.Field(sgqlc.types.non_null(Closable), graphql_name="closable") + """Object that was closed.""" + + closer = sgqlc.types.Field("Closer", graphql_name="closer") + """Object which triggered the creation of this event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + state_reason = sgqlc.types.Field(IssueStateReason, graphql_name="stateReason") + """The reason the issue state was changed to closed.""" + + +class CodeOfConduct(sgqlc.types.Type, Node): + """The Code of Conduct for a repository""" + + __schema__ = github_schema + __field_names__ = ("body", "key", "name", "resource_path", "url") + body = sgqlc.types.Field(String, graphql_name="body") + """The body of the Code of Conduct""" + + key = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="key") + """The key for the Code of Conduct""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The formal name of the Code of Conduct""" + + resource_path = sgqlc.types.Field(URI, graphql_name="resourcePath") + """The HTTP path for this Code of Conduct""" + + url = sgqlc.types.Field(URI, graphql_name="url") + """The HTTP URL for this Code of Conduct""" + + +class CommentDeletedEvent(sgqlc.types.Type, Node): + """Represents a 'comment_deleted' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "database_id", "deleted_comment_author") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + deleted_comment_author = sgqlc.types.Field(Actor, graphql_name="deletedCommentAuthor") + """The user who authored the deleted comment.""" + + +class Commit(sgqlc.types.Type, Node, GitObject, Subscribable, UniformResourceLocatable): + """Represents a Git commit.""" + + __schema__ = github_schema + __field_names__ = ( + "additions", + "associated_pull_requests", + "author", + "authored_by_committer", + "authored_date", + "authors", + "blame", + "changed_files_if_available", + "check_suites", + "comments", + "committed_date", + "committed_via_web", + "committer", + "deletions", + "deployments", + "file", + "history", + "message", + "message_body", + "message_body_html", + "message_headline", + "message_headline_html", + "on_behalf_of", + "parents", + "signature", + "status", + "status_check_rollup", + "submodules", + "tarball_url", + "tree", + "tree_resource_path", + "tree_url", + "zipball_url", + ) + additions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="additions") + """The number of additions in this commit.""" + + associated_pull_requests = sgqlc.types.Field( + PullRequestConnection, + graphql_name="associatedPullRequests", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(PullRequestOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"}), + ), + ) + ), + ) + """The merged Pull Request that introduced the commit to the + repository. If the commit is not present in the default branch, + additionally returns open Pull Requests associated with the commit + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`PullRequestOrder`): Ordering options for pull + requests. (default: `{field: CREATED_AT, direction: ASC}`) + """ + + author = sgqlc.types.Field(GitActor, graphql_name="author") + """Authorship details of the commit.""" + + authored_by_committer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="authoredByCommitter") + """Check if the committer and the author match.""" + + authored_date = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="authoredDate") + """The datetime when this commit was authored.""" + + authors = sgqlc.types.Field( + sgqlc.types.non_null(GitActorConnection), + graphql_name="authors", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The list of authors for this commit based on the git author and + the Co-authored-by message trailer. The git author will always be + first. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + blame = sgqlc.types.Field( + sgqlc.types.non_null(Blame), + graphql_name="blame", + args=sgqlc.types.ArgDict((("path", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="path", default=None)),)), + ) + """Fetches `git blame` information. + + Arguments: + + * `path` (`String!`): The file whose Git blame information you + want. + """ + + changed_files_if_available = sgqlc.types.Field(Int, graphql_name="changedFilesIfAvailable") + """The number of changed files in this commit. If GitHub is unable to + calculate the number of changed files (for example due to a + timeout), this will return `null`. We recommend using this field + instead of `changedFiles`. + """ + + check_suites = sgqlc.types.Field( + CheckSuiteConnection, + graphql_name="checkSuites", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("filter_by", sgqlc.types.Arg(CheckSuiteFilter, graphql_name="filterBy", default=None)), + ) + ), + ) + """The check suites associated with a commit. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `filter_by` (`CheckSuiteFilter`): Filters the check suites by + this type. + """ + + comments = sgqlc.types.Field( + sgqlc.types.non_null(CommitCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Comments made on the commit. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + committed_date = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="committedDate") + """The datetime when this commit was committed.""" + + committed_via_web = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="committedViaWeb") + """Check if committed via GitHub web UI.""" + + committer = sgqlc.types.Field(GitActor, graphql_name="committer") + """Committer details of the commit.""" + + deletions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="deletions") + """The number of deletions in this commit.""" + + deployments = sgqlc.types.Field( + DeploymentConnection, + graphql_name="deployments", + args=sgqlc.types.ArgDict( + ( + ( + "environments", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="environments", default=None), + ), + ("order_by", sgqlc.types.Arg(DeploymentOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"})), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The deployments associated with a commit. + + Arguments: + + * `environments` (`[String!]`): Environments to list deployments + for + * `order_by` (`DeploymentOrder`): Ordering options for deployments + returned from the connection. (default: `{field: CREATED_AT, + direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + file = sgqlc.types.Field( + TreeEntry, + graphql_name="file", + args=sgqlc.types.ArgDict((("path", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="path", default=None)),)), + ) + """The tree entry representing the file located at the given path. + + Arguments: + + * `path` (`String!`): The path for the file + """ + + history = sgqlc.types.Field( + sgqlc.types.non_null(CommitHistoryConnection), + graphql_name="history", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("path", sgqlc.types.Arg(String, graphql_name="path", default=None)), + ("author", sgqlc.types.Arg(CommitAuthor, graphql_name="author", default=None)), + ("since", sgqlc.types.Arg(GitTimestamp, graphql_name="since", default=None)), + ("until", sgqlc.types.Arg(GitTimestamp, graphql_name="until", default=None)), + ) + ), + ) + """The linear commit history starting from (and including) this + commit, in the same order as `git log`. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `path` (`String`): If non-null, filters history to only show + commits touching files under this path. + * `author` (`CommitAuthor`): If non-null, filters history to only + show commits with matching authorship. + * `since` (`GitTimestamp`): Allows specifying a beginning time or + date for fetching commits. + * `until` (`GitTimestamp`): Allows specifying an ending time or + date for fetching commits. + """ + + message = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="message") + """The Git commit message""" + + message_body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="messageBody") + """The Git commit message body""" + + message_body_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="messageBodyHTML") + """The commit message body rendered to HTML.""" + + message_headline = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="messageHeadline") + """The Git commit message headline""" + + message_headline_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="messageHeadlineHTML") + """The commit message headline rendered to HTML.""" + + on_behalf_of = sgqlc.types.Field("Organization", graphql_name="onBehalfOf") + """The organization this commit was made on behalf of.""" + + parents = sgqlc.types.Field( + sgqlc.types.non_null(CommitConnection), + graphql_name="parents", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The parents of a commit. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + signature = sgqlc.types.Field(GitSignature, graphql_name="signature") + """Commit signing information, if present.""" + + status = sgqlc.types.Field("Status", graphql_name="status") + """Status information for this commit""" + + status_check_rollup = sgqlc.types.Field("StatusCheckRollup", graphql_name="statusCheckRollup") + """Check and Status rollup information for this commit.""" + + submodules = sgqlc.types.Field( + sgqlc.types.non_null(SubmoduleConnection), + graphql_name="submodules", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Returns a list of all submodules in this repository as of this + Commit parsed from the .gitmodules file. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + tarball_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="tarballUrl") + """Returns a URL to download a tarball archive for a repository. + Note: For private repositories, these links are temporary and + expire after five minutes. + """ + + tree = sgqlc.types.Field(sgqlc.types.non_null("Tree"), graphql_name="tree") + """Commit's root Tree""" + + tree_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="treeResourcePath") + """The HTTP path for the tree of this commit""" + + tree_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="treeUrl") + """The HTTP URL for the tree of this commit""" + + zipball_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="zipballUrl") + """Returns a URL to download a zipball archive for a repository. + Note: For private repositories, these links are temporary and + expire after five minutes. + """ + + +class CommitComment(sgqlc.types.Type, Node, Comment, Deletable, Minimizable, Updatable, UpdatableComment, Reactable, RepositoryNode): + """Represents a comment on a given Commit.""" + + __schema__ = github_schema + __field_names__ = ("commit", "path", "position", "resource_path", "url") + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """Identifies the commit associated with the comment, if the commit + exists. + """ + + path = sgqlc.types.Field(String, graphql_name="path") + """Identifies the file path associated with the comment.""" + + position = sgqlc.types.Field(Int, graphql_name="position") + """Identifies the line position associated with the comment.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path permalink for this commit comment.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL permalink for this commit comment.""" + + +class CommitCommentThread(sgqlc.types.Type, Node, RepositoryNode): + """A thread of comments on a commit.""" + + __schema__ = github_schema + __field_names__ = ("comments", "commit", "path", "position") + comments = sgqlc.types.Field( + sgqlc.types.non_null(CommitCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The comments that exist in this thread. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """The commit the comments were made on.""" + + path = sgqlc.types.Field(String, graphql_name="path") + """The file the comments were made on.""" + + position = sgqlc.types.Field(Int, graphql_name="position") + """The position in the diff for the commit that the comment was made + on. + """ + + +class Comparison(sgqlc.types.Type, Node): + """Represents a comparison between two commit revisions.""" + + __schema__ = github_schema + __field_names__ = ("ahead_by", "base_target", "behind_by", "commits", "head_target", "status") + ahead_by = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="aheadBy") + """The number of commits ahead of the base branch.""" + + base_target = sgqlc.types.Field(sgqlc.types.non_null(GitObject), graphql_name="baseTarget") + """The base revision of this comparison.""" + + behind_by = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="behindBy") + """The number of commits behind the base branch.""" + + commits = sgqlc.types.Field( + sgqlc.types.non_null(ComparisonCommitConnection), + graphql_name="commits", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The commits which compose this comparison. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + head_target = sgqlc.types.Field(sgqlc.types.non_null(GitObject), graphql_name="headTarget") + """The head revision of this comparison.""" + + status = sgqlc.types.Field(sgqlc.types.non_null(ComparisonStatus), graphql_name="status") + """The status of this comparison.""" + + +class ConnectedEvent(sgqlc.types.Type, Node): + """Represents a 'connected' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "is_cross_repository", "source", "subject") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + is_cross_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCrossRepository") + """Reference originated in a different repository.""" + + source = sgqlc.types.Field(sgqlc.types.non_null("ReferencedSubject"), graphql_name="source") + """Issue or pull request that made the reference.""" + + subject = sgqlc.types.Field(sgqlc.types.non_null("ReferencedSubject"), graphql_name="subject") + """Issue or pull request which was connected.""" + + +class ConvertToDraftEvent(sgqlc.types.Type, Node, UniformResourceLocatable): + """Represents a 'convert_to_draft' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class ConvertedNoteToIssueEvent(sgqlc.types.Type, Node): + """Represents a 'converted_note_to_issue' event on a given issue or + pull request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "database_id") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + +class ConvertedToDiscussionEvent(sgqlc.types.Type, Node): + """Represents a 'converted_to_discussion' event on a given issue.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "discussion") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + discussion = sgqlc.types.Field("Discussion", graphql_name="discussion") + """The discussion that the issue was converted into.""" + + +class CreatedCommitContribution(sgqlc.types.Type, Contribution): + """Represents the contribution a user made by committing to a + repository. + """ + + __schema__ = github_schema + __field_names__ = ("commit_count", "repository") + commit_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="commitCount") + """How many commits were made on this day to this repository by the + user. + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository the user made a commit in.""" + + +class CreatedIssueContribution(sgqlc.types.Type, Contribution): + """Represents the contribution a user made on GitHub by opening an + issue. + """ + + __schema__ = github_schema + __field_names__ = ("issue",) + issue = sgqlc.types.Field(sgqlc.types.non_null("Issue"), graphql_name="issue") + """The issue that was opened.""" + + +class CreatedPullRequestContribution(sgqlc.types.Type, Contribution): + """Represents the contribution a user made on GitHub by opening a + pull request. + """ + + __schema__ = github_schema + __field_names__ = ("pull_request",) + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """The pull request that was opened.""" + + +class CreatedPullRequestReviewContribution(sgqlc.types.Type, Contribution): + """Represents the contribution a user made by leaving a review on a + pull request. + """ + + __schema__ = github_schema + __field_names__ = ("pull_request", "pull_request_review", "repository") + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """The pull request the user reviewed.""" + + pull_request_review = sgqlc.types.Field(sgqlc.types.non_null("PullRequestReview"), graphql_name="pullRequestReview") + """The review the user left on the pull request.""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository containing the pull request that the user reviewed.""" + + +class CreatedRepositoryContribution(sgqlc.types.Type, Contribution): + """Represents the contribution a user made on GitHub by creating a + repository. + """ + + __schema__ = github_schema + __field_names__ = ("repository",) + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository that was created.""" + + +class CrossReferencedEvent(sgqlc.types.Type, UniformResourceLocatable, Node): + """Represents a mention made by one issue or pull request to another.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "is_cross_repository", "referenced_at", "source", "target", "will_close_target") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + is_cross_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCrossRepository") + """Reference originated in a different repository.""" + + referenced_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="referencedAt") + """Identifies when the reference was made.""" + + source = sgqlc.types.Field(sgqlc.types.non_null("ReferencedSubject"), graphql_name="source") + """Issue or pull request that made the reference.""" + + target = sgqlc.types.Field(sgqlc.types.non_null("ReferencedSubject"), graphql_name="target") + """Issue or pull request to which the reference was made.""" + + will_close_target = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="willCloseTarget") + """Checks if the target will be closed when the source is merged.""" + + +class DemilestonedEvent(sgqlc.types.Type, Node): + """Represents a 'demilestoned' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "milestone_title", "subject") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + milestone_title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="milestoneTitle") + """Identifies the milestone title associated with the 'demilestoned' + event. + """ + + subject = sgqlc.types.Field(sgqlc.types.non_null("MilestoneItem"), graphql_name="subject") + """Object referenced by event.""" + + +class DependabotUpdate(sgqlc.types.Type, RepositoryNode): + """A Dependabot Update for a dependency in a repository""" + + __schema__ = github_schema + __field_names__ = ("error", "pull_request") + error = sgqlc.types.Field(DependabotUpdateError, graphql_name="error") + """The error from a dependency update""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The associated pull request""" + + +class DeployKey(sgqlc.types.Type, Node): + """A repository deploy key.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "key", "read_only", "title", "verified") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + key = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="key") + """The deploy key.""" + + read_only = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="readOnly") + """Whether or not the deploy key is read only.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The deploy key title.""" + + verified = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="verified") + """Whether or not the deploy key has been verified.""" + + +class DeployedEvent(sgqlc.types.Type, Node): + """Represents a 'deployed' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "database_id", "deployment", "pull_request", "ref") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + deployment = sgqlc.types.Field(sgqlc.types.non_null("Deployment"), graphql_name="deployment") + """The deployment associated with the 'deployed' event.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """The ref associated with the 'deployed' event.""" + + +class Deployment(sgqlc.types.Type, Node): + """Represents triggered deployment instance.""" + + __schema__ = github_schema + __field_names__ = ( + "commit", + "commit_oid", + "created_at", + "creator", + "database_id", + "description", + "environment", + "latest_environment", + "latest_status", + "original_environment", + "payload", + "ref", + "repository", + "state", + "statuses", + "task", + "updated_at", + ) + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """Identifies the commit sha of the deployment.""" + + commit_oid = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="commitOid") + """Identifies the oid of the deployment commit, even if the commit + has been deleted. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(sgqlc.types.non_null(Actor), graphql_name="creator") + """Identifies the actor who triggered the deployment.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The deployment description.""" + + environment = sgqlc.types.Field(String, graphql_name="environment") + """The latest environment to which this deployment was made.""" + + latest_environment = sgqlc.types.Field(String, graphql_name="latestEnvironment") + """The latest environment to which this deployment was made.""" + + latest_status = sgqlc.types.Field("DeploymentStatus", graphql_name="latestStatus") + """The latest status of this deployment.""" + + original_environment = sgqlc.types.Field(String, graphql_name="originalEnvironment") + """The original environment to which this deployment was made.""" + + payload = sgqlc.types.Field(String, graphql_name="payload") + """Extra information that a deployment system might need.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """Identifies the Ref of the deployment, if the deployment was + created by ref. + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """Identifies the repository associated with the deployment.""" + + state = sgqlc.types.Field(DeploymentState, graphql_name="state") + """The current state of the deployment.""" + + statuses = sgqlc.types.Field( + DeploymentStatusConnection, + graphql_name="statuses", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of statuses associated with the deployment. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + task = sgqlc.types.Field(String, graphql_name="task") + """The deployment task.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class DeploymentEnvironmentChangedEvent(sgqlc.types.Type, Node): + """Represents a 'deployment_environment_changed' event on a given + pull request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "deployment_status", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + deployment_status = sgqlc.types.Field(sgqlc.types.non_null("DeploymentStatus"), graphql_name="deploymentStatus") + """The deployment status that updated the deployment environment.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class DeploymentReview(sgqlc.types.Type, Node): + """A deployment review.""" + + __schema__ = github_schema + __field_names__ = ("comment", "database_id", "environments", "state", "user") + comment = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="comment") + """The comment the user left.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + environments = sgqlc.types.Field( + sgqlc.types.non_null(EnvironmentConnection), + graphql_name="environments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The environments approved or rejected + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + state = sgqlc.types.Field(sgqlc.types.non_null(DeploymentReviewState), graphql_name="state") + """The decision of the user.""" + + user = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="user") + """The user that reviewed the deployment.""" + + +class DeploymentStatus(sgqlc.types.Type, Node): + """Describes the status of a given deployment attempt.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "creator", "deployment", "description", "environment_url", "log_url", "state", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(sgqlc.types.non_null(Actor), graphql_name="creator") + """Identifies the actor who triggered the deployment.""" + + deployment = sgqlc.types.Field(sgqlc.types.non_null(Deployment), graphql_name="deployment") + """Identifies the deployment associated with status.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """Identifies the description of the deployment.""" + + environment_url = sgqlc.types.Field(URI, graphql_name="environmentUrl") + """Identifies the environment URL of the deployment.""" + + log_url = sgqlc.types.Field(URI, graphql_name="logUrl") + """Identifies the log URL of the deployment.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(DeploymentStatusState), graphql_name="state") + """Identifies the current state of the deployment.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class DisconnectedEvent(sgqlc.types.Type, Node): + """Represents a 'disconnected' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "is_cross_repository", "source", "subject") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + is_cross_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCrossRepository") + """Reference originated in a different repository.""" + + source = sgqlc.types.Field(sgqlc.types.non_null("ReferencedSubject"), graphql_name="source") + """Issue or pull request from which the issue was disconnected.""" + + subject = sgqlc.types.Field(sgqlc.types.non_null("ReferencedSubject"), graphql_name="subject") + """Issue or pull request which was disconnected.""" + + +class Discussion( + sgqlc.types.Type, Closable, Comment, Updatable, Deletable, Labelable, Lockable, RepositoryNode, Subscribable, Reactable, Votable, Node +): + """A discussion in a repository.""" + + __schema__ = github_schema + __field_names__ = ( + "answer", + "answer_chosen_at", + "answer_chosen_by", + "category", + "comments", + "number", + "poll", + "resource_path", + "state_reason", + "title", + "url", + ) + answer = sgqlc.types.Field("DiscussionComment", graphql_name="answer") + """The comment chosen as this discussion's answer, if any.""" + + answer_chosen_at = sgqlc.types.Field(DateTime, graphql_name="answerChosenAt") + """The time when a user chose this discussion's answer, if answered.""" + + answer_chosen_by = sgqlc.types.Field(Actor, graphql_name="answerChosenBy") + """The user who chose this discussion's answer, if answered.""" + + category = sgqlc.types.Field(sgqlc.types.non_null("DiscussionCategory"), graphql_name="category") + """The category for this discussion.""" + + comments = sgqlc.types.Field( + sgqlc.types.non_null(DiscussionCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The replies to the discussion. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """The number identifying this discussion within the repository.""" + + poll = sgqlc.types.Field("DiscussionPoll", graphql_name="poll") + """The poll associated with this discussion, if one exists.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The path for this discussion.""" + + state_reason = sgqlc.types.Field(DiscussionStateReason, graphql_name="stateReason") + """Identifies the reason for the discussion's state.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of this discussion.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The URL for this discussion.""" + + +class DiscussionCategory(sgqlc.types.Type, Node, RepositoryNode): + """A category for discussions in a repository.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "description", "emoji", "emoji_html", "is_answerable", "name", "slug", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """A description of this category.""" + + emoji = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="emoji") + """An emoji representing this category.""" + + emoji_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="emojiHTML") + """This category's emoji rendered as HTML.""" + + is_answerable = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isAnswerable") + """Whether or not discussions in this category support choosing an + answer with the markDiscussionCommentAsAnswer mutation. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of this category.""" + + slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="slug") + """The slug of this category.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class DiscussionComment(sgqlc.types.Type, Comment, Deletable, Minimizable, Updatable, UpdatableComment, Reactable, Votable, Node): + """A comment on a discussion.""" + + __schema__ = github_schema + __field_names__ = ( + "deleted_at", + "discussion", + "is_answer", + "replies", + "reply_to", + "resource_path", + "url", + "viewer_can_mark_as_answer", + "viewer_can_unmark_as_answer", + ) + deleted_at = sgqlc.types.Field(DateTime, graphql_name="deletedAt") + """The time when this replied-to comment was deleted""" + + discussion = sgqlc.types.Field(Discussion, graphql_name="discussion") + """The discussion this comment was created in""" + + is_answer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isAnswer") + """Has this comment been chosen as the answer of its discussion?""" + + replies = sgqlc.types.Field( + sgqlc.types.non_null(DiscussionCommentConnection), + graphql_name="replies", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The threaded replies to this comment. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + reply_to = sgqlc.types.Field("DiscussionComment", graphql_name="replyTo") + """The discussion comment this comment is a reply to""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The path for this discussion comment.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The URL for this discussion comment.""" + + viewer_can_mark_as_answer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanMarkAsAnswer") + """Can the current user mark this comment as an answer?""" + + viewer_can_unmark_as_answer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanUnmarkAsAnswer") + """Can the current user unmark this comment as an answer?""" + + +class DiscussionPoll(sgqlc.types.Type, Node): + """A poll for a discussion.""" + + __schema__ = github_schema + __field_names__ = ("discussion", "options", "question", "total_vote_count", "viewer_can_vote", "viewer_has_voted") + discussion = sgqlc.types.Field(Discussion, graphql_name="discussion") + """The discussion that this poll belongs to.""" + + options = sgqlc.types.Field( + DiscussionPollOptionConnection, + graphql_name="options", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg( + DiscussionPollOptionOrder, graphql_name="orderBy", default={"field": "AUTHORED_ORDER", "direction": "ASC"} + ), + ), + ) + ), + ) + """The options for this poll. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`DiscussionPollOptionOrder`): How to order the + options for the discussion poll. (default: `{field: + AUTHORED_ORDER, direction: ASC}`) + """ + + question = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="question") + """The question that is being asked by this poll.""" + + total_vote_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalVoteCount") + """The total number of votes that have been cast for this poll.""" + + viewer_can_vote = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanVote") + """Indicates if the viewer has permission to vote in this poll.""" + + viewer_has_voted = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerHasVoted") + """Indicates if the viewer has voted for any option in this poll.""" + + +class DiscussionPollOption(sgqlc.types.Type, Node): + """An option for a discussion poll.""" + + __schema__ = github_schema + __field_names__ = ("option", "poll", "total_vote_count", "viewer_has_voted") + option = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="option") + """The text for this option.""" + + poll = sgqlc.types.Field(DiscussionPoll, graphql_name="poll") + """The discussion poll that this option belongs to.""" + + total_vote_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalVoteCount") + """The total number of votes that have been cast for this option.""" + + viewer_has_voted = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerHasVoted") + """Indicates if the viewer has voted for this option in the poll.""" + + +class DraftIssue(sgqlc.types.Type, Node): + """A draft issue within a project.""" + + __schema__ = github_schema + __field_names__ = ( + "assignees", + "body", + "body_html", + "body_text", + "created_at", + "creator", + "project_v2_items", + "projects_v2", + "title", + "updated_at", + ) + assignees = sgqlc.types.Field( + sgqlc.types.non_null(UserConnection), + graphql_name="assignees", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users to assigned to this draft issue. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The body of the draft issue.""" + + body_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="bodyHTML") + """The body of the draft issue rendered to HTML.""" + + body_text = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="bodyText") + """The body of the draft issue rendered to text.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who created this draft issue.""" + + project_v2_items = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2ItemConnection), + graphql_name="projectV2Items", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """List of items linked with the draft issue (currently draft issue + can be linked to only one item). + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + projects_v2 = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2Connection), + graphql_name="projectsV2", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Projects that link to this draft issue (currently draft issue can + be linked to only one project). + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the draft issue""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class Enterprise(sgqlc.types.Type, Node, AnnouncementBanner): + """An account to manage multiple organizations with consolidated + policy and billing. + """ + + __schema__ = github_schema + __field_names__ = ( + "avatar_url", + "billing_info", + "created_at", + "database_id", + "description", + "description_html", + "location", + "members", + "name", + "organizations", + "owner_info", + "resource_path", + "slug", + "url", + "viewer_is_admin", + "website_url", + ) + avatar_url = sgqlc.types.Field( + sgqlc.types.non_null(URI), + graphql_name="avatarUrl", + args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=None)),)), + ) + """A URL pointing to the enterprise's public avatar. + + Arguments: + + * `size` (`Int`): The size of the resulting square image. + """ + + billing_info = sgqlc.types.Field(EnterpriseBillingInfo, graphql_name="billingInfo") + """Enterprise billing information visible to enterprise billing + managers. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The description of the enterprise.""" + + description_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="descriptionHTML") + """The description of the enterprise as HTML.""" + + location = sgqlc.types.Field(String, graphql_name="location") + """The location of the enterprise.""" + + members = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseMemberConnection), + graphql_name="members", + args=sgqlc.types.ArgDict( + ( + ( + "organization_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="organizationLogins", default=None), + ), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ( + "order_by", + sgqlc.types.Arg(EnterpriseMemberOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"}), + ), + ("role", sgqlc.types.Arg(EnterpriseUserAccountMembershipRole, graphql_name="role", default=None)), + ("deployment", sgqlc.types.Arg(EnterpriseUserDeployment, graphql_name="deployment", default=None)), + ("has_two_factor_enabled", sgqlc.types.Arg(Boolean, graphql_name="hasTwoFactorEnabled", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users who are members of this enterprise. + + Arguments: + + * `organization_logins` (`[String!]`): Only return members within + the organizations with these logins + * `query` (`String`): The search string to look for. + * `order_by` (`EnterpriseMemberOrder`): Ordering options for + members returned from the connection. (default: `{field: LOGIN, + direction: ASC}`) + * `role` (`EnterpriseUserAccountMembershipRole`): The role of the + user in the enterprise organization or server. + * `deployment` (`EnterpriseUserDeployment`): Only return members + within the selected GitHub Enterprise deployment + * `has_two_factor_enabled` (`Boolean`): Only return members with + this two-factor authentication status. Does not include members + who only have an account on a GitHub Enterprise Server instance. + (default: `null`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the enterprise.""" + + organizations = sgqlc.types.Field( + sgqlc.types.non_null(OrganizationConnection), + graphql_name="organizations", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("viewer_organization_role", sgqlc.types.Arg(RoleInOrganization, graphql_name="viewerOrganizationRole", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of organizations that belong to this enterprise. + + Arguments: + + * `query` (`String`): The search string to look for. + * `viewer_organization_role` (`RoleInOrganization`): The viewer's + role in an organization. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations returned from the connection. (default: `{field: + LOGIN, direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + owner_info = sgqlc.types.Field(EnterpriseOwnerInfo, graphql_name="ownerInfo") + """Enterprise information visible to enterprise owners or enterprise + owners' personal access tokens (classic) with read:enterprise or + admin:enterprise scope. + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this enterprise.""" + + slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="slug") + """The URL-friendly identifier for the enterprise.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this enterprise.""" + + viewer_is_admin = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerIsAdmin") + """Is the current viewer an admin of this enterprise?""" + + website_url = sgqlc.types.Field(URI, graphql_name="websiteUrl") + """The URL of the enterprise website.""" + + +class EnterpriseAdministratorInvitation(sgqlc.types.Type, Node): + """An invitation for a user to become an owner or billing manager of + an enterprise. + """ + + __schema__ = github_schema + __field_names__ = ("created_at", "email", "enterprise", "invitee", "inviter", "role") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + email = sgqlc.types.Field(String, graphql_name="email") + """The email of the person who was invited to the enterprise.""" + + enterprise = sgqlc.types.Field(sgqlc.types.non_null(Enterprise), graphql_name="enterprise") + """The enterprise the invitation is for.""" + + invitee = sgqlc.types.Field("User", graphql_name="invitee") + """The user who was invited to the enterprise.""" + + inviter = sgqlc.types.Field("User", graphql_name="inviter") + """The user who created the invitation.""" + + role = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseAdministratorRole), graphql_name="role") + """The invitee's pending role in the enterprise (owner or + billing_manager). + """ + + +class EnterpriseIdentityProvider(sgqlc.types.Type, Node): + """An identity provider configured to provision identities for an + enterprise. Visible to enterprise owners or enterprise owners' + personal access tokens (classic) with read:enterprise or + admin:enterprise scope. + """ + + __schema__ = github_schema + __field_names__ = ( + "digest_method", + "enterprise", + "external_identities", + "idp_certificate", + "issuer", + "recovery_codes", + "signature_method", + "sso_url", + ) + digest_method = sgqlc.types.Field(SamlDigestAlgorithm, graphql_name="digestMethod") + """The digest algorithm used to sign SAML requests for the identity + provider. + """ + + enterprise = sgqlc.types.Field(Enterprise, graphql_name="enterprise") + """The enterprise this identity provider belongs to.""" + + external_identities = sgqlc.types.Field( + sgqlc.types.non_null(ExternalIdentityConnection), + graphql_name="externalIdentities", + args=sgqlc.types.ArgDict( + ( + ("members_only", sgqlc.types.Arg(Boolean, graphql_name="membersOnly", default=None)), + ("login", sgqlc.types.Arg(String, graphql_name="login", default=None)), + ("user_name", sgqlc.types.Arg(String, graphql_name="userName", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """ExternalIdentities provisioned by this identity provider. + + Arguments: + + * `members_only` (`Boolean`): Filter to external identities with + valid org membership only + * `login` (`String`): Filter to external identities with the users + login + * `user_name` (`String`): Filter to external identities with the + users userName/NameID attribute + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + idp_certificate = sgqlc.types.Field(X509Certificate, graphql_name="idpCertificate") + """The x509 certificate used by the identity provider to sign + assertions and responses. + """ + + issuer = sgqlc.types.Field(String, graphql_name="issuer") + """The Issuer Entity ID for the SAML identity provider.""" + + recovery_codes = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="recoveryCodes") + """Recovery codes that can be used by admins to access the enterprise + if the identity provider is unavailable. + """ + + signature_method = sgqlc.types.Field(SamlSignatureAlgorithm, graphql_name="signatureMethod") + """The signature algorithm used to sign SAML requests for the + identity provider. + """ + + sso_url = sgqlc.types.Field(URI, graphql_name="ssoUrl") + """The URL endpoint for the identity provider's SAML SSO.""" + + +class EnterpriseRepositoryInfo(sgqlc.types.Type, Node): + """A subset of repository information queryable from an enterprise.""" + + __schema__ = github_schema + __field_names__ = ("is_private", "name", "name_with_owner") + is_private = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPrivate") + """Identifies if the repository is private or internal.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The repository's name.""" + + name_with_owner = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="nameWithOwner") + """The repository's name with owner.""" + + +class EnterpriseServerInstallation(sgqlc.types.Type, Node): + """An Enterprise Server installation.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "customer_name", "host_name", "is_connected", "updated_at", "user_accounts", "user_accounts_uploads") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + customer_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="customerName") + """The customer name to which the Enterprise Server installation + belongs. + """ + + host_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="hostName") + """The host name of the Enterprise Server installation.""" + + is_connected = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isConnected") + """Whether or not the installation is connected to an Enterprise + Server installation via GitHub Connect. + """ + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + user_accounts = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseServerUserAccountConnection), + graphql_name="userAccounts", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg( + EnterpriseServerUserAccountOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"} + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """User accounts on this Enterprise Server installation. + + Arguments: + + * `order_by` (`EnterpriseServerUserAccountOrder`): Ordering + options for Enterprise Server user accounts returned from the + connection. (default: `{field: LOGIN, direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + user_accounts_uploads = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseServerUserAccountsUploadConnection), + graphql_name="userAccountsUploads", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg( + EnterpriseServerUserAccountsUploadOrder, + graphql_name="orderBy", + default={"field": "CREATED_AT", "direction": "DESC"}, + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """User accounts uploads for the Enterprise Server installation. + + Arguments: + + * `order_by` (`EnterpriseServerUserAccountsUploadOrder`): Ordering + options for Enterprise Server user accounts uploads returned + from the connection. (default: `{field: CREATED_AT, direction: + DESC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class EnterpriseServerUserAccount(sgqlc.types.Type, Node): + """A user account on an Enterprise Server installation.""" + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "emails", + "enterprise_server_installation", + "is_site_admin", + "login", + "profile_name", + "remote_created_at", + "remote_user_id", + "updated_at", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + emails = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseServerUserAccountEmailConnection), + graphql_name="emails", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg( + EnterpriseServerUserAccountEmailOrder, graphql_name="orderBy", default={"field": "EMAIL", "direction": "ASC"} + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """User emails belonging to this user account. + + Arguments: + + * `order_by` (`EnterpriseServerUserAccountEmailOrder`): Ordering + options for Enterprise Server user account emails returned from + the connection. (default: `{field: EMAIL, direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + enterprise_server_installation = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseServerInstallation), graphql_name="enterpriseServerInstallation" + ) + """The Enterprise Server installation on which this user account + exists. + """ + + is_site_admin = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isSiteAdmin") + """Whether the user account is a site administrator on the Enterprise + Server installation. + """ + + login = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="login") + """The login of the user account on the Enterprise Server + installation. + """ + + profile_name = sgqlc.types.Field(String, graphql_name="profileName") + """The profile name of the user account on the Enterprise Server + installation. + """ + + remote_created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="remoteCreatedAt") + """The date and time when the user account was created on the + Enterprise Server installation. + """ + + remote_user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="remoteUserId") + """The ID of the user account on the Enterprise Server installation.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class EnterpriseServerUserAccountEmail(sgqlc.types.Type, Node): + """An email belonging to a user account on an Enterprise Server + installation. + """ + + __schema__ = github_schema + __field_names__ = ("created_at", "email", "is_primary", "updated_at", "user_account") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + email = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="email") + """The email address.""" + + is_primary = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPrimary") + """Indicates whether this is the primary email of the associated user + account. + """ + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + user_account = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseServerUserAccount), graphql_name="userAccount") + """The user account to which the email belongs.""" + + +class EnterpriseServerUserAccountsUpload(sgqlc.types.Type, Node): + """A user accounts upload from an Enterprise Server installation.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "enterprise", "enterprise_server_installation", "name", "sync_state", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + enterprise = sgqlc.types.Field(sgqlc.types.non_null(Enterprise), graphql_name="enterprise") + """The enterprise to which this upload belongs.""" + + enterprise_server_installation = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseServerInstallation), graphql_name="enterpriseServerInstallation" + ) + """The Enterprise Server installation for which this upload was + generated. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the file uploaded.""" + + sync_state = sgqlc.types.Field(sgqlc.types.non_null(EnterpriseServerUserAccountsUploadSyncState), graphql_name="syncState") + """The synchronization state of the upload""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class EnterpriseUserAccount(sgqlc.types.Type, Actor, Node): + """An account for a user who is an admin of an enterprise or a member + of an enterprise through one or more organizations. + """ + + __schema__ = github_schema + __field_names__ = ("created_at", "enterprise", "enterprise_installations", "name", "organizations", "updated_at", "user") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + enterprise = sgqlc.types.Field(sgqlc.types.non_null(Enterprise), graphql_name="enterprise") + """The enterprise in which this user account exists.""" + + enterprise_installations = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseServerInstallationMembershipConnection), + graphql_name="enterpriseInstallations", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ( + "order_by", + sgqlc.types.Arg( + EnterpriseServerInstallationOrder, graphql_name="orderBy", default={"field": "HOST_NAME", "direction": "ASC"} + ), + ), + ("role", sgqlc.types.Arg(EnterpriseUserAccountMembershipRole, graphql_name="role", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of Enterprise Server installations this user is a member + of. + + Arguments: + + * `query` (`String`): The search string to look for. + * `order_by` (`EnterpriseServerInstallationOrder`): Ordering + options for installations returned from the connection. + (default: `{field: HOST_NAME, direction: ASC}`) + * `role` (`EnterpriseUserAccountMembershipRole`): The role of the + user in the installation. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + name = sgqlc.types.Field(String, graphql_name="name") + """The name of the enterprise user account""" + + organizations = sgqlc.types.Field( + sgqlc.types.non_null(EnterpriseOrganizationMembershipConnection), + graphql_name="organizations", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"})), + ("role", sgqlc.types.Arg(EnterpriseUserAccountMembershipRole, graphql_name="role", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of enterprise organizations this user is a member of. + + Arguments: + + * `query` (`String`): The search string to look for. + * `order_by` (`OrganizationOrder`): Ordering options for + organizations returned from the connection. (default: `{field: + LOGIN, direction: ASC}`) + * `role` (`EnterpriseUserAccountMembershipRole`): The role of the + user in the enterprise organization. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + user = sgqlc.types.Field("User", graphql_name="user") + """The user within the enterprise.""" + + +class Environment(sgqlc.types.Type, Node): + """An environment.""" + + __schema__ = github_schema + __field_names__ = ("database_id", "name", "protection_rules") + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the environment""" + + protection_rules = sgqlc.types.Field( + sgqlc.types.non_null(DeploymentProtectionRuleConnection), + graphql_name="protectionRules", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The protection rules defined for this environment + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class ExternalIdentity(sgqlc.types.Type, Node): + """An external identity provisioned by SAML SSO or SCIM. If SAML is + configured on the organization, the external identity is visible + to (1) organization owners, (2) organization owners' personal + access tokens (classic) with read:org or admin:org scope, (3) + GitHub App with an installation token with read or write access to + members. If SAML is configured on the enterprise, the external + identity is visible to (1) enterprise owners, (2) enterprise + owners' personal access tokens (classic) with read:enterprise or + admin:enterprise scope. + """ + + __schema__ = github_schema + __field_names__ = ("guid", "organization_invitation", "saml_identity", "scim_identity", "user") + guid = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="guid") + """The GUID for this identity""" + + organization_invitation = sgqlc.types.Field("OrganizationInvitation", graphql_name="organizationInvitation") + """Organization invitation for this SCIM-provisioned external + identity + """ + + saml_identity = sgqlc.types.Field(ExternalIdentitySamlAttributes, graphql_name="samlIdentity") + """SAML Identity attributes""" + + scim_identity = sgqlc.types.Field(ExternalIdentityScimAttributes, graphql_name="scimIdentity") + """SCIM Identity attributes""" + + user = sgqlc.types.Field("User", graphql_name="user") + """User linked to this external identity. Will be NULL if this + identity has not been claimed by an organization member. + """ + + +class GenericHovercardContext(sgqlc.types.Type, HovercardContext): + """A generic hovercard context with a message and icon""" + + __schema__ = github_schema + __field_names__ = () + + +class Gist(sgqlc.types.Type, Node, Starrable, UniformResourceLocatable): + """A Gist.""" + + __schema__ = github_schema + __field_names__ = ( + "comments", + "created_at", + "description", + "files", + "forks", + "is_fork", + "is_public", + "name", + "owner", + "pushed_at", + "updated_at", + ) + comments = sgqlc.types.Field( + sgqlc.types.non_null(GistCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of comments associated with the gist + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The gist description.""" + + files = sgqlc.types.Field( + sgqlc.types.list_of(GistFile), + graphql_name="files", + args=sgqlc.types.ArgDict( + ( + ("limit", sgqlc.types.Arg(Int, graphql_name="limit", default=10)), + ("oid", sgqlc.types.Arg(GitObjectID, graphql_name="oid", default=None)), + ) + ), + ) + """The files in this gist. + + Arguments: + + * `limit` (`Int`): The maximum number of files to return. + (default: `10`) + * `oid` (`GitObjectID`): The oid of the files to return + """ + + forks = sgqlc.types.Field( + sgqlc.types.non_null(GistConnection), + graphql_name="forks", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(GistOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """A list of forks associated with the gist + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`GistOrder`): Ordering options for gists returned + from the connection + """ + + is_fork = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isFork") + """Identifies if the gist is a fork.""" + + is_public = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPublic") + """Whether the gist is public or not.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The gist name.""" + + owner = sgqlc.types.Field(RepositoryOwner, graphql_name="owner") + """The gist owner.""" + + pushed_at = sgqlc.types.Field(DateTime, graphql_name="pushedAt") + """Identifies when the gist was last pushed to.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class GistComment(sgqlc.types.Type, Node, Comment, Deletable, Minimizable, Updatable, UpdatableComment): + """Represents a comment on an Gist.""" + + __schema__ = github_schema + __field_names__ = ("database_id", "gist") + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + gist = sgqlc.types.Field(sgqlc.types.non_null(Gist), graphql_name="gist") + """The associated gist.""" + + +class GpgSignature(sgqlc.types.Type, GitSignature): + """Represents a GPG signature on a Commit or Tag.""" + + __schema__ = github_schema + __field_names__ = ("key_id",) + key_id = sgqlc.types.Field(String, graphql_name="keyId") + """Hex-encoded ID of the key that signed this object.""" + + +class HeadRefDeletedEvent(sgqlc.types.Type, Node): + """Represents a 'head_ref_deleted' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "head_ref", "head_ref_name", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + head_ref = sgqlc.types.Field("Ref", graphql_name="headRef") + """Identifies the Ref associated with the `head_ref_deleted` event.""" + + head_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="headRefName") + """Identifies the name of the Ref associated with the + `head_ref_deleted` event. + """ + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class HeadRefForcePushedEvent(sgqlc.types.Type, Node): + """Represents a 'head_ref_force_pushed' event on a given pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "after_commit", "before_commit", "created_at", "pull_request", "ref") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + after_commit = sgqlc.types.Field(Commit, graphql_name="afterCommit") + """Identifies the after commit SHA for the 'head_ref_force_pushed' + event. + """ + + before_commit = sgqlc.types.Field(Commit, graphql_name="beforeCommit") + """Identifies the before commit SHA for the 'head_ref_force_pushed' + event. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """Identifies the fully qualified ref name for the + 'head_ref_force_pushed' event. + """ + + +class HeadRefRestoredEvent(sgqlc.types.Type, Node): + """Represents a 'head_ref_restored' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class IpAllowListEntry(sgqlc.types.Type, Node): + """An IP address or range of addresses that is allowed to access an + owner's resources. + """ + + __schema__ = github_schema + __field_names__ = ("allow_list_value", "created_at", "is_active", "name", "owner", "updated_at") + allow_list_value = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="allowListValue") + """A single IP address or range of IP addresses in CIDR notation.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + is_active = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isActive") + """Whether the entry is currently active.""" + + name = sgqlc.types.Field(String, graphql_name="name") + """The name of the IP allow list entry.""" + + owner = sgqlc.types.Field(sgqlc.types.non_null("IpAllowListOwner"), graphql_name="owner") + """The owner of the IP allow list entry.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class Issue( + sgqlc.types.Type, + Node, + Assignable, + Closable, + Comment, + Deletable, + Updatable, + UpdatableComment, + Labelable, + Lockable, + Reactable, + RepositoryNode, + Subscribable, + UniformResourceLocatable, + ProjectV2Owner, +): + """An Issue is a place to discuss ideas, enhancements, tasks, and + bugs for a project. + """ + + __schema__ = github_schema + __field_names__ = ( + "body_resource_path", + "body_url", + "comments", + "full_database_id", + "hovercard", + "is_pinned", + "is_read_by_viewer", + "linked_branches", + "milestone", + "number", + "participants", + "project_cards", + "project_items", + "state", + "state_reason", + "timeline_items", + "title", + "title_html", + "tracked_in_issues", + "tracked_issues", + "tracked_issues_count", + ) + body_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="bodyResourcePath") + """The http path for this issue body""" + + body_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="bodyUrl") + """The http URL for this issue body""" + + comments = sgqlc.types.Field( + sgqlc.types.non_null(IssueCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(IssueCommentOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of comments associated with the Issue. + + Arguments: + + * `order_by` (`IssueCommentOrder`): Ordering options for issue + comments returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + full_database_id = sgqlc.types.Field(BigInt, graphql_name="fullDatabaseId") + """Identifies the primary key from the database as a BigInt.""" + + hovercard = sgqlc.types.Field( + sgqlc.types.non_null(Hovercard), + graphql_name="hovercard", + args=sgqlc.types.ArgDict( + (("include_notification_contexts", sgqlc.types.Arg(Boolean, graphql_name="includeNotificationContexts", default=True)),) + ), + ) + """The hovercard information for this issue + + Arguments: + + * `include_notification_contexts` (`Boolean`): Whether or not to + include notification contexts (default: `true`) + """ + + is_pinned = sgqlc.types.Field(Boolean, graphql_name="isPinned") + """Indicates whether or not this issue is currently pinned to the + repository issues list + """ + + is_read_by_viewer = sgqlc.types.Field(Boolean, graphql_name="isReadByViewer") + """Is this issue read by the viewer""" + + linked_branches = sgqlc.types.Field( + sgqlc.types.non_null(LinkedBranchConnection), + graphql_name="linkedBranches", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Branches linked to this issue. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + milestone = sgqlc.types.Field("Milestone", graphql_name="milestone") + """Identifies the milestone associated with the issue.""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """Identifies the issue number.""" + + participants = sgqlc.types.Field( + sgqlc.types.non_null(UserConnection), + graphql_name="participants", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of Users that are participating in the Issue conversation. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + project_cards = sgqlc.types.Field( + sgqlc.types.non_null(ProjectCardConnection), + graphql_name="projectCards", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "archived_states", + sgqlc.types.Arg( + sgqlc.types.list_of(ProjectCardArchivedState), graphql_name="archivedStates", default=("ARCHIVED", "NOT_ARCHIVED") + ), + ), + ) + ), + ) + """List of project cards associated with this issue. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `archived_states` (`[ProjectCardArchivedState]`): A list of + archived states to filter the cards by (default: `[ARCHIVED, + NOT_ARCHIVED]`) + """ + + project_items = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2ItemConnection), + graphql_name="projectItems", + args=sgqlc.types.ArgDict( + ( + ("include_archived", sgqlc.types.Arg(Boolean, graphql_name="includeArchived", default=True)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """List of project items associated with this issue. + + Arguments: + + * `include_archived` (`Boolean`): Include archived items. + (default: `true`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + state = sgqlc.types.Field(sgqlc.types.non_null(IssueState), graphql_name="state") + """Identifies the state of the issue.""" + + state_reason = sgqlc.types.Field(IssueStateReason, graphql_name="stateReason") + """Identifies the reason for the issue state.""" + + timeline_items = sgqlc.types.Field( + sgqlc.types.non_null(IssueTimelineItemsConnection), + graphql_name="timelineItems", + args=sgqlc.types.ArgDict( + ( + ("since", sgqlc.types.Arg(DateTime, graphql_name="since", default=None)), + ("skip", sgqlc.types.Arg(Int, graphql_name="skip", default=None)), + ( + "item_types", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(IssueTimelineItemsItemType)), graphql_name="itemTypes", default=None + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of events, comments, commits, etc. associated with the + issue. + + Arguments: + + * `since` (`DateTime`): Filter timeline items by a `since` + timestamp. + * `skip` (`Int`): Skips the first _n_ elements in the list. + * `item_types` (`[IssueTimelineItemsItemType!]`): Filter timeline + items by type. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """Identifies the issue title.""" + + title_html = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="titleHTML") + """Identifies the issue title rendered to HTML.""" + + tracked_in_issues = sgqlc.types.Field( + sgqlc.types.non_null(IssueConnection), + graphql_name="trackedInIssues", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of issues that track this issue + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + tracked_issues = sgqlc.types.Field( + sgqlc.types.non_null(IssueConnection), + graphql_name="trackedIssues", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of issues tracked inside the current issue + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + tracked_issues_count = sgqlc.types.Field( + sgqlc.types.non_null(Int), + graphql_name="trackedIssuesCount", + args=sgqlc.types.ArgDict( + (("states", sgqlc.types.Arg(sgqlc.types.list_of(TrackedIssueStates), graphql_name="states", default=None)),) + ), + ) + """The number of tracked issues for this issue + + Arguments: + + * `states` (`[TrackedIssueStates]`): Limit the count to tracked + issues with the specified states. + """ + + +class IssueComment(sgqlc.types.Type, Node, Comment, Deletable, Minimizable, Updatable, UpdatableComment, Reactable, RepositoryNode): + """Represents a comment on an Issue.""" + + __schema__ = github_schema + __field_names__ = ("full_database_id", "issue", "pull_request", "resource_path", "url") + full_database_id = sgqlc.types.Field(BigInt, graphql_name="fullDatabaseId") + """Identifies the primary key from the database as a BigInt.""" + + issue = sgqlc.types.Field(sgqlc.types.non_null(Issue), graphql_name="issue") + """Identifies the issue associated with the comment.""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """Returns the pull request associated with the comment, if this + comment was made on a pull request. + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this issue comment""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this issue comment""" + + +class JoinedGitHubContribution(sgqlc.types.Type, Contribution): + """Represents a user signing up for a GitHub account.""" + + __schema__ = github_schema + __field_names__ = () + + +class Label(sgqlc.types.Type, Node): + """A label for categorizing Issues, Pull Requests, Milestones, or + Discussions with a given Repository. + """ + + __schema__ = github_schema + __field_names__ = ( + "color", + "created_at", + "description", + "is_default", + "issues", + "name", + "pull_requests", + "repository", + "resource_path", + "updated_at", + "url", + ) + color = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="color") + """Identifies the label color.""" + + created_at = sgqlc.types.Field(DateTime, graphql_name="createdAt") + """Identifies the date and time when the label was created.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """A brief description of this label.""" + + is_default = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDefault") + """Indicates whether or not this is a default label.""" + + issues = sgqlc.types.Field( + sgqlc.types.non_null(IssueConnection), + graphql_name="issues", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(IssueState)), graphql_name="states", default=None)), + ("filter_by", sgqlc.types.Arg(IssueFilters, graphql_name="filterBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of issues associated with this label. + + Arguments: + + * `order_by` (`IssueOrder`): Ordering options for issues returned + from the connection. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `states` (`[IssueState!]`): A list of states to filter the + issues by. + * `filter_by` (`IssueFilters`): Filtering options for issues + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """Identifies the label name.""" + + pull_requests = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestConnection), + graphql_name="pullRequests", + args=sgqlc.types.ArgDict( + ( + ( + "states", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PullRequestState)), graphql_name="states", default=None), + ), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("head_ref_name", sgqlc.types.Arg(String, graphql_name="headRefName", default=None)), + ("base_ref_name", sgqlc.types.Arg(String, graphql_name="baseRefName", default=None)), + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pull requests associated with this label. + + Arguments: + + * `states` (`[PullRequestState!]`): A list of states to filter the + pull requests by. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `head_ref_name` (`String`): The head ref name to filter the pull + requests by. + * `base_ref_name` (`String`): The base ref name to filter the pull + requests by. + * `order_by` (`IssueOrder`): Ordering options for pull requests + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository associated with this label.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this label.""" + + updated_at = sgqlc.types.Field(DateTime, graphql_name="updatedAt") + """Identifies the date and time when the label was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this label.""" + + +class LabeledEvent(sgqlc.types.Type, Node): + """Represents a 'labeled' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "label", "labelable") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + label = sgqlc.types.Field(sgqlc.types.non_null(Label), graphql_name="label") + """Identifies the label associated with the 'labeled' event.""" + + labelable = sgqlc.types.Field(sgqlc.types.non_null(Labelable), graphql_name="labelable") + """Identifies the `Labelable` associated with the event.""" + + +class Language(sgqlc.types.Type, Node): + """Represents a given language found in repositories.""" + + __schema__ = github_schema + __field_names__ = ("color", "name") + color = sgqlc.types.Field(String, graphql_name="color") + """The color defined for the current language.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the current language.""" + + +class License(sgqlc.types.Type, Node): + """A repository's open source license""" + + __schema__ = github_schema + __field_names__ = ( + "body", + "conditions", + "description", + "featured", + "hidden", + "implementation", + "key", + "limitations", + "name", + "nickname", + "permissions", + "pseudo_license", + "spdx_id", + "url", + ) + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The full text of the license""" + + conditions = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(LicenseRule)), graphql_name="conditions") + """The conditions set by the license""" + + description = sgqlc.types.Field(String, graphql_name="description") + """A human-readable description of the license""" + + featured = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="featured") + """Whether the license should be featured""" + + hidden = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hidden") + """Whether the license should be displayed in license pickers""" + + implementation = sgqlc.types.Field(String, graphql_name="implementation") + """Instructions on how to implement the license""" + + key = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="key") + """The lowercased SPDX ID of the license""" + + limitations = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(LicenseRule)), graphql_name="limitations") + """The limitations set by the license""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The license full name specified by """ + + nickname = sgqlc.types.Field(String, graphql_name="nickname") + """Customary short name if applicable (e.g, GPLv3)""" + + permissions = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(LicenseRule)), graphql_name="permissions") + """The permissions set by the license""" + + pseudo_license = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="pseudoLicense") + """Whether the license is a pseudo-license placeholder (e.g., other, + no-license) + """ + + spdx_id = sgqlc.types.Field(String, graphql_name="spdxId") + """Short identifier specified by """ + + url = sgqlc.types.Field(URI, graphql_name="url") + """URL to the license on """ + + +class LinkedBranch(sgqlc.types.Type, Node): + """A branch linked to an issue.""" + + __schema__ = github_schema + __field_names__ = ("ref",) + ref = sgqlc.types.Field("Ref", graphql_name="ref") + """The branch's ref.""" + + +class LockedEvent(sgqlc.types.Type, Node): + """Represents a 'locked' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "lock_reason", "lockable") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + lock_reason = sgqlc.types.Field(LockReason, graphql_name="lockReason") + """Reason that the conversation was locked (optional).""" + + lockable = sgqlc.types.Field(sgqlc.types.non_null(Lockable), graphql_name="lockable") + """Object that was locked.""" + + +class Mannequin(sgqlc.types.Type, Node, Actor, UniformResourceLocatable): + """A placeholder user for attribution of imported data on GitHub.""" + + __schema__ = github_schema + __field_names__ = ("claimant", "created_at", "database_id", "email", "updated_at") + claimant = sgqlc.types.Field("User", graphql_name="claimant") + """The user that has claimed the data attributed to this mannequin.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + email = sgqlc.types.Field(String, graphql_name="email") + """The mannequin's email on the source instance.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class MarkedAsDuplicateEvent(sgqlc.types.Type, Node): + """Represents a 'marked_as_duplicate' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "canonical", "created_at", "duplicate", "is_cross_repository") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + canonical = sgqlc.types.Field("IssueOrPullRequest", graphql_name="canonical") + """The authoritative issue or pull request which has been duplicated + by another. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + duplicate = sgqlc.types.Field("IssueOrPullRequest", graphql_name="duplicate") + """The issue or pull request which has been marked as a duplicate of + another. + """ + + is_cross_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCrossRepository") + """Canonical and duplicate belong to different repositories.""" + + +class MarketplaceCategory(sgqlc.types.Type, Node): + """A public description of a Marketplace category.""" + + __schema__ = github_schema + __field_names__ = ( + "description", + "how_it_works", + "name", + "primary_listing_count", + "resource_path", + "secondary_listing_count", + "slug", + "url", + ) + description = sgqlc.types.Field(String, graphql_name="description") + """The category's description.""" + + how_it_works = sgqlc.types.Field(String, graphql_name="howItWorks") + """The technical description of how apps listed in this category work + with GitHub. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The category's name.""" + + primary_listing_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="primaryListingCount") + """How many Marketplace listings have this as their primary category.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this Marketplace category.""" + + secondary_listing_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="secondaryListingCount") + """How many Marketplace listings have this as their secondary + category. + """ + + slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="slug") + """The short name of the category used in its URL.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this Marketplace category.""" + + +class MarketplaceListing(sgqlc.types.Type, Node): + """A listing in the GitHub integration marketplace.""" + + __schema__ = github_schema + __field_names__ = ( + "app", + "company_url", + "configuration_resource_path", + "configuration_url", + "documentation_url", + "extended_description", + "extended_description_html", + "full_description", + "full_description_html", + "has_published_free_trial_plans", + "has_terms_of_service", + "has_verified_owner", + "how_it_works", + "how_it_works_html", + "installation_url", + "installed_for_viewer", + "is_archived", + "is_draft", + "is_paid", + "is_public", + "is_rejected", + "is_unverified", + "is_unverified_pending", + "is_verification_pending_from_draft", + "is_verification_pending_from_unverified", + "is_verified", + "logo_background_color", + "logo_url", + "name", + "normalized_short_description", + "pricing_url", + "primary_category", + "privacy_policy_url", + "resource_path", + "screenshot_urls", + "secondary_category", + "short_description", + "slug", + "status_url", + "support_email", + "support_url", + "terms_of_service_url", + "url", + "viewer_can_add_plans", + "viewer_can_approve", + "viewer_can_delist", + "viewer_can_edit", + "viewer_can_edit_categories", + "viewer_can_edit_plans", + "viewer_can_redraft", + "viewer_can_reject", + "viewer_can_request_approval", + "viewer_has_purchased", + "viewer_has_purchased_for_all_organizations", + "viewer_is_listing_admin", + ) + app = sgqlc.types.Field(App, graphql_name="app") + """The GitHub App this listing represents.""" + + company_url = sgqlc.types.Field(URI, graphql_name="companyUrl") + """URL to the listing owner's company site.""" + + configuration_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="configurationResourcePath") + """The HTTP path for configuring access to the listing's integration + or OAuth app + """ + + configuration_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="configurationUrl") + """The HTTP URL for configuring access to the listing's integration + or OAuth app + """ + + documentation_url = sgqlc.types.Field(URI, graphql_name="documentationUrl") + """URL to the listing's documentation.""" + + extended_description = sgqlc.types.Field(String, graphql_name="extendedDescription") + """The listing's detailed description.""" + + extended_description_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="extendedDescriptionHTML") + """The listing's detailed description rendered to HTML.""" + + full_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="fullDescription") + """The listing's introductory description.""" + + full_description_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="fullDescriptionHTML") + """The listing's introductory description rendered to HTML.""" + + has_published_free_trial_plans = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasPublishedFreeTrialPlans") + """Does this listing have any plans with a free trial?""" + + has_terms_of_service = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasTermsOfService") + """Does this listing have a terms of service link?""" + + has_verified_owner = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasVerifiedOwner") + """Whether the creator of the app is a verified org""" + + how_it_works = sgqlc.types.Field(String, graphql_name="howItWorks") + """A technical description of how this app works with GitHub.""" + + how_it_works_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="howItWorksHTML") + """The listing's technical description rendered to HTML.""" + + installation_url = sgqlc.types.Field(URI, graphql_name="installationUrl") + """URL to install the product to the viewer's account or + organization. + """ + + installed_for_viewer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="installedForViewer") + """Whether this listing's app has been installed for the current + viewer + """ + + is_archived = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isArchived") + """Whether this listing has been removed from the Marketplace.""" + + is_draft = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDraft") + """Whether this listing is still an editable draft that has not been + submitted for review and is not publicly visible in the + Marketplace. + """ + + is_paid = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPaid") + """Whether the product this listing represents is available as part + of a paid plan. + """ + + is_public = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPublic") + """Whether this listing has been approved for display in the + Marketplace. + """ + + is_rejected = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isRejected") + """Whether this listing has been rejected by GitHub for display in + the Marketplace. + """ + + is_unverified = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isUnverified") + """Whether this listing has been approved for unverified display in + the Marketplace. + """ + + is_unverified_pending = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isUnverifiedPending") + """Whether this draft listing has been submitted for review for + approval to be unverified in the Marketplace. + """ + + is_verification_pending_from_draft = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isVerificationPendingFromDraft") + """Whether this draft listing has been submitted for review from + GitHub for approval to be verified in the Marketplace. + """ + + is_verification_pending_from_unverified = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), graphql_name="isVerificationPendingFromUnverified" + ) + """Whether this unverified listing has been submitted for review from + GitHub for approval to be verified in the Marketplace. + """ + + is_verified = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isVerified") + """Whether this listing has been approved for verified display in the + Marketplace. + """ + + logo_background_color = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="logoBackgroundColor") + """The hex color code, without the leading '#', for the logo + background. + """ + + logo_url = sgqlc.types.Field( + URI, graphql_name="logoUrl", args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=400)),)) + ) + """URL for the listing's logo image. + + Arguments: + + * `size` (`Int`): The size in pixels of the resulting square + image. (default: `400`) + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The listing's full name.""" + + normalized_short_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="normalizedShortDescription") + """The listing's very short description without a trailing period or + ampersands. + """ + + pricing_url = sgqlc.types.Field(URI, graphql_name="pricingUrl") + """URL to the listing's detailed pricing.""" + + primary_category = sgqlc.types.Field(sgqlc.types.non_null(MarketplaceCategory), graphql_name="primaryCategory") + """The category that best describes the listing.""" + + privacy_policy_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="privacyPolicyUrl") + """URL to the listing's privacy policy, may return an empty string + for listings that do not require a privacy policy URL. + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for the Marketplace listing.""" + + screenshot_urls = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(String)), graphql_name="screenshotUrls") + """The URLs for the listing's screenshots.""" + + secondary_category = sgqlc.types.Field(MarketplaceCategory, graphql_name="secondaryCategory") + """An alternate category that describes the listing.""" + + short_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="shortDescription") + """The listing's very short description.""" + + slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="slug") + """The short name of the listing used in its URL.""" + + status_url = sgqlc.types.Field(URI, graphql_name="statusUrl") + """URL to the listing's status page.""" + + support_email = sgqlc.types.Field(String, graphql_name="supportEmail") + """An email address for support for this listing's app.""" + + support_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="supportUrl") + """Either a URL or an email address for support for this listing's + app, may return an empty string for listings that do not require a + support URL. + """ + + terms_of_service_url = sgqlc.types.Field(URI, graphql_name="termsOfServiceUrl") + """URL to the listing's terms of service.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for the Marketplace listing.""" + + viewer_can_add_plans = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanAddPlans") + """Can the current viewer add plans for this Marketplace listing.""" + + viewer_can_approve = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanApprove") + """Can the current viewer approve this Marketplace listing.""" + + viewer_can_delist = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanDelist") + """Can the current viewer delist this Marketplace listing.""" + + viewer_can_edit = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanEdit") + """Can the current viewer edit this Marketplace listing.""" + + viewer_can_edit_categories = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanEditCategories") + """Can the current viewer edit the primary and secondary category of + this Marketplace listing. + """ + + viewer_can_edit_plans = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanEditPlans") + """Can the current viewer edit the plans for this Marketplace + listing. + """ + + viewer_can_redraft = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanRedraft") + """Can the current viewer return this Marketplace listing to draft + state so it becomes editable again. + """ + + viewer_can_reject = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanReject") + """Can the current viewer reject this Marketplace listing by + returning it to an editable draft state or rejecting it entirely. + """ + + viewer_can_request_approval = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanRequestApproval") + """Can the current viewer request this listing be reviewed for + display in the Marketplace as verified. + """ + + viewer_has_purchased = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerHasPurchased") + """Indicates whether the current user has an active subscription to + this Marketplace listing. + """ + + viewer_has_purchased_for_all_organizations = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), graphql_name="viewerHasPurchasedForAllOrganizations" + ) + """Indicates if the current user has purchased a subscription to this + Marketplace listing for all of the organizations the user owns. + """ + + viewer_is_listing_admin = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerIsListingAdmin") + """Does the current viewer role allow them to administer this + Marketplace listing. + """ + + +class MembersCanDeleteReposClearAuditEntry(sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a members_can_delete_repos.clear event.""" + + __schema__ = github_schema + __field_names__ = () + + +class MembersCanDeleteReposDisableAuditEntry(sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a members_can_delete_repos.disable event.""" + + __schema__ = github_schema + __field_names__ = () + + +class MembersCanDeleteReposEnableAuditEntry(sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a members_can_delete_repos.enable event.""" + + __schema__ = github_schema + __field_names__ = () + + +class MentionedEvent(sgqlc.types.Type, Node): + """Represents a 'mentioned' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "database_id") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + +class MergeQueue(sgqlc.types.Type, Node): + """The queue of pull request entries to be merged into a protected + branch in a repository. + """ + + __schema__ = github_schema + __field_names__ = ("configuration", "entries", "next_entry_estimated_time_to_merge", "repository", "resource_path", "url") + configuration = sgqlc.types.Field(MergeQueueConfiguration, graphql_name="configuration") + """The configuration for this merge queue""" + + entries = sgqlc.types.Field( + MergeQueueEntryConnection, + graphql_name="entries", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The entries in the queue + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + next_entry_estimated_time_to_merge = sgqlc.types.Field(Int, graphql_name="nextEntryEstimatedTimeToMerge") + """The estimated time in seconds until a newly added entry would be + merged + """ + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository this merge queue belongs to""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this merge queue""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this merge queue""" + + +class MergeQueueEntry(sgqlc.types.Type, Node): + """Entries in a MergeQueue""" + + __schema__ = github_schema + __field_names__ = ( + "base_commit", + "enqueued_at", + "enqueuer", + "estimated_time_to_merge", + "head_commit", + "jump", + "merge_queue", + "position", + "pull_request", + "solo", + "state", + ) + base_commit = sgqlc.types.Field(Commit, graphql_name="baseCommit") + """The base commit for this entry""" + + enqueued_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="enqueuedAt") + """The date and time this entry was added to the merge queue""" + + enqueuer = sgqlc.types.Field(sgqlc.types.non_null(Actor), graphql_name="enqueuer") + """The actor that enqueued this entry""" + + estimated_time_to_merge = sgqlc.types.Field(Int, graphql_name="estimatedTimeToMerge") + """The estimated time in seconds until this entry will be merged""" + + head_commit = sgqlc.types.Field(Commit, graphql_name="headCommit") + """The head commit for this entry""" + + jump = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="jump") + """Whether this pull request should jump the queue""" + + merge_queue = sgqlc.types.Field(MergeQueue, graphql_name="mergeQueue") + """The merge queue that this entry belongs to""" + + position = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="position") + """The position of this entry in the queue""" + + pull_request = sgqlc.types.Field("PullRequest", graphql_name="pullRequest") + """The pull request that will be added to a merge group""" + + solo = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="solo") + """Does this pull request need to be deployed on its own""" + + state = sgqlc.types.Field(sgqlc.types.non_null(MergeQueueEntryState), graphql_name="state") + """The state of this entry in the queue""" + + +class MergedEvent(sgqlc.types.Type, Node, UniformResourceLocatable): + """Represents a 'merged' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "commit", "created_at", "merge_ref", "merge_ref_name", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """Identifies the commit associated with the `merge` event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + merge_ref = sgqlc.types.Field("Ref", graphql_name="mergeRef") + """Identifies the Ref associated with the `merge` event.""" + + merge_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="mergeRefName") + """Identifies the name of the Ref associated with the `merge` event.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null("PullRequest"), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class MigrationSource(sgqlc.types.Type, Node): + """A GitHub Enterprise Importer (GEI) migration source.""" + + __schema__ = github_schema + __field_names__ = ("name", "type", "url") + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The migration source name.""" + + type = sgqlc.types.Field(sgqlc.types.non_null(MigrationSourceType), graphql_name="type") + """The migration source type.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The migration source URL, for example `https://github.com` or + `https://monalisa.ghe.com`. + """ + + +class Milestone(sgqlc.types.Type, Node, Closable, UniformResourceLocatable): + """Represents a Milestone object on a given repository.""" + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "creator", + "description", + "due_on", + "issues", + "number", + "progress_percentage", + "pull_requests", + "repository", + "state", + "title", + "updated_at", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """Identifies the actor who created the milestone.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """Identifies the description of the milestone.""" + + due_on = sgqlc.types.Field(DateTime, graphql_name="dueOn") + """Identifies the due date of the milestone.""" + + issues = sgqlc.types.Field( + sgqlc.types.non_null(IssueConnection), + graphql_name="issues", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(IssueState)), graphql_name="states", default=None)), + ("filter_by", sgqlc.types.Arg(IssueFilters, graphql_name="filterBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of issues associated with the milestone. + + Arguments: + + * `order_by` (`IssueOrder`): Ordering options for issues returned + from the connection. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `states` (`[IssueState!]`): A list of states to filter the + issues by. + * `filter_by` (`IssueFilters`): Filtering options for issues + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """Identifies the number of the milestone.""" + + progress_percentage = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name="progressPercentage") + """Identifies the percentage complete for the milestone""" + + pull_requests = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestConnection), + graphql_name="pullRequests", + args=sgqlc.types.ArgDict( + ( + ( + "states", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PullRequestState)), graphql_name="states", default=None), + ), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("head_ref_name", sgqlc.types.Arg(String, graphql_name="headRefName", default=None)), + ("base_ref_name", sgqlc.types.Arg(String, graphql_name="baseRefName", default=None)), + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pull requests associated with the milestone. + + Arguments: + + * `states` (`[PullRequestState!]`): A list of states to filter the + pull requests by. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `head_ref_name` (`String`): The head ref name to filter the pull + requests by. + * `base_ref_name` (`String`): The base ref name to filter the pull + requests by. + * `order_by` (`IssueOrder`): Ordering options for pull requests + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository associated with this milestone.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(MilestoneState), graphql_name="state") + """Identifies the state of the milestone.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """Identifies the title of the milestone.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class MilestonedEvent(sgqlc.types.Type, Node): + """Represents a 'milestoned' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "milestone_title", "subject") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + milestone_title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="milestoneTitle") + """Identifies the milestone title associated with the 'milestoned' + event. + """ + + subject = sgqlc.types.Field(sgqlc.types.non_null("MilestoneItem"), graphql_name="subject") + """Object referenced by event.""" + + +class MovedColumnsInProjectEvent(sgqlc.types.Type, Node): + """Represents a 'moved_columns_in_project' event on a given issue or + pull request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "database_id") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + +class OIDCProvider(sgqlc.types.Type, Node): + """An OIDC identity provider configured to provision identities for + an enterprise. Visible to enterprise owners or enterprise owners' + personal access tokens (classic) with read:enterprise or + admin:enterprise scope. + """ + + __schema__ = github_schema + __field_names__ = ("enterprise", "external_identities", "provider_type", "tenant_id") + enterprise = sgqlc.types.Field(Enterprise, graphql_name="enterprise") + """The enterprise this identity provider belongs to.""" + + external_identities = sgqlc.types.Field( + sgqlc.types.non_null(ExternalIdentityConnection), + graphql_name="externalIdentities", + args=sgqlc.types.ArgDict( + ( + ("members_only", sgqlc.types.Arg(Boolean, graphql_name="membersOnly", default=None)), + ("login", sgqlc.types.Arg(String, graphql_name="login", default=None)), + ("user_name", sgqlc.types.Arg(String, graphql_name="userName", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """ExternalIdentities provisioned by this identity provider. + + Arguments: + + * `members_only` (`Boolean`): Filter to external identities with + valid org membership only + * `login` (`String`): Filter to external identities with the users + login + * `user_name` (`String`): Filter to external identities with the + users userName/NameID attribute + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + provider_type = sgqlc.types.Field(sgqlc.types.non_null(OIDCProviderType), graphql_name="providerType") + """The OIDC identity provider type""" + + tenant_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="tenantId") + """The id of the tenant this provider is attached to""" + + +class OauthApplicationCreateAuditEntry(sgqlc.types.Type, Node, AuditEntry, OauthApplicationAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a oauth_application.create event.""" + + __schema__ = github_schema + __field_names__ = ("application_url", "callback_url", "rate_limit", "state") + application_url = sgqlc.types.Field(URI, graphql_name="applicationUrl") + """The application URL of the OAuth application.""" + + callback_url = sgqlc.types.Field(URI, graphql_name="callbackUrl") + """The callback URL of the OAuth application.""" + + rate_limit = sgqlc.types.Field(Int, graphql_name="rateLimit") + """The rate limit of the OAuth application.""" + + state = sgqlc.types.Field(OauthApplicationCreateAuditEntryState, graphql_name="state") + """The state of the OAuth application.""" + + +class OrgAddBillingManagerAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.add_billing_manager""" + + __schema__ = github_schema + __field_names__ = ("invitation_email",) + invitation_email = sgqlc.types.Field(String, graphql_name="invitationEmail") + """The email address used to invite a billing manager for the + organization. + """ + + +class OrgAddMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.add_member""" + + __schema__ = github_schema + __field_names__ = ("permission",) + permission = sgqlc.types.Field(OrgAddMemberAuditEntryPermission, graphql_name="permission") + """The permission level of the member added to the organization.""" + + +class OrgBlockUserAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.block_user""" + + __schema__ = github_schema + __field_names__ = ("blocked_user", "blocked_user_name", "blocked_user_resource_path", "blocked_user_url") + blocked_user = sgqlc.types.Field("User", graphql_name="blockedUser") + """The blocked user.""" + + blocked_user_name = sgqlc.types.Field(String, graphql_name="blockedUserName") + """The username of the blocked user.""" + + blocked_user_resource_path = sgqlc.types.Field(URI, graphql_name="blockedUserResourcePath") + """The HTTP path for the blocked user.""" + + blocked_user_url = sgqlc.types.Field(URI, graphql_name="blockedUserUrl") + """The HTTP URL for the blocked user.""" + + +class OrgConfigDisableCollaboratorsOnlyAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.config.disable_collaborators_only event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgConfigEnableCollaboratorsOnlyAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.config.enable_collaborators_only event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgCreateAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.create event.""" + + __schema__ = github_schema + __field_names__ = ("billing_plan",) + billing_plan = sgqlc.types.Field(OrgCreateAuditEntryBillingPlan, graphql_name="billingPlan") + """The billing plan for the Organization.""" + + +class OrgDisableOauthAppRestrictionsAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.disable_oauth_app_restrictions event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgDisableSamlAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.disable_saml event.""" + + __schema__ = github_schema + __field_names__ = ("digest_method_url", "issuer_url", "signature_method_url", "single_sign_on_url") + digest_method_url = sgqlc.types.Field(URI, graphql_name="digestMethodUrl") + """The SAML provider's digest algorithm URL.""" + + issuer_url = sgqlc.types.Field(URI, graphql_name="issuerUrl") + """The SAML provider's issuer URL.""" + + signature_method_url = sgqlc.types.Field(URI, graphql_name="signatureMethodUrl") + """The SAML provider's signature algorithm URL.""" + + single_sign_on_url = sgqlc.types.Field(URI, graphql_name="singleSignOnUrl") + """The SAML provider's single sign-on URL.""" + + +class OrgDisableTwoFactorRequirementAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.disable_two_factor_requirement event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgEnableOauthAppRestrictionsAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.enable_oauth_app_restrictions event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgEnableSamlAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.enable_saml event.""" + + __schema__ = github_schema + __field_names__ = ("digest_method_url", "issuer_url", "signature_method_url", "single_sign_on_url") + digest_method_url = sgqlc.types.Field(URI, graphql_name="digestMethodUrl") + """The SAML provider's digest algorithm URL.""" + + issuer_url = sgqlc.types.Field(URI, graphql_name="issuerUrl") + """The SAML provider's issuer URL.""" + + signature_method_url = sgqlc.types.Field(URI, graphql_name="signatureMethodUrl") + """The SAML provider's signature algorithm URL.""" + + single_sign_on_url = sgqlc.types.Field(URI, graphql_name="singleSignOnUrl") + """The SAML provider's single sign-on URL.""" + + +class OrgEnableTwoFactorRequirementAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.enable_two_factor_requirement event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgInviteMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.invite_member event.""" + + __schema__ = github_schema + __field_names__ = ("email", "organization_invitation") + email = sgqlc.types.Field(String, graphql_name="email") + """The email address of the organization invitation.""" + + organization_invitation = sgqlc.types.Field("OrganizationInvitation", graphql_name="organizationInvitation") + """The organization invitation.""" + + +class OrgInviteToBusinessAuditEntry(sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a org.invite_to_business event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgOauthAppAccessApprovedAuditEntry(sgqlc.types.Type, Node, AuditEntry, OauthApplicationAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a org.oauth_app_access_approved event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgOauthAppAccessDeniedAuditEntry(sgqlc.types.Type, Node, AuditEntry, OauthApplicationAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a org.oauth_app_access_denied event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgOauthAppAccessRequestedAuditEntry(sgqlc.types.Type, Node, AuditEntry, OauthApplicationAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a org.oauth_app_access_requested event.""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgRemoveBillingManagerAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.remove_billing_manager event.""" + + __schema__ = github_schema + __field_names__ = ("reason",) + reason = sgqlc.types.Field(OrgRemoveBillingManagerAuditEntryReason, graphql_name="reason") + """The reason for the billing manager being removed.""" + + +class OrgRemoveMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.remove_member event.""" + + __schema__ = github_schema + __field_names__ = ("membership_types", "reason") + membership_types = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(OrgRemoveMemberAuditEntryMembershipType)), graphql_name="membershipTypes" + ) + """The types of membership the member has with the organization.""" + + reason = sgqlc.types.Field(OrgRemoveMemberAuditEntryReason, graphql_name="reason") + """The reason for the member being removed.""" + + +class OrgRemoveOutsideCollaboratorAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.remove_outside_collaborator event.""" + + __schema__ = github_schema + __field_names__ = ("membership_types", "reason") + membership_types = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(OrgRemoveOutsideCollaboratorAuditEntryMembershipType)), graphql_name="membershipTypes" + ) + """The types of membership the outside collaborator has with the + organization. + """ + + reason = sgqlc.types.Field(OrgRemoveOutsideCollaboratorAuditEntryReason, graphql_name="reason") + """The reason for the outside collaborator being removed from the + Organization. + """ + + +class OrgRestoreMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.restore_member event.""" + + __schema__ = github_schema + __field_names__ = ( + "restored_custom_email_routings_count", + "restored_issue_assignments_count", + "restored_memberships", + "restored_memberships_count", + "restored_repositories_count", + "restored_repository_stars_count", + "restored_repository_watches_count", + ) + restored_custom_email_routings_count = sgqlc.types.Field(Int, graphql_name="restoredCustomEmailRoutingsCount") + """The number of custom email routings for the restored member.""" + + restored_issue_assignments_count = sgqlc.types.Field(Int, graphql_name="restoredIssueAssignmentsCount") + """The number of issue assignments for the restored member.""" + + restored_memberships = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null("OrgRestoreMemberAuditEntryMembership")), graphql_name="restoredMemberships" + ) + """Restored organization membership objects.""" + + restored_memberships_count = sgqlc.types.Field(Int, graphql_name="restoredMembershipsCount") + """The number of restored memberships.""" + + restored_repositories_count = sgqlc.types.Field(Int, graphql_name="restoredRepositoriesCount") + """The number of repositories of the restored member.""" + + restored_repository_stars_count = sgqlc.types.Field(Int, graphql_name="restoredRepositoryStarsCount") + """The number of starred repositories for the restored member.""" + + restored_repository_watches_count = sgqlc.types.Field(Int, graphql_name="restoredRepositoryWatchesCount") + """The number of watched repositories for the restored member.""" + + +class OrgRestoreMemberMembershipOrganizationAuditEntryData(sgqlc.types.Type, OrganizationAuditEntryData): + """Metadata for an organization membership for org.restore_member + actions + """ + + __schema__ = github_schema + __field_names__ = () + + +class OrgRestoreMemberMembershipRepositoryAuditEntryData(sgqlc.types.Type, RepositoryAuditEntryData): + """Metadata for a repository membership for org.restore_member + actions + """ + + __schema__ = github_schema + __field_names__ = () + + +class OrgRestoreMemberMembershipTeamAuditEntryData(sgqlc.types.Type, TeamAuditEntryData): + """Metadata for a team membership for org.restore_member actions""" + + __schema__ = github_schema + __field_names__ = () + + +class OrgUnblockUserAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.unblock_user""" + + __schema__ = github_schema + __field_names__ = ("blocked_user", "blocked_user_name", "blocked_user_resource_path", "blocked_user_url") + blocked_user = sgqlc.types.Field("User", graphql_name="blockedUser") + """The user being unblocked by the organization.""" + + blocked_user_name = sgqlc.types.Field(String, graphql_name="blockedUserName") + """The username of the blocked user.""" + + blocked_user_resource_path = sgqlc.types.Field(URI, graphql_name="blockedUserResourcePath") + """The HTTP path for the blocked user.""" + + blocked_user_url = sgqlc.types.Field(URI, graphql_name="blockedUserUrl") + """The HTTP URL for the blocked user.""" + + +class OrgUpdateDefaultRepositoryPermissionAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.update_default_repository_permission""" + + __schema__ = github_schema + __field_names__ = ("permission", "permission_was") + permission = sgqlc.types.Field(OrgUpdateDefaultRepositoryPermissionAuditEntryPermission, graphql_name="permission") + """The new base repository permission level for the organization.""" + + permission_was = sgqlc.types.Field(OrgUpdateDefaultRepositoryPermissionAuditEntryPermission, graphql_name="permissionWas") + """The former base repository permission level for the organization.""" + + +class OrgUpdateMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a org.update_member event.""" + + __schema__ = github_schema + __field_names__ = ("permission", "permission_was") + permission = sgqlc.types.Field(OrgUpdateMemberAuditEntryPermission, graphql_name="permission") + """The new member permission level for the organization.""" + + permission_was = sgqlc.types.Field(OrgUpdateMemberAuditEntryPermission, graphql_name="permissionWas") + """The former member permission level for the organization.""" + + +class OrgUpdateMemberRepositoryCreationPermissionAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a + org.update_member_repository_creation_permission event. + """ + + __schema__ = github_schema + __field_names__ = ("can_create_repositories", "visibility") + can_create_repositories = sgqlc.types.Field(Boolean, graphql_name="canCreateRepositories") + """Can members create repositories in the organization.""" + + visibility = sgqlc.types.Field(OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility, graphql_name="visibility") + """The permission for visibility level of repositories for this + organization. + """ + + +class OrgUpdateMemberRepositoryInvitationPermissionAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData): + """Audit log entry for a + org.update_member_repository_invitation_permission event. + """ + + __schema__ = github_schema + __field_names__ = ("can_invite_outside_collaborators_to_repositories",) + can_invite_outside_collaborators_to_repositories = sgqlc.types.Field( + Boolean, graphql_name="canInviteOutsideCollaboratorsToRepositories" + ) + """Can outside collaborators be invited to repositories in the + organization. + """ + + +class Organization( + sgqlc.types.Type, + Node, + Actor, + PackageOwner, + ProjectOwner, + ProjectV2Owner, + ProjectV2Recent, + RepositoryDiscussionAuthor, + RepositoryDiscussionCommentAuthor, + RepositoryOwner, + UniformResourceLocatable, + MemberStatusable, + ProfileOwner, + Sponsorable, + AnnouncementBanner, +): + """An account on GitHub, with one or more owners, that has + repositories, members and teams. + """ + + __schema__ = github_schema + __field_names__ = ( + "audit_log", + "created_at", + "database_id", + "description", + "description_html", + "domains", + "enterprise_owners", + "interaction_ability", + "ip_allow_list_enabled_setting", + "ip_allow_list_entries", + "ip_allow_list_for_installed_apps_enabled_setting", + "is_verified", + "mannequins", + "members_can_fork_private_repositories", + "members_with_role", + "new_team_resource_path", + "new_team_url", + "notification_delivery_restriction_enabled_setting", + "organization_billing_email", + "pending_members", + "repository_migrations", + "requires_two_factor_authentication", + "ruleset", + "rulesets", + "saml_identity_provider", + "team", + "teams", + "teams_resource_path", + "teams_url", + "twitter_username", + "updated_at", + "viewer_can_administer", + "viewer_can_create_repositories", + "viewer_can_create_teams", + "viewer_is_amember", + "viewer_is_following", + "web_commit_signoff_required", + ) + audit_log = sgqlc.types.Field( + sgqlc.types.non_null(OrganizationAuditEntryConnection), + graphql_name="auditLog", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("order_by", sgqlc.types.Arg(AuditLogOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"})), + ) + ), + ) + """Audit log entries of the organization + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `query` (`String`): The query string to filter audit entries + * `order_by` (`AuditLogOrder`): Ordering options for the returned + audit log entries. (default: `{field: CREATED_AT, direction: + DESC}`) + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The organization's public profile description.""" + + description_html = sgqlc.types.Field(String, graphql_name="descriptionHTML") + """The organization's public profile description rendered to HTML.""" + + domains = sgqlc.types.Field( + VerifiableDomainConnection, + graphql_name="domains", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("is_verified", sgqlc.types.Arg(Boolean, graphql_name="isVerified", default=None)), + ("is_approved", sgqlc.types.Arg(Boolean, graphql_name="isApproved", default=None)), + ( + "order_by", + sgqlc.types.Arg(VerifiableDomainOrder, graphql_name="orderBy", default={"field": "DOMAIN", "direction": "ASC"}), + ), + ) + ), + ) + """A list of domains owned by the organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `is_verified` (`Boolean`): Filter by if the domain is verified. + (default: `null`) + * `is_approved` (`Boolean`): Filter by if the domain is approved. + (default: `null`) + * `order_by` (`VerifiableDomainOrder`): Ordering options for + verifiable domains returned. (default: `{field: DOMAIN, + direction: ASC}`) + """ + + enterprise_owners = sgqlc.types.Field( + sgqlc.types.non_null(OrganizationEnterpriseOwnerConnection), + graphql_name="enterpriseOwners", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("organization_role", sgqlc.types.Arg(RoleInOrganization, graphql_name="organizationRole", default=None)), + ( + "order_by", + sgqlc.types.Arg(OrgEnterpriseOwnerOrder, graphql_name="orderBy", default={"field": "LOGIN", "direction": "ASC"}), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of owners of the organization's enterprise account. + + Arguments: + + * `query` (`String`): The search string to look for. + * `organization_role` (`RoleInOrganization`): The organization + role to filter by. + * `order_by` (`OrgEnterpriseOwnerOrder`): Ordering options for + enterprise owners returned from the connection. (default: + `{field: LOGIN, direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + interaction_ability = sgqlc.types.Field(RepositoryInteractionAbility, graphql_name="interactionAbility") + """The interaction ability settings for this organization.""" + + ip_allow_list_enabled_setting = sgqlc.types.Field( + sgqlc.types.non_null(IpAllowListEnabledSettingValue), graphql_name="ipAllowListEnabledSetting" + ) + """The setting value for whether the organization has an IP allow + list enabled. + """ + + ip_allow_list_entries = sgqlc.types.Field( + sgqlc.types.non_null(IpAllowListEntryConnection), + graphql_name="ipAllowListEntries", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg( + IpAllowListEntryOrder, graphql_name="orderBy", default={"field": "ALLOW_LIST_VALUE", "direction": "ASC"} + ), + ), + ) + ), + ) + """The IP addresses that are allowed to access resources owned by the + organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`IpAllowListEntryOrder`): Ordering options for IP + allow list entries returned. (default: `{field: + ALLOW_LIST_VALUE, direction: ASC}`) + """ + + ip_allow_list_for_installed_apps_enabled_setting = sgqlc.types.Field( + sgqlc.types.non_null(IpAllowListForInstalledAppsEnabledSettingValue), graphql_name="ipAllowListForInstalledAppsEnabledSetting" + ) + """The setting value for whether the organization has IP allow list + configuration for installed GitHub Apps enabled. + """ + + is_verified = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isVerified") + """Whether the organization has verified its profile email and + website. + """ + + mannequins = sgqlc.types.Field( + sgqlc.types.non_null(MannequinConnection), + graphql_name="mannequins", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(MannequinOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"})), + ) + ), + ) + """A list of all mannequins for this organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`MannequinOrder`): Ordering options for mannequins + returned from the connection. (default: `{field: CREATED_AT, + direction: ASC}`) + """ + + members_can_fork_private_repositories = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), graphql_name="membersCanForkPrivateRepositories" + ) + """Members can fork private repositories in this organization""" + + members_with_role = sgqlc.types.Field( + sgqlc.types.non_null(OrganizationMemberConnection), + graphql_name="membersWithRole", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users who are members of this organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + new_team_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="newTeamResourcePath") + """The HTTP path creating a new team""" + + new_team_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="newTeamUrl") + """The HTTP URL creating a new team""" + + notification_delivery_restriction_enabled_setting = sgqlc.types.Field( + sgqlc.types.non_null(NotificationRestrictionSettingValue), graphql_name="notificationDeliveryRestrictionEnabledSetting" + ) + """Indicates if email notification delivery for this organization is + restricted to verified or approved domains. + """ + + organization_billing_email = sgqlc.types.Field(String, graphql_name="organizationBillingEmail") + """The billing email for the organization.""" + + pending_members = sgqlc.types.Field( + sgqlc.types.non_null(UserConnection), + graphql_name="pendingMembers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users who have been invited to join this organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + repository_migrations = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryMigrationConnection), + graphql_name="repositoryMigrations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("state", sgqlc.types.Arg(MigrationState, graphql_name="state", default=None)), + ("repository_name", sgqlc.types.Arg(String, graphql_name="repositoryName", default=None)), + ( + "order_by", + sgqlc.types.Arg(RepositoryMigrationOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"}), + ), + ) + ), + ) + """A list of all repository migrations for this organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `state` (`MigrationState`): Filter repository migrations by + state. + * `repository_name` (`String`): Filter repository migrations by + repository name. + * `order_by` (`RepositoryMigrationOrder`): Ordering options for + repository migrations returned. (default: `{field: CREATED_AT, + direction: ASC}`) + """ + + requires_two_factor_authentication = sgqlc.types.Field(Boolean, graphql_name="requiresTwoFactorAuthentication") + """When true the organization requires all members, billing managers, + and outside collaborators to enable two-factor authentication. + """ + + ruleset = sgqlc.types.Field( + "RepositoryRuleset", + graphql_name="ruleset", + args=sgqlc.types.ArgDict((("database_id", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="databaseId", default=None)),)), + ) + """Returns a single ruleset from the current organization by ID. + + Arguments: + + * `database_id` (`Int!`): The ID of the ruleset to be returned. + """ + + rulesets = sgqlc.types.Field( + RepositoryRulesetConnection, + graphql_name="rulesets", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("include_parents", sgqlc.types.Arg(Boolean, graphql_name="includeParents", default=False)), + ) + ), + ) + """A list of rulesets for this organization. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `include_parents` (`Boolean`): Return rulesets configured at + higher levels that apply to this organization (default: `false`) + """ + + saml_identity_provider = sgqlc.types.Field("OrganizationIdentityProvider", graphql_name="samlIdentityProvider") + """The Organization's SAML identity provider. Visible to (1) + organization owners, (2) organization owners' personal access + tokens (classic) with read:org or admin:org scope, (3) GitHub App + with an installation token with read or write access to members. + """ + + team = sgqlc.types.Field( + "Team", + graphql_name="team", + args=sgqlc.types.ArgDict((("slug", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="slug", default=None)),)), + ) + """Find an organization's team by its slug. + + Arguments: + + * `slug` (`String!`): The name or slug of the team to find. + """ + + teams = sgqlc.types.Field( + sgqlc.types.non_null(TeamConnection), + graphql_name="teams", + args=sgqlc.types.ArgDict( + ( + ("privacy", sgqlc.types.Arg(TeamPrivacy, graphql_name="privacy", default=None)), + ("notification_setting", sgqlc.types.Arg(TeamNotificationSetting, graphql_name="notificationSetting", default=None)), + ("role", sgqlc.types.Arg(TeamRole, graphql_name="role", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ( + "user_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="userLogins", default=None), + ), + ("order_by", sgqlc.types.Arg(TeamOrder, graphql_name="orderBy", default=None)), + ("ldap_mapped", sgqlc.types.Arg(Boolean, graphql_name="ldapMapped", default=None)), + ("root_teams_only", sgqlc.types.Arg(Boolean, graphql_name="rootTeamsOnly", default=False)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of teams in this organization. + + Arguments: + + * `privacy` (`TeamPrivacy`): If non-null, filters teams according + to privacy + * `notification_setting` (`TeamNotificationSetting`): If non-null, + filters teams according to notification setting + * `role` (`TeamRole`): If non-null, filters teams according to + whether the viewer is an admin or member on team + * `query` (`String`): If non-null, filters teams with query on + team name and team slug + * `user_logins` (`[String!]`): User logins to filter by + * `order_by` (`TeamOrder`): Ordering options for teams returned + from the connection + * `ldap_mapped` (`Boolean`): If true, filters teams that are + mapped to an LDAP Group (Enterprise only) + * `root_teams_only` (`Boolean`): If true, restrict to only root + teams (default: `false`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + teams_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="teamsResourcePath") + """The HTTP path listing organization's teams""" + + teams_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="teamsUrl") + """The HTTP URL listing organization's teams""" + + twitter_username = sgqlc.types.Field(String, graphql_name="twitterUsername") + """The organization's Twitter username.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + viewer_can_administer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanAdminister") + """Organization is adminable by the viewer.""" + + viewer_can_create_repositories = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanCreateRepositories") + """Viewer can create repositories on this organization""" + + viewer_can_create_teams = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanCreateTeams") + """Viewer can create teams on this organization.""" + + viewer_is_amember = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerIsAMember") + """Viewer is an active member of this organization.""" + + viewer_is_following = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerIsFollowing") + """Whether or not this Organization is followed by the viewer.""" + + web_commit_signoff_required = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="webCommitSignoffRequired") + """Whether contributors are required to sign off on web-based commits + for repositories in this organization. + """ + + +class OrganizationIdentityProvider(sgqlc.types.Type, Node): + """An Identity Provider configured to provision SAML and SCIM + identities for Organizations. Visible to (1) organization owners, + (2) organization owners' personal access tokens (classic) with + read:org or admin:org scope, (3) GitHub App with an installation + token with read or write access to members. + """ + + __schema__ = github_schema + __field_names__ = ("digest_method", "external_identities", "idp_certificate", "issuer", "organization", "signature_method", "sso_url") + digest_method = sgqlc.types.Field(URI, graphql_name="digestMethod") + """The digest algorithm used to sign SAML requests for the Identity + Provider. + """ + + external_identities = sgqlc.types.Field( + sgqlc.types.non_null(ExternalIdentityConnection), + graphql_name="externalIdentities", + args=sgqlc.types.ArgDict( + ( + ("members_only", sgqlc.types.Arg(Boolean, graphql_name="membersOnly", default=None)), + ("login", sgqlc.types.Arg(String, graphql_name="login", default=None)), + ("user_name", sgqlc.types.Arg(String, graphql_name="userName", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """External Identities provisioned by this Identity Provider + + Arguments: + + * `members_only` (`Boolean`): Filter to external identities with + valid org membership only + * `login` (`String`): Filter to external identities with the users + login + * `user_name` (`String`): Filter to external identities with the + users userName/NameID attribute + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + idp_certificate = sgqlc.types.Field(X509Certificate, graphql_name="idpCertificate") + """The x509 certificate used by the Identity Provider to sign + assertions and responses. + """ + + issuer = sgqlc.types.Field(String, graphql_name="issuer") + """The Issuer Entity ID for the SAML Identity Provider""" + + organization = sgqlc.types.Field(Organization, graphql_name="organization") + """Organization this Identity Provider belongs to""" + + signature_method = sgqlc.types.Field(URI, graphql_name="signatureMethod") + """The signature algorithm used to sign SAML requests for the + Identity Provider. + """ + + sso_url = sgqlc.types.Field(URI, graphql_name="ssoUrl") + """The URL endpoint for the Identity Provider's SAML SSO.""" + + +class OrganizationInvitation(sgqlc.types.Type, Node): + """An Invitation for a user to an organization.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "email", "invitation_source", "invitation_type", "invitee", "inviter", "organization", "role") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + email = sgqlc.types.Field(String, graphql_name="email") + """The email address of the user invited to the organization.""" + + invitation_source = sgqlc.types.Field(sgqlc.types.non_null(OrganizationInvitationSource), graphql_name="invitationSource") + """The source of the invitation.""" + + invitation_type = sgqlc.types.Field(sgqlc.types.non_null(OrganizationInvitationType), graphql_name="invitationType") + """The type of invitation that was sent (e.g. email, user).""" + + invitee = sgqlc.types.Field("User", graphql_name="invitee") + """The user who was invited to the organization.""" + + inviter = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="inviter") + """The user who created the invitation.""" + + organization = sgqlc.types.Field(sgqlc.types.non_null(Organization), graphql_name="organization") + """The organization the invite is for""" + + role = sgqlc.types.Field(sgqlc.types.non_null(OrganizationInvitationRole), graphql_name="role") + """The user's pending role in the organization (e.g. member, owner).""" + + +class OrganizationMigration(sgqlc.types.Type, Node): + """A GitHub Enterprise Importer (GEI) organization migration.""" + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "database_id", + "failure_reason", + "remaining_repositories_count", + "source_org_name", + "source_org_url", + "state", + "target_org_name", + "total_repositories_count", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(String, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + failure_reason = sgqlc.types.Field(String, graphql_name="failureReason") + """The reason the organization migration failed.""" + + remaining_repositories_count = sgqlc.types.Field(Int, graphql_name="remainingRepositoriesCount") + """The remaining amount of repos to be migrated.""" + + source_org_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="sourceOrgName") + """The name of the source organization to be migrated.""" + + source_org_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="sourceOrgUrl") + """The URL of the source organization to migrate.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(OrganizationMigrationState), graphql_name="state") + """The migration state.""" + + target_org_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="targetOrgName") + """The name of the target organization.""" + + total_repositories_count = sgqlc.types.Field(Int, graphql_name="totalRepositoriesCount") + """The total amount of repositories to be migrated.""" + + +class OrganizationTeamsHovercardContext(sgqlc.types.Type, HovercardContext): + """An organization teams hovercard context""" + + __schema__ = github_schema + __field_names__ = ("relevant_teams", "teams_resource_path", "teams_url", "total_team_count") + relevant_teams = sgqlc.types.Field( + sgqlc.types.non_null(TeamConnection), + graphql_name="relevantTeams", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Teams in this organization the user is a member of that are + relevant + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + teams_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="teamsResourcePath") + """The path for the full team list for this user""" + + teams_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="teamsUrl") + """The URL for the full team list for this user""" + + total_team_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalTeamCount") + """The total number of teams the user is on in the organization""" + + +class OrganizationsHovercardContext(sgqlc.types.Type, HovercardContext): + """An organization list hovercard context""" + + __schema__ = github_schema + __field_names__ = ("relevant_organizations", "total_organization_count") + relevant_organizations = sgqlc.types.Field( + sgqlc.types.non_null(OrganizationConnection), + graphql_name="relevantOrganizations", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Organizations this user is a member of that are relevant + + Arguments: + + * `order_by` (`OrganizationOrder`): Ordering options for the + User's organizations. (default: `null`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + total_organization_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="totalOrganizationCount") + """The total number of organizations this user is in""" + + +class Package(sgqlc.types.Type, Node): + """Information for an uploaded package.""" + + __schema__ = github_schema + __field_names__ = ("latest_version", "name", "package_type", "repository", "statistics", "version", "versions") + latest_version = sgqlc.types.Field("PackageVersion", graphql_name="latestVersion") + """Find the latest version for the package.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """Identifies the name of the package.""" + + package_type = sgqlc.types.Field(sgqlc.types.non_null(PackageType), graphql_name="packageType") + """Identifies the type of the package.""" + + repository = sgqlc.types.Field("Repository", graphql_name="repository") + """The repository this package belongs to.""" + + statistics = sgqlc.types.Field(PackageStatistics, graphql_name="statistics") + """Statistics about package activity.""" + + version = sgqlc.types.Field( + "PackageVersion", + graphql_name="version", + args=sgqlc.types.ArgDict((("version", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="version", default=None)),)), + ) + """Find package version by version string. + + Arguments: + + * `version` (`String!`): The package version. + """ + + versions = sgqlc.types.Field( + sgqlc.types.non_null(PackageVersionConnection), + graphql_name="versions", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg(PackageVersionOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"}), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """list of versions for this package + + Arguments: + + * `order_by` (`PackageVersionOrder`): Ordering of the returned + packages. (default: `{field: CREATED_AT, direction: DESC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class PackageFile(sgqlc.types.Type, Node): + """A file in a package version.""" + + __schema__ = github_schema + __field_names__ = ("md5", "name", "package_version", "sha1", "sha256", "size", "updated_at", "url") + md5 = sgqlc.types.Field(String, graphql_name="md5") + """MD5 hash of the file.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """Name of the file.""" + + package_version = sgqlc.types.Field("PackageVersion", graphql_name="packageVersion") + """The package version this file belongs to.""" + + sha1 = sgqlc.types.Field(String, graphql_name="sha1") + """SHA1 hash of the file.""" + + sha256 = sgqlc.types.Field(String, graphql_name="sha256") + """SHA256 hash of the file.""" + + size = sgqlc.types.Field(Int, graphql_name="size") + """Size of the file in bytes.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(URI, graphql_name="url") + """URL to download the asset.""" + + +class PackageTag(sgqlc.types.Type, Node): + """A version tag contains the mapping between a tag name and a + version. + """ + + __schema__ = github_schema + __field_names__ = ("name", "version") + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """Identifies the tag name of the version.""" + + version = sgqlc.types.Field("PackageVersion", graphql_name="version") + """Version that the tag is associated with.""" + + +class PackageVersion(sgqlc.types.Type, Node): + """Information about a specific package version.""" + + __schema__ = github_schema + __field_names__ = ("files", "package", "platform", "pre_release", "readme", "release", "statistics", "summary", "version") + files = sgqlc.types.Field( + sgqlc.types.non_null(PackageFileConnection), + graphql_name="files", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg(PackageFileOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"}), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """List of files associated with this package version + + Arguments: + + * `order_by` (`PackageFileOrder`): Ordering of the returned + package files. (default: `{field: CREATED_AT, direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + package = sgqlc.types.Field(Package, graphql_name="package") + """The package associated with this version.""" + + platform = sgqlc.types.Field(String, graphql_name="platform") + """The platform this version was built for.""" + + pre_release = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="preRelease") + """Whether or not this version is a pre-release.""" + + readme = sgqlc.types.Field(String, graphql_name="readme") + """The README of this package version.""" + + release = sgqlc.types.Field("Release", graphql_name="release") + """The release associated with this package version.""" + + statistics = sgqlc.types.Field(PackageVersionStatistics, graphql_name="statistics") + """Statistics about package activity.""" + + summary = sgqlc.types.Field(String, graphql_name="summary") + """The package version summary.""" + + version = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="version") + """The version string.""" + + +class PinnedDiscussion(sgqlc.types.Type, Node, RepositoryNode): + """A Pinned Discussion is a discussion pinned to a repository's index + page. + """ + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "database_id", + "discussion", + "gradient_stop_colors", + "pattern", + "pinned_by", + "preconfigured_gradient", + "updated_at", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + discussion = sgqlc.types.Field(sgqlc.types.non_null(Discussion), graphql_name="discussion") + """The discussion that was pinned.""" + + gradient_stop_colors = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name="gradientStopColors" + ) + """Color stops of the chosen gradient""" + + pattern = sgqlc.types.Field(sgqlc.types.non_null(PinnedDiscussionPattern), graphql_name="pattern") + """Background texture pattern""" + + pinned_by = sgqlc.types.Field(sgqlc.types.non_null(Actor), graphql_name="pinnedBy") + """The actor that pinned this discussion.""" + + preconfigured_gradient = sgqlc.types.Field(PinnedDiscussionGradient, graphql_name="preconfiguredGradient") + """Preconfigured background gradient option""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class PinnedEvent(sgqlc.types.Type, Node): + """Represents a 'pinned' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "issue") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + issue = sgqlc.types.Field(sgqlc.types.non_null(Issue), graphql_name="issue") + """Identifies the issue associated with the event.""" + + +class PinnedIssue(sgqlc.types.Type, Node): + """A Pinned Issue is a issue pinned to a repository's index page.""" + + __schema__ = github_schema + __field_names__ = ("database_id", "full_database_id", "issue", "pinned_by", "repository") + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + full_database_id = sgqlc.types.Field(BigInt, graphql_name="fullDatabaseId") + """Identifies the primary key from the database as a BigInt.""" + + issue = sgqlc.types.Field(sgqlc.types.non_null(Issue), graphql_name="issue") + """The issue that was pinned.""" + + pinned_by = sgqlc.types.Field(sgqlc.types.non_null(Actor), graphql_name="pinnedBy") + """The actor that pinned this issue.""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository that this issue was pinned to.""" + + +class PrivateRepositoryForkingDisableAuditEntry( + sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a private_repository_forking.disable event.""" + + __schema__ = github_schema + __field_names__ = () + + +class PrivateRepositoryForkingEnableAuditEntry( + sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a private_repository_forking.enable event.""" + + __schema__ = github_schema + __field_names__ = () + + +class Project(sgqlc.types.Type, Node, Closable, Updatable): + """Projects manage issues, pull requests and notes within a project + owner. + """ + + __schema__ = github_schema + __field_names__ = ( + "body", + "body_html", + "columns", + "created_at", + "creator", + "database_id", + "name", + "number", + "owner", + "pending_cards", + "progress", + "resource_path", + "state", + "updated_at", + "url", + ) + body = sgqlc.types.Field(String, graphql_name="body") + """The project's description body.""" + + body_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="bodyHTML") + """The projects description body rendered to HTML.""" + + columns = sgqlc.types.Field( + sgqlc.types.non_null(ProjectColumnConnection), + graphql_name="columns", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """List of columns in the project + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who originally created the project.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The project's name.""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """The project's number.""" + + owner = sgqlc.types.Field(sgqlc.types.non_null(ProjectOwner), graphql_name="owner") + """The project's owner. Currently limited to repositories, + organizations, and users. + """ + + pending_cards = sgqlc.types.Field( + sgqlc.types.non_null(ProjectCardConnection), + graphql_name="pendingCards", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "archived_states", + sgqlc.types.Arg( + sgqlc.types.list_of(ProjectCardArchivedState), graphql_name="archivedStates", default=("ARCHIVED", "NOT_ARCHIVED") + ), + ), + ) + ), + ) + """List of pending cards in this project + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `archived_states` (`[ProjectCardArchivedState]`): A list of + archived states to filter the cards by (default: `[ARCHIVED, + NOT_ARCHIVED]`) + """ + + progress = sgqlc.types.Field(sgqlc.types.non_null(ProjectProgress), graphql_name="progress") + """Project progress details.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this project""" + + state = sgqlc.types.Field(sgqlc.types.non_null(ProjectState), graphql_name="state") + """Whether the project is open or closed.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this project""" + + +class ProjectCard(sgqlc.types.Type, Node): + """A card in a project.""" + + __schema__ = github_schema + __field_names__ = ( + "column", + "content", + "created_at", + "creator", + "database_id", + "is_archived", + "note", + "project", + "resource_path", + "state", + "updated_at", + "url", + ) + column = sgqlc.types.Field("ProjectColumn", graphql_name="column") + """The project column this card is associated under. A card may only + belong to one project column at a time. The column field will be + null if the card is created in a pending state and has yet to be + associated with a column. Once cards are associated with a column, + they will not become pending in the future. + """ + + content = sgqlc.types.Field("ProjectCardItem", graphql_name="content") + """The card content item""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who created this card""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + is_archived = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isArchived") + """Whether the card is archived""" + + note = sgqlc.types.Field(String, graphql_name="note") + """The card note""" + + project = sgqlc.types.Field(sgqlc.types.non_null(Project), graphql_name="project") + """The project that contains this card.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this card""" + + state = sgqlc.types.Field(ProjectCardState, graphql_name="state") + """The state of ProjectCard""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this card""" + + +class ProjectColumn(sgqlc.types.Type, Node): + """A column inside a project.""" + + __schema__ = github_schema + __field_names__ = ("cards", "created_at", "database_id", "name", "project", "purpose", "resource_path", "updated_at", "url") + cards = sgqlc.types.Field( + sgqlc.types.non_null(ProjectCardConnection), + graphql_name="cards", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "archived_states", + sgqlc.types.Arg( + sgqlc.types.list_of(ProjectCardArchivedState), graphql_name="archivedStates", default=("ARCHIVED", "NOT_ARCHIVED") + ), + ), + ) + ), + ) + """List of cards in the column + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `archived_states` (`[ProjectCardArchivedState]`): A list of + archived states to filter the cards by (default: `[ARCHIVED, + NOT_ARCHIVED]`) + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The project column's name.""" + + project = sgqlc.types.Field(sgqlc.types.non_null(Project), graphql_name="project") + """The project that contains this column.""" + + purpose = sgqlc.types.Field(ProjectColumnPurpose, graphql_name="purpose") + """The semantic purpose of the column""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this project column""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this project column""" + + +class ProjectV2(sgqlc.types.Type, Closable, Updatable, Node): + """New projects that manage issues, pull requests and drafts using + tables and boards. + """ + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "creator", + "database_id", + "field", + "fields", + "items", + "number", + "owner", + "public", + "readme", + "repositories", + "resource_path", + "short_description", + "teams", + "template", + "title", + "updated_at", + "url", + "view", + "views", + "workflow", + "workflows", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who originally created the project.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + field = sgqlc.types.Field( + "ProjectV2FieldConfiguration", + graphql_name="field", + args=sgqlc.types.ArgDict((("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)),)), + ) + """A field of the project + + Arguments: + + * `name` (`String!`): The name of the field + """ + + fields = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2FieldConfigurationConnection), + graphql_name="fields", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(ProjectV2FieldOrder, graphql_name="orderBy", default={"field": "POSITION", "direction": "ASC"}), + ), + ) + ), + ) + """List of fields and their constraints in the project + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2FieldOrder`): Ordering options for project + v2 fields returned from the connection (default: `{field: + POSITION, direction: ASC}`) + """ + + items = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2ItemConnection), + graphql_name="items", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(ProjectV2ItemOrder, graphql_name="orderBy", default={"field": "POSITION", "direction": "ASC"}), + ), + ) + ), + ) + """List of items in the project + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2ItemOrder`): Ordering options for project + v2 items returned from the connection (default: `{field: + POSITION, direction: ASC}`) + """ + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """The project's number.""" + + owner = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2Owner), graphql_name="owner") + """The project's owner. Currently limited to organizations and users.""" + + public = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="public") + """Returns true if the project is public.""" + + readme = sgqlc.types.Field(String, graphql_name="readme") + """The project's readme.""" + + repositories = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryConnection), + graphql_name="repositories", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(RepositoryOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"}), + ), + ) + ), + ) + """The repositories the project is linked to. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`RepositoryOrder`): Ordering options for + repositories returned from the connection (default: `{field: + CREATED_AT, direction: DESC}`) + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this project""" + + short_description = sgqlc.types.Field(String, graphql_name="shortDescription") + """The project's short description.""" + + teams = sgqlc.types.Field( + sgqlc.types.non_null(TeamConnection), + graphql_name="teams", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(TeamOrder, graphql_name="orderBy", default={"field": "NAME", "direction": "ASC"})), + ) + ), + ) + """The teams the project is linked to. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`TeamOrder`): Ordering options for teams returned + from this connection. (default: `{field: NAME, direction: ASC}`) + """ + + template = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="template") + """Returns true if this project is a template.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The project's name.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this project""" + + view = sgqlc.types.Field( + "ProjectV2View", + graphql_name="view", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """A view of the project + + Arguments: + + * `number` (`Int!`): The number of a view belonging to the project + """ + + views = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2ViewConnection), + graphql_name="views", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(ProjectV2ViewOrder, graphql_name="orderBy", default={"field": "POSITION", "direction": "ASC"}), + ), + ) + ), + ) + """List of views in the project + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2ViewOrder`): Ordering options for project + v2 views returned from the connection (default: `{field: + POSITION, direction: ASC}`) + """ + + workflow = sgqlc.types.Field( + "ProjectV2Workflow", + graphql_name="workflow", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """A workflow of the project + + Arguments: + + * `number` (`Int!`): The number of a workflow belonging to the + project + """ + + workflows = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2WorkflowConnection), + graphql_name="workflows", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(ProjectV2WorkflowOrder, graphql_name="orderBy", default={"field": "NAME", "direction": "ASC"}), + ), + ) + ), + ) + """List of the workflows in the project + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2WorkflowOrder`): Ordering options for + project v2 workflows returned from the connection (default: + `{field: NAME, direction: ASC}`) + """ + + +class ProjectV2Field(sgqlc.types.Type, ProjectV2FieldCommon, Node): + """A field inside a project.""" + + __schema__ = github_schema + __field_names__ = () + + +class ProjectV2Item(sgqlc.types.Type, Node): + """An item within a Project.""" + + __schema__ = github_schema + __field_names__ = ( + "content", + "created_at", + "creator", + "database_id", + "field_value_by_name", + "field_values", + "is_archived", + "project", + "type", + "updated_at", + ) + content = sgqlc.types.Field("ProjectV2ItemContent", graphql_name="content") + """The content of the referenced draft issue, issue, or pull request""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who created the item.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + field_value_by_name = sgqlc.types.Field( + "ProjectV2ItemFieldValue", + graphql_name="fieldValueByName", + args=sgqlc.types.ArgDict((("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)),)), + ) + """The field value of the first project field which matches the + 'name' argument that is set on the item. + + Arguments: + + * `name` (`String!`): The name of the field to return the field + value of + """ + + field_values = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2ItemFieldValueConnection), + graphql_name="fieldValues", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg( + ProjectV2ItemFieldValueOrder, graphql_name="orderBy", default={"field": "POSITION", "direction": "ASC"} + ), + ), + ) + ), + ) + """The field values that are set on the item. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2ItemFieldValueOrder`): Ordering options + for project v2 item field values returned from the connection + (default: `{field: POSITION, direction: ASC}`) + """ + + is_archived = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isArchived") + """Whether the item is archived.""" + + project = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2), graphql_name="project") + """The project that contains this item.""" + + type = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2ItemType), graphql_name="type") + """The type of the item.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class ProjectV2ItemFieldDateValue(sgqlc.types.Type, ProjectV2ItemFieldValueCommon, Node): + """The value of a date field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("date",) + date = sgqlc.types.Field(Date, graphql_name="date") + """Date value for the field""" + + +class ProjectV2ItemFieldIterationValue(sgqlc.types.Type, ProjectV2ItemFieldValueCommon, Node): + """The value of an iteration field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("duration", "iteration_id", "start_date", "title", "title_html") + duration = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="duration") + """The duration of the iteration in days.""" + + iteration_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="iterationId") + """The ID of the iteration.""" + + start_date = sgqlc.types.Field(sgqlc.types.non_null(Date), graphql_name="startDate") + """The start date of the iteration.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the iteration.""" + + title_html = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="titleHTML") + """The title of the iteration, with HTML.""" + + +class ProjectV2ItemFieldNumberValue(sgqlc.types.Type, ProjectV2ItemFieldValueCommon, Node): + """The value of a number field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("number",) + number = sgqlc.types.Field(Float, graphql_name="number") + """Number as a float(8)""" + + +class ProjectV2ItemFieldSingleSelectValue(sgqlc.types.Type, ProjectV2ItemFieldValueCommon, Node): + """The value of a single select field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("name", "name_html", "option_id") + name = sgqlc.types.Field(String, graphql_name="name") + """The name of the selected single select option.""" + + name_html = sgqlc.types.Field(String, graphql_name="nameHTML") + """The html name of the selected single select option.""" + + option_id = sgqlc.types.Field(String, graphql_name="optionId") + """The id of the selected single select option.""" + + +class ProjectV2ItemFieldTextValue(sgqlc.types.Type, ProjectV2ItemFieldValueCommon, Node): + """The value of a text field in a Project item.""" + + __schema__ = github_schema + __field_names__ = ("text",) + text = sgqlc.types.Field(String, graphql_name="text") + """Text value of a field""" + + +class ProjectV2IterationField(sgqlc.types.Type, ProjectV2FieldCommon, Node): + """An iteration field inside a project.""" + + __schema__ = github_schema + __field_names__ = ("configuration",) + configuration = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2IterationFieldConfiguration), graphql_name="configuration") + """Iteration configuration settings""" + + +class ProjectV2SingleSelectField(sgqlc.types.Type, ProjectV2FieldCommon, Node): + """A single select field inside a project.""" + + __schema__ = github_schema + __field_names__ = ("options",) + options = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(ProjectV2SingleSelectFieldOption))), + graphql_name="options", + args=sgqlc.types.ArgDict( + (("names", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="names", default=None)),) + ), + ) + """Options for the single select field + + Arguments: + + * `names` (`[String!]`): Filter returned options to only those + matching these names, case insensitive. + """ + + +class ProjectV2View(sgqlc.types.Type, Node): + """A view within a ProjectV2.""" + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "database_id", + "fields", + "filter", + "group_by_fields", + "layout", + "name", + "number", + "project", + "sort_by_fields", + "updated_at", + "vertical_group_by_fields", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + fields = sgqlc.types.Field( + ProjectV2FieldConfigurationConnection, + graphql_name="fields", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(ProjectV2FieldOrder, graphql_name="orderBy", default={"field": "POSITION", "direction": "ASC"}), + ), + ) + ), + ) + """The view's visible fields. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2FieldOrder`): Ordering options for the + project v2 fields returned from the connection. (default: + `{field: POSITION, direction: ASC}`) + """ + + filter = sgqlc.types.Field(String, graphql_name="filter") + """The project view's filter.""" + + group_by_fields = sgqlc.types.Field( + ProjectV2FieldConfigurationConnection, + graphql_name="groupByFields", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(ProjectV2FieldOrder, graphql_name="orderBy", default={"field": "POSITION", "direction": "ASC"}), + ), + ) + ), + ) + """The view's group-by field. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2FieldOrder`): Ordering options for the + project v2 fields returned from the connection. (default: + `{field: POSITION, direction: ASC}`) + """ + + layout = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2ViewLayout), graphql_name="layout") + """The project view's layout.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The project view's name.""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """The project view's number.""" + + project = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2), graphql_name="project") + """The project that contains this view.""" + + sort_by_fields = sgqlc.types.Field( + ProjectV2SortByFieldConnection, + graphql_name="sortByFields", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The view's sort-by config. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + vertical_group_by_fields = sgqlc.types.Field( + ProjectV2FieldConfigurationConnection, + graphql_name="verticalGroupByFields", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(ProjectV2FieldOrder, graphql_name="orderBy", default={"field": "POSITION", "direction": "ASC"}), + ), + ) + ), + ) + """The view's vertical-group-by field. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2FieldOrder`): Ordering options for the + project v2 fields returned from the connection. (default: + `{field: POSITION, direction: ASC}`) + """ + + +class ProjectV2Workflow(sgqlc.types.Type, Node): + """A workflow inside a project.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "database_id", "enabled", "name", "number", "project", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="enabled") + """The workflows' enabled state.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The workflows' name.""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """The workflows' number.""" + + project = sgqlc.types.Field(sgqlc.types.non_null(ProjectV2), graphql_name="project") + """The project that contains this workflow.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class PublicKey(sgqlc.types.Type, Node): + """A user's public key.""" + + __schema__ = github_schema + __field_names__ = ("accessed_at", "created_at", "fingerprint", "is_read_only", "key", "updated_at") + accessed_at = sgqlc.types.Field(DateTime, graphql_name="accessedAt") + """The last time this authorization was used to perform an action. + Values will be null for keys not owned by the user. + """ + + created_at = sgqlc.types.Field(DateTime, graphql_name="createdAt") + """Identifies the date and time when the key was created. Keys + created before March 5th, 2014 have inaccurate values. Values will + be null for keys not owned by the user. + """ + + fingerprint = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="fingerprint") + """The fingerprint for this PublicKey.""" + + is_read_only = sgqlc.types.Field(Boolean, graphql_name="isReadOnly") + """Whether this PublicKey is read-only or not. Values will be null + for keys not owned by the user. + """ + + key = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="key") + """The public key string.""" + + updated_at = sgqlc.types.Field(DateTime, graphql_name="updatedAt") + """Identifies the date and time when the key was updated. Keys + created before March 5th, 2014 may have inaccurate values. Values + will be null for keys not owned by the user. + """ + + +class PullRequest( + sgqlc.types.Type, + Node, + Assignable, + Closable, + Comment, + Updatable, + UpdatableComment, + Labelable, + Lockable, + Reactable, + RepositoryNode, + Subscribable, + UniformResourceLocatable, + ProjectV2Owner, +): + """A repository pull request.""" + + __schema__ = github_schema + __field_names__ = ( + "additions", + "auto_merge_request", + "base_ref", + "base_ref_name", + "base_ref_oid", + "base_repository", + "can_be_rebased", + "changed_files", + "checks_resource_path", + "checks_url", + "closing_issues_references", + "comments", + "commits", + "deletions", + "files", + "head_ref", + "head_ref_name", + "head_ref_oid", + "head_repository", + "head_repository_owner", + "hovercard", + "is_cross_repository", + "is_draft", + "is_read_by_viewer", + "latest_opinionated_reviews", + "latest_reviews", + "maintainer_can_modify", + "merge_commit", + "merge_state_status", + "merge_queue_entry", + "mergeable", + "merged", + "merged_at", + "merged_by", + "milestone", + "number", + "participants", + "permalink", + "potential_merge_commit", + "project_cards", + "project_items", + "revert_resource_path", + "revert_url", + "review_decision", + "review_requests", + "review_threads", + "reviews", + "state", + "suggested_reviewers", + "timeline_items", + "title", + "title_html", + "total_comments_count", + "viewer_can_apply_suggestion", + "viewer_can_delete_head_ref", + "viewer_can_disable_auto_merge", + "viewer_can_edit_files", + "viewer_can_enable_auto_merge", + "viewer_can_merge_as_admin", + "viewer_can_update_branch", + "viewer_latest_review", + "viewer_latest_review_request", + "viewer_merge_body_text", + "viewer_merge_headline_text", + ) + additions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="additions") + """The number of additions in this pull request.""" + + auto_merge_request = sgqlc.types.Field(AutoMergeRequest, graphql_name="autoMergeRequest") + """Returns the auto-merge request object if one exists for this pull + request. + """ + + base_ref = sgqlc.types.Field("Ref", graphql_name="baseRef") + """Identifies the base Ref associated with the pull request.""" + + base_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="baseRefName") + """Identifies the name of the base Ref associated with the pull + request, even if the ref has been deleted. + """ + + base_ref_oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="baseRefOid") + """Identifies the oid of the base ref associated with the pull + request, even if the ref has been deleted. + """ + + base_repository = sgqlc.types.Field("Repository", graphql_name="baseRepository") + """The repository associated with this pull request's base Ref.""" + + can_be_rebased = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="canBeRebased") + """Whether or not the pull request is rebaseable.""" + + changed_files = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="changedFiles") + """The number of changed files in this pull request.""" + + checks_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="checksResourcePath") + """The HTTP path for the checks of this pull request.""" + + checks_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="checksUrl") + """The HTTP URL for the checks of this pull request.""" + + closing_issues_references = sgqlc.types.Field( + IssueConnection, + graphql_name="closingIssuesReferences", + args=sgqlc.types.ArgDict( + ( + ("user_linked_only", sgqlc.types.Arg(Boolean, graphql_name="userLinkedOnly", default=False)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """List of issues that were may be closed by this pull request + + Arguments: + + * `user_linked_only` (`Boolean`): Return only manually linked + Issues (default: `false`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`IssueOrder`): Ordering options for issues returned + from the connection + """ + + comments = sgqlc.types.Field( + sgqlc.types.non_null(IssueCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(IssueCommentOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of comments associated with the pull request. + + Arguments: + + * `order_by` (`IssueCommentOrder`): Ordering options for issue + comments returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + commits = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestCommitConnection), + graphql_name="commits", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of commits present in this pull request's head branch not + present in the base branch. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + deletions = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="deletions") + """The number of deletions in this pull request.""" + + files = sgqlc.types.Field( + PullRequestChangedFileConnection, + graphql_name="files", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Lists the files changed within this pull request. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + head_ref = sgqlc.types.Field("Ref", graphql_name="headRef") + """Identifies the head Ref associated with the pull request.""" + + head_ref_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="headRefName") + """Identifies the name of the head Ref associated with the pull + request, even if the ref has been deleted. + """ + + head_ref_oid = sgqlc.types.Field(sgqlc.types.non_null(GitObjectID), graphql_name="headRefOid") + """Identifies the oid of the head ref associated with the pull + request, even if the ref has been deleted. + """ + + head_repository = sgqlc.types.Field("Repository", graphql_name="headRepository") + """The repository associated with this pull request's head Ref.""" + + head_repository_owner = sgqlc.types.Field(RepositoryOwner, graphql_name="headRepositoryOwner") + """The owner of the repository associated with this pull request's + head Ref. + """ + + hovercard = sgqlc.types.Field( + sgqlc.types.non_null(Hovercard), + graphql_name="hovercard", + args=sgqlc.types.ArgDict( + (("include_notification_contexts", sgqlc.types.Arg(Boolean, graphql_name="includeNotificationContexts", default=True)),) + ), + ) + """The hovercard information for this issue + + Arguments: + + * `include_notification_contexts` (`Boolean`): Whether or not to + include notification contexts (default: `true`) + """ + + is_cross_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCrossRepository") + """The head and base repositories are different.""" + + is_draft = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDraft") + """Identifies if the pull request is a draft.""" + + is_read_by_viewer = sgqlc.types.Field(Boolean, graphql_name="isReadByViewer") + """Is this pull request read by the viewer""" + + latest_opinionated_reviews = sgqlc.types.Field( + PullRequestReviewConnection, + graphql_name="latestOpinionatedReviews", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("writers_only", sgqlc.types.Arg(Boolean, graphql_name="writersOnly", default=False)), + ) + ), + ) + """A list of latest reviews per user associated with the pull + request. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `writers_only` (`Boolean`): Only return reviews from user who + have write access to the repository (default: `false`) + """ + + latest_reviews = sgqlc.types.Field( + PullRequestReviewConnection, + graphql_name="latestReviews", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of latest reviews per user associated with the pull request + that are not also pending review. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + maintainer_can_modify = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="maintainerCanModify") + """Indicates whether maintainers can modify the pull request.""" + + merge_commit = sgqlc.types.Field(Commit, graphql_name="mergeCommit") + """The commit that was created when this pull request was merged.""" + + merge_state_status = sgqlc.types.Field(sgqlc.types.non_null(MergeStateStatus), graphql_name="mergeStateStatus") + """Detailed information about the current pull request merge state + status. + """ + + merge_queue_entry = sgqlc.types.Field(MergeQueueEntry, graphql_name="mergeQueueEntry") + """The merge queue entry of the pull request in the base branch's + merge queue + """ + + mergeable = sgqlc.types.Field(sgqlc.types.non_null(MergeableState), graphql_name="mergeable") + """Whether or not the pull request can be merged based on the + existence of merge conflicts. + """ + + merged = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="merged") + """Whether or not the pull request was merged.""" + + merged_at = sgqlc.types.Field(DateTime, graphql_name="mergedAt") + """The date and time that the pull request was merged.""" + + merged_by = sgqlc.types.Field(Actor, graphql_name="mergedBy") + """The actor who merged the pull request.""" + + milestone = sgqlc.types.Field(Milestone, graphql_name="milestone") + """Identifies the milestone associated with the pull request.""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """Identifies the pull request number.""" + + participants = sgqlc.types.Field( + sgqlc.types.non_null(UserConnection), + graphql_name="participants", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of Users that are participating in the Pull Request + conversation. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + permalink = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="permalink") + """The permalink to the pull request.""" + + potential_merge_commit = sgqlc.types.Field(Commit, graphql_name="potentialMergeCommit") + """The commit that GitHub automatically generated to test if this + pull request could be merged. This field will not return a value + if the pull request is merged, or if the test merge commit is + still being generated. See the `mergeable` field for more details + on the mergeability of the pull request. + """ + + project_cards = sgqlc.types.Field( + sgqlc.types.non_null(ProjectCardConnection), + graphql_name="projectCards", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "archived_states", + sgqlc.types.Arg( + sgqlc.types.list_of(ProjectCardArchivedState), graphql_name="archivedStates", default=("ARCHIVED", "NOT_ARCHIVED") + ), + ), + ) + ), + ) + """List of project cards associated with this pull request. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `archived_states` (`[ProjectCardArchivedState]`): A list of + archived states to filter the cards by (default: `[ARCHIVED, + NOT_ARCHIVED]`) + """ + + project_items = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2ItemConnection), + graphql_name="projectItems", + args=sgqlc.types.ArgDict( + ( + ("include_archived", sgqlc.types.Arg(Boolean, graphql_name="includeArchived", default=True)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """List of project items associated with this pull request. + + Arguments: + + * `include_archived` (`Boolean`): Include archived items. + (default: `true`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + revert_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="revertResourcePath") + """The HTTP path for reverting this pull request.""" + + revert_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="revertUrl") + """The HTTP URL for reverting this pull request.""" + + review_decision = sgqlc.types.Field(PullRequestReviewDecision, graphql_name="reviewDecision") + """The current status of this pull request with respect to code + review. + """ + + review_requests = sgqlc.types.Field( + ReviewRequestConnection, + graphql_name="reviewRequests", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of review requests associated with the pull request. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + review_threads = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestReviewThreadConnection), + graphql_name="reviewThreads", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The list of all review threads for this pull request. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + reviews = sgqlc.types.Field( + PullRequestReviewConnection, + graphql_name="reviews", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "states", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PullRequestReviewState)), graphql_name="states", default=None), + ), + ("author", sgqlc.types.Arg(String, graphql_name="author", default=None)), + ) + ), + ) + """A list of reviews associated with the pull request. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `states` (`[PullRequestReviewState!]`): A list of states to + filter the reviews. + * `author` (`String`): Filter by author of the review. + """ + + state = sgqlc.types.Field(sgqlc.types.non_null(PullRequestState), graphql_name="state") + """Identifies the state of the pull request.""" + + suggested_reviewers = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(SuggestedReviewer)), graphql_name="suggestedReviewers") + """A list of reviewer suggestions based on commit history and past + review comments. + """ + + timeline_items = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestTimelineItemsConnection), + graphql_name="timelineItems", + args=sgqlc.types.ArgDict( + ( + ("since", sgqlc.types.Arg(DateTime, graphql_name="since", default=None)), + ("skip", sgqlc.types.Arg(Int, graphql_name="skip", default=None)), + ( + "item_types", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(PullRequestTimelineItemsItemType)), graphql_name="itemTypes", default=None + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of events, comments, commits, etc. associated with the pull + request. + + Arguments: + + * `since` (`DateTime`): Filter timeline items by a `since` + timestamp. + * `skip` (`Int`): Skips the first _n_ elements in the list. + * `item_types` (`[PullRequestTimelineItemsItemType!]`): Filter + timeline items by type. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """Identifies the pull request title.""" + + title_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="titleHTML") + """Identifies the pull request title rendered to HTML.""" + + total_comments_count = sgqlc.types.Field(Int, graphql_name="totalCommentsCount") + """Returns a count of how many comments this pull request has + received. + """ + + viewer_can_apply_suggestion = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanApplySuggestion") + """Whether or not the viewer can apply suggestion.""" + + viewer_can_delete_head_ref = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanDeleteHeadRef") + """Check if the viewer can restore the deleted head ref.""" + + viewer_can_disable_auto_merge = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanDisableAutoMerge") + """Whether or not the viewer can disable auto-merge""" + + viewer_can_edit_files = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanEditFiles") + """Can the viewer edit files within this pull request.""" + + viewer_can_enable_auto_merge = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanEnableAutoMerge") + """Whether or not the viewer can enable auto-merge""" + + viewer_can_merge_as_admin = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanMergeAsAdmin") + """Indicates whether the viewer can bypass branch protections and + merge the pull request immediately + """ + + viewer_can_update_branch = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanUpdateBranch") + """Whether or not the viewer can update the head ref of this PR, by + merging or rebasing the base ref. If the head ref is up to date or + unable to be updated by this user, this will return false. + """ + + viewer_latest_review = sgqlc.types.Field("PullRequestReview", graphql_name="viewerLatestReview") + """The latest review given from the viewer.""" + + viewer_latest_review_request = sgqlc.types.Field("ReviewRequest", graphql_name="viewerLatestReviewRequest") + """The person who has requested the viewer for review on this pull + request. + """ + + viewer_merge_body_text = sgqlc.types.Field( + sgqlc.types.non_null(String), + graphql_name="viewerMergeBodyText", + args=sgqlc.types.ArgDict((("merge_type", sgqlc.types.Arg(PullRequestMergeMethod, graphql_name="mergeType", default=None)),)), + ) + """The merge body text for the viewer and method. + + Arguments: + + * `merge_type` (`PullRequestMergeMethod`): The merge method for + the message. + """ + + viewer_merge_headline_text = sgqlc.types.Field( + sgqlc.types.non_null(String), + graphql_name="viewerMergeHeadlineText", + args=sgqlc.types.ArgDict((("merge_type", sgqlc.types.Arg(PullRequestMergeMethod, graphql_name="mergeType", default=None)),)), + ) + """The merge headline text for the viewer and method. + + Arguments: + + * `merge_type` (`PullRequestMergeMethod`): The merge method for + the message. + """ + + +class PullRequestCommit(sgqlc.types.Type, Node, UniformResourceLocatable): + """Represents a Git commit part of a pull request.""" + + __schema__ = github_schema + __field_names__ = ("commit", "pull_request") + commit = sgqlc.types.Field(sgqlc.types.non_null(Commit), graphql_name="commit") + """The Git commit object""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """The pull request this commit belongs to""" + + +class PullRequestCommitCommentThread(sgqlc.types.Type, RepositoryNode, Node): + """Represents a commit comment thread part of a pull request.""" + + __schema__ = github_schema + __field_names__ = ("comments", "commit", "path", "position", "pull_request") + comments = sgqlc.types.Field( + sgqlc.types.non_null(CommitCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The comments that exist in this thread. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + commit = sgqlc.types.Field(sgqlc.types.non_null(Commit), graphql_name="commit") + """The commit the comments were made on.""" + + path = sgqlc.types.Field(String, graphql_name="path") + """The file the comments were made on.""" + + position = sgqlc.types.Field(Int, graphql_name="position") + """The position in the diff for the commit that the comment was made + on. + """ + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """The pull request this commit comment thread belongs to""" + + +class PullRequestReview(sgqlc.types.Type, Node, Comment, Deletable, Updatable, UpdatableComment, Reactable, RepositoryNode): + """A review object for a given pull request.""" + + __schema__ = github_schema + __field_names__ = ( + "author_can_push_to_repository", + "comments", + "commit", + "on_behalf_of", + "pull_request", + "resource_path", + "state", + "submitted_at", + "url", + ) + author_can_push_to_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="authorCanPushToRepository") + """Indicates whether the author of this review has push access to the + repository. + """ + + comments = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestReviewCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of review comments for the current pull request review. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """Identifies the commit associated with this pull request review.""" + + on_behalf_of = sgqlc.types.Field( + sgqlc.types.non_null(TeamConnection), + graphql_name="onBehalfOf", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of teams that this review was made on behalf of. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """Identifies the pull request associated with this pull request + review. + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path permalink for this PullRequestReview.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(PullRequestReviewState), graphql_name="state") + """Identifies the current state of the pull request review.""" + + submitted_at = sgqlc.types.Field(DateTime, graphql_name="submittedAt") + """Identifies when the Pull Request Review was submitted""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL permalink for this PullRequestReview.""" + + +class PullRequestReviewComment( + sgqlc.types.Type, Node, Comment, Deletable, Minimizable, Updatable, UpdatableComment, Reactable, RepositoryNode +): + """A review comment associated with a given repository pull request.""" + + __schema__ = github_schema + __field_names__ = ( + "commit", + "diff_hunk", + "drafted_at", + "line", + "original_commit", + "original_line", + "original_start_line", + "outdated", + "path", + "pull_request", + "pull_request_review", + "reply_to", + "resource_path", + "start_line", + "state", + "subject_type", + "url", + ) + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """Identifies the commit associated with the comment.""" + + diff_hunk = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="diffHunk") + """The diff hunk to which the comment applies.""" + + drafted_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="draftedAt") + """Identifies when the comment was created in a draft state.""" + + line = sgqlc.types.Field(Int, graphql_name="line") + """The end line number on the file to which the comment applies""" + + original_commit = sgqlc.types.Field(Commit, graphql_name="originalCommit") + """Identifies the original commit associated with the comment.""" + + original_line = sgqlc.types.Field(Int, graphql_name="originalLine") + """The end line number on the file to which the comment applied when + it was first created + """ + + original_start_line = sgqlc.types.Field(Int, graphql_name="originalStartLine") + """The start line number on the file to which the comment applied + when it was first created + """ + + outdated = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="outdated") + """Identifies when the comment body is outdated""" + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path to which the comment applies.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """The pull request associated with this review comment.""" + + pull_request_review = sgqlc.types.Field(PullRequestReview, graphql_name="pullRequestReview") + """The pull request review associated with this review comment.""" + + reply_to = sgqlc.types.Field("PullRequestReviewComment", graphql_name="replyTo") + """The comment this is a reply to.""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path permalink for this review comment.""" + + start_line = sgqlc.types.Field(Int, graphql_name="startLine") + """The start line number on the file to which the comment applies""" + + state = sgqlc.types.Field(sgqlc.types.non_null(PullRequestReviewCommentState), graphql_name="state") + """Identifies the state of the comment.""" + + subject_type = sgqlc.types.Field(sgqlc.types.non_null(PullRequestReviewThreadSubjectType), graphql_name="subjectType") + """The level at which the comments in the corresponding thread are + targeted, can be a diff line or a file + """ + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL permalink for this review comment.""" + + +class PullRequestReviewThread(sgqlc.types.Type, Node): + """A threaded list of comments for a given pull request.""" + + __schema__ = github_schema + __field_names__ = ( + "comments", + "diff_side", + "is_collapsed", + "is_outdated", + "is_resolved", + "line", + "original_line", + "original_start_line", + "path", + "pull_request", + "repository", + "resolved_by", + "start_diff_side", + "start_line", + "subject_type", + "viewer_can_reply", + "viewer_can_resolve", + "viewer_can_unresolve", + ) + comments = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestReviewCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("skip", sgqlc.types.Arg(Int, graphql_name="skip", default=None)), + ) + ), + ) + """A list of pull request comments associated with the thread. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `skip` (`Int`): Skips the first _n_ elements in the list. + """ + + diff_side = sgqlc.types.Field(sgqlc.types.non_null(DiffSide), graphql_name="diffSide") + """The side of the diff on which this thread was placed.""" + + is_collapsed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCollapsed") + """Whether or not the thread has been collapsed (resolved)""" + + is_outdated = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isOutdated") + """Indicates whether this thread was outdated by newer changes.""" + + is_resolved = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isResolved") + """Whether this thread has been resolved""" + + line = sgqlc.types.Field(Int, graphql_name="line") + """The line in the file to which this thread refers""" + + original_line = sgqlc.types.Field(Int, graphql_name="originalLine") + """The original line in the file to which this thread refers.""" + + original_start_line = sgqlc.types.Field(Int, graphql_name="originalStartLine") + """The original start line in the file to which this thread refers + (multi-line only). + """ + + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """Identifies the file path of this thread.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """Identifies the pull request associated with this thread.""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """Identifies the repository associated with this thread.""" + + resolved_by = sgqlc.types.Field("User", graphql_name="resolvedBy") + """The user who resolved this thread""" + + start_diff_side = sgqlc.types.Field(DiffSide, graphql_name="startDiffSide") + """The side of the diff that the first line of the thread starts on + (multi-line only) + """ + + start_line = sgqlc.types.Field(Int, graphql_name="startLine") + """The start line in the file to which this thread refers (multi-line + only) + """ + + subject_type = sgqlc.types.Field(sgqlc.types.non_null(PullRequestReviewThreadSubjectType), graphql_name="subjectType") + """The level at which the comments in the corresponding thread are + targeted, can be a diff line or a file + """ + + viewer_can_reply = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanReply") + """Indicates whether the current viewer can reply to this thread.""" + + viewer_can_resolve = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanResolve") + """Whether or not the viewer can resolve this thread""" + + viewer_can_unresolve = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanUnresolve") + """Whether or not the viewer can unresolve this thread""" + + +class PullRequestThread(sgqlc.types.Type, Node): + """A threaded list of comments for a given pull request.""" + + __schema__ = github_schema + __field_names__ = ( + "comments", + "diff_side", + "is_collapsed", + "is_outdated", + "is_resolved", + "line", + "pull_request", + "repository", + "resolved_by", + "start_diff_side", + "start_line", + "viewer_can_reply", + "viewer_can_resolve", + "viewer_can_unresolve", + ) + comments = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestReviewCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("skip", sgqlc.types.Arg(Int, graphql_name="skip", default=None)), + ) + ), + ) + """A list of pull request comments associated with the thread. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `skip` (`Int`): Skips the first _n_ elements in the list. + """ + + diff_side = sgqlc.types.Field(sgqlc.types.non_null(DiffSide), graphql_name="diffSide") + """The side of the diff on which this thread was placed.""" + + is_collapsed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCollapsed") + """Whether or not the thread has been collapsed (resolved)""" + + is_outdated = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isOutdated") + """Indicates whether this thread was outdated by newer changes.""" + + is_resolved = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isResolved") + """Whether this thread has been resolved""" + + line = sgqlc.types.Field(Int, graphql_name="line") + """The line in the file to which this thread refers""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """Identifies the pull request associated with this thread.""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """Identifies the repository associated with this thread.""" + + resolved_by = sgqlc.types.Field("User", graphql_name="resolvedBy") + """The user who resolved this thread""" + + start_diff_side = sgqlc.types.Field(DiffSide, graphql_name="startDiffSide") + """The side of the diff that the first line of the thread starts on + (multi-line only) + """ + + start_line = sgqlc.types.Field(Int, graphql_name="startLine") + """The line of the first file diff in the thread.""" + + viewer_can_reply = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanReply") + """Indicates whether the current viewer can reply to this thread.""" + + viewer_can_resolve = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanResolve") + """Whether or not the viewer can resolve this thread""" + + viewer_can_unresolve = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanUnresolve") + """Whether or not the viewer can unresolve this thread""" + + +class Push(sgqlc.types.Type, Node): + """A Git push.""" + + __schema__ = github_schema + __field_names__ = ("next_sha", "permalink", "previous_sha", "pusher", "repository") + next_sha = sgqlc.types.Field(GitObjectID, graphql_name="nextSha") + """The SHA after the push""" + + permalink = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="permalink") + """The permalink for this push.""" + + previous_sha = sgqlc.types.Field(GitObjectID, graphql_name="previousSha") + """The SHA before the push""" + + pusher = sgqlc.types.Field(sgqlc.types.non_null(Actor), graphql_name="pusher") + """The actor who pushed""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository that was pushed to""" + + +class PushAllowance(sgqlc.types.Type, Node): + """A team, user, or app who has the ability to push to a protected + branch. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "branch_protection_rule") + actor = sgqlc.types.Field("PushAllowanceActor", graphql_name="actor") + """The actor that can push.""" + + branch_protection_rule = sgqlc.types.Field(BranchProtectionRule, graphql_name="branchProtectionRule") + """Identifies the branch protection rule associated with the allowed + user, team, or app. + """ + + +class Reaction(sgqlc.types.Type, Node): + """An emoji reaction to a particular piece of content.""" + + __schema__ = github_schema + __field_names__ = ("content", "created_at", "database_id", "reactable", "user") + content = sgqlc.types.Field(sgqlc.types.non_null(ReactionContent), graphql_name="content") + """Identifies the emoji reaction.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + reactable = sgqlc.types.Field(sgqlc.types.non_null(Reactable), graphql_name="reactable") + """The reactable piece of content""" + + user = sgqlc.types.Field("User", graphql_name="user") + """Identifies the user who created this reaction.""" + + +class ReadyForReviewEvent(sgqlc.types.Type, Node, UniformResourceLocatable): + """Represents a 'ready_for_review' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "pull_request") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + +class Ref(sgqlc.types.Type, Node): + """Represents a Git reference.""" + + __schema__ = github_schema + __field_names__ = ( + "associated_pull_requests", + "branch_protection_rule", + "compare", + "name", + "prefix", + "ref_update_rule", + "repository", + "target", + ) + associated_pull_requests = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestConnection), + graphql_name="associatedPullRequests", + args=sgqlc.types.ArgDict( + ( + ( + "states", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PullRequestState)), graphql_name="states", default=None), + ), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("head_ref_name", sgqlc.types.Arg(String, graphql_name="headRefName", default=None)), + ("base_ref_name", sgqlc.types.Arg(String, graphql_name="baseRefName", default=None)), + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pull requests with this ref as the head ref. + + Arguments: + + * `states` (`[PullRequestState!]`): A list of states to filter the + pull requests by. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `head_ref_name` (`String`): The head ref name to filter the pull + requests by. + * `base_ref_name` (`String`): The base ref name to filter the pull + requests by. + * `order_by` (`IssueOrder`): Ordering options for pull requests + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + branch_protection_rule = sgqlc.types.Field(BranchProtectionRule, graphql_name="branchProtectionRule") + """Branch protection rules for this ref""" + + compare = sgqlc.types.Field( + Comparison, + graphql_name="compare", + args=sgqlc.types.ArgDict((("head_ref", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="headRef", default=None)),)), + ) + """Compares the current ref as a base ref to another head ref, if the + comparison can be made. + + Arguments: + + * `head_ref` (`String!`): The head ref to compare against. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The ref name.""" + + prefix = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="prefix") + """The ref's prefix, such as `refs/heads/` or `refs/tags/`.""" + + ref_update_rule = sgqlc.types.Field(RefUpdateRule, graphql_name="refUpdateRule") + """Branch protection rules that are viewable by non-admins""" + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository the ref belongs to.""" + + target = sgqlc.types.Field(GitObject, graphql_name="target") + """The object the ref points to. Returns null when object does not + exist. + """ + + +class ReferencedEvent(sgqlc.types.Type, Node): + """Represents a 'referenced' event on a given `ReferencedSubject`.""" + + __schema__ = github_schema + __field_names__ = ("actor", "commit", "commit_repository", "created_at", "is_cross_repository", "is_direct_reference", "subject") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """Identifies the commit associated with the 'referenced' event.""" + + commit_repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="commitRepository") + """Identifies the repository associated with the 'referenced' event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + is_cross_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCrossRepository") + """Reference originated in a different repository.""" + + is_direct_reference = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDirectReference") + """Checks if the commit message itself references the subject. Can be + false in the case of a commit comment reference. + """ + + subject = sgqlc.types.Field(sgqlc.types.non_null("ReferencedSubject"), graphql_name="subject") + """Object referenced by event.""" + + +class Release(sgqlc.types.Type, Node, UniformResourceLocatable, Reactable): + """A release contains the content for a release.""" + + __schema__ = github_schema + __field_names__ = ( + "author", + "created_at", + "description", + "description_html", + "is_draft", + "is_latest", + "is_prerelease", + "mentions", + "name", + "published_at", + "release_assets", + "repository", + "short_description_html", + "tag", + "tag_commit", + "tag_name", + "updated_at", + ) + author = sgqlc.types.Field("User", graphql_name="author") + """The author of the release""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The description of the release.""" + + description_html = sgqlc.types.Field(HTML, graphql_name="descriptionHTML") + """The description of this release rendered to HTML.""" + + is_draft = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDraft") + """Whether or not the release is a draft""" + + is_latest = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isLatest") + """Whether or not the release is the latest releast""" + + is_prerelease = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPrerelease") + """Whether or not the release is a prerelease""" + + mentions = sgqlc.types.Field( + UserConnection, + graphql_name="mentions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users mentioned in the release description + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + name = sgqlc.types.Field(String, graphql_name="name") + """The title of the release.""" + + published_at = sgqlc.types.Field(DateTime, graphql_name="publishedAt") + """Identifies the date and time when the release was created.""" + + release_assets = sgqlc.types.Field( + sgqlc.types.non_null(ReleaseAssetConnection), + graphql_name="releaseAssets", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("name", sgqlc.types.Arg(String, graphql_name="name", default=None)), + ) + ), + ) + """List of releases assets which are dependent on this release. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `name` (`String`): A list of names to filter the assets by. + """ + + repository = sgqlc.types.Field(sgqlc.types.non_null("Repository"), graphql_name="repository") + """The repository that the release belongs to.""" + + short_description_html = sgqlc.types.Field( + HTML, + graphql_name="shortDescriptionHTML", + args=sgqlc.types.ArgDict((("limit", sgqlc.types.Arg(Int, graphql_name="limit", default=200)),)), + ) + """A description of the release, rendered to HTML without any links + in it. + + Arguments: + + * `limit` (`Int`): How many characters to return. (default: `200`) + """ + + tag = sgqlc.types.Field(Ref, graphql_name="tag") + """The Git tag the release points to""" + + tag_commit = sgqlc.types.Field(Commit, graphql_name="tagCommit") + """The tag commit for this release.""" + + tag_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="tagName") + """The name of the release's Git tag""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class ReleaseAsset(sgqlc.types.Type, Node): + """A release asset contains the content for a release asset.""" + + __schema__ = github_schema + __field_names__ = ( + "content_type", + "created_at", + "download_count", + "download_url", + "name", + "release", + "size", + "updated_at", + "uploaded_by", + "url", + ) + content_type = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="contentType") + """The asset's content-type""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + download_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="downloadCount") + """The number of times this asset was downloaded""" + + download_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="downloadUrl") + """Identifies the URL where you can download the release asset via + the browser. + """ + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """Identifies the title of the release asset.""" + + release = sgqlc.types.Field(Release, graphql_name="release") + """Release that the asset is associated with""" + + size = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="size") + """The size (in bytes) of the asset""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + uploaded_by = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="uploadedBy") + """The user that performed the upload""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """Identifies the URL of the release asset.""" + + +class RemovedFromMergeQueueEvent(sgqlc.types.Type, Node): + """Represents a 'removed_from_merge_queue' event on a given pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "before_commit", "created_at", "enqueuer", "merge_queue", "pull_request", "reason") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + before_commit = sgqlc.types.Field(Commit, graphql_name="beforeCommit") + """Identifies the before commit SHA for the + 'removed_from_merge_queue' event. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + enqueuer = sgqlc.types.Field("User", graphql_name="enqueuer") + """The user who removed this Pull Request from the merge queue""" + + merge_queue = sgqlc.types.Field(MergeQueue, graphql_name="mergeQueue") + """The merge queue where this pull request was removed from.""" + + pull_request = sgqlc.types.Field(PullRequest, graphql_name="pullRequest") + """PullRequest referenced by event.""" + + reason = sgqlc.types.Field(String, graphql_name="reason") + """The reason this pull request was removed from the queue.""" + + +class RemovedFromProjectEvent(sgqlc.types.Type, Node): + """Represents a 'removed_from_project' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "database_id") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + +class RenamedTitleEvent(sgqlc.types.Type, Node): + """Represents a 'renamed' event on a given issue or pull request""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "current_title", "previous_title", "subject") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + current_title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="currentTitle") + """Identifies the current title of the issue or pull request.""" + + previous_title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="previousTitle") + """Identifies the previous title of the issue or pull request.""" + + subject = sgqlc.types.Field(sgqlc.types.non_null("RenamedTitleSubject"), graphql_name="subject") + """Subject that was renamed.""" + + +class ReopenedEvent(sgqlc.types.Type, Node): + """Represents a 'reopened' event on any `Closable`.""" + + __schema__ = github_schema + __field_names__ = ("actor", "closable", "created_at", "state_reason") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + closable = sgqlc.types.Field(sgqlc.types.non_null(Closable), graphql_name="closable") + """Object that was reopened.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + state_reason = sgqlc.types.Field(IssueStateReason, graphql_name="stateReason") + """The reason the issue state was changed to open.""" + + +class RepoAccessAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData): + """Audit log entry for a repo.access event.""" + + __schema__ = github_schema + __field_names__ = ("visibility",) + visibility = sgqlc.types.Field(RepoAccessAuditEntryVisibility, graphql_name="visibility") + """The visibility of the repository""" + + +class RepoAddMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData): + """Audit log entry for a repo.add_member event.""" + + __schema__ = github_schema + __field_names__ = ("visibility",) + visibility = sgqlc.types.Field(RepoAddMemberAuditEntryVisibility, graphql_name="visibility") + """The visibility of the repository""" + + +class RepoAddTopicAuditEntry(sgqlc.types.Type, Node, AuditEntry, RepositoryAuditEntryData, OrganizationAuditEntryData, TopicAuditEntryData): + """Audit log entry for a repo.add_topic event.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepoArchivedAuditEntry(sgqlc.types.Type, Node, AuditEntry, RepositoryAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a repo.archived event.""" + + __schema__ = github_schema + __field_names__ = ("visibility",) + visibility = sgqlc.types.Field(RepoArchivedAuditEntryVisibility, graphql_name="visibility") + """The visibility of the repository""" + + +class RepoChangeMergeSettingAuditEntry(sgqlc.types.Type, Node, AuditEntry, RepositoryAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a repo.change_merge_setting event.""" + + __schema__ = github_schema + __field_names__ = ("is_enabled", "merge_type") + is_enabled = sgqlc.types.Field(Boolean, graphql_name="isEnabled") + """Whether the change was to enable (true) or disable (false) the + merge type + """ + + merge_type = sgqlc.types.Field(RepoChangeMergeSettingAuditEntryMergeType, graphql_name="mergeType") + """The merge method affected by the change""" + + +class RepoConfigDisableAnonymousGitAccessAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a repo.config.disable_anonymous_git_access + event. + """ + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigDisableCollaboratorsOnlyAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a repo.config.disable_collaborators_only + event. + """ + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigDisableContributorsOnlyAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData): + """Audit log entry for a repo.config.disable_contributors_only event.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigDisableSockpuppetDisallowedAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a repo.config.disable_sockpuppet_disallowed + event. + """ + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigEnableAnonymousGitAccessAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a repo.config.enable_anonymous_git_access + event. + """ + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigEnableCollaboratorsOnlyAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData): + """Audit log entry for a repo.config.enable_collaborators_only event.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigEnableContributorsOnlyAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData): + """Audit log entry for a repo.config.enable_contributors_only event.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigEnableSockpuppetDisallowedAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a repo.config.enable_sockpuppet_disallowed + event. + """ + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigLockAnonymousGitAccessAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData): + """Audit log entry for a repo.config.lock_anonymous_git_access event.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepoConfigUnlockAnonymousGitAccessAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData +): + """Audit log entry for a repo.config.unlock_anonymous_git_access + event. + """ + + __schema__ = github_schema + __field_names__ = () + + +class RepoCreateAuditEntry(sgqlc.types.Type, Node, AuditEntry, RepositoryAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a repo.create event.""" + + __schema__ = github_schema + __field_names__ = ("fork_parent_name", "fork_source_name", "visibility") + fork_parent_name = sgqlc.types.Field(String, graphql_name="forkParentName") + """The name of the parent repository for this forked repository.""" + + fork_source_name = sgqlc.types.Field(String, graphql_name="forkSourceName") + """The name of the root repository for this network.""" + + visibility = sgqlc.types.Field(RepoCreateAuditEntryVisibility, graphql_name="visibility") + """The visibility of the repository""" + + +class RepoDestroyAuditEntry(sgqlc.types.Type, Node, AuditEntry, RepositoryAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a repo.destroy event.""" + + __schema__ = github_schema + __field_names__ = ("visibility",) + visibility = sgqlc.types.Field(RepoDestroyAuditEntryVisibility, graphql_name="visibility") + """The visibility of the repository""" + + +class RepoRemoveMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData): + """Audit log entry for a repo.remove_member event.""" + + __schema__ = github_schema + __field_names__ = ("visibility",) + visibility = sgqlc.types.Field(RepoRemoveMemberAuditEntryVisibility, graphql_name="visibility") + """The visibility of the repository""" + + +class RepoRemoveTopicAuditEntry( + sgqlc.types.Type, Node, AuditEntry, RepositoryAuditEntryData, OrganizationAuditEntryData, TopicAuditEntryData +): + """Audit log entry for a repo.remove_topic event.""" + + __schema__ = github_schema + __field_names__ = () + + +class Repository( + sgqlc.types.Type, Node, ProjectV2Recent, ProjectOwner, PackageOwner, Subscribable, Starrable, UniformResourceLocatable, RepositoryInfo +): + """A repository contains the content for a project.""" + + __schema__ = github_schema + __field_names__ = ( + "allow_update_branch", + "assignable_users", + "auto_merge_allowed", + "branch_protection_rules", + "code_of_conduct", + "codeowners", + "collaborators", + "commit_comments", + "contact_links", + "database_id", + "default_branch_ref", + "delete_branch_on_merge", + "deploy_keys", + "deployments", + "discussion", + "discussion_categories", + "discussion_category", + "discussions", + "disk_usage", + "environment", + "environments", + "forking_allowed", + "forks", + "funding_links", + "has_vulnerability_alerts_enabled", + "interaction_ability", + "is_blank_issues_enabled", + "is_disabled", + "is_empty", + "is_security_policy_enabled", + "is_user_configuration_repository", + "issue", + "issue_or_pull_request", + "issue_templates", + "issues", + "label", + "labels", + "languages", + "latest_release", + "mentionable_users", + "merge_commit_allowed", + "merge_commit_message", + "merge_commit_title", + "merge_queue", + "milestone", + "milestones", + "object", + "parent", + "pinned_discussions", + "pinned_issues", + "primary_language", + "project_v2", + "projects_v2", + "pull_request", + "pull_request_templates", + "pull_requests", + "rebase_merge_allowed", + "ref", + "refs", + "release", + "releases", + "repository_topics", + "ruleset", + "rulesets", + "security_policy_url", + "squash_merge_allowed", + "squash_merge_commit_message", + "squash_merge_commit_title", + "ssh_url", + "submodules", + "temp_clone_token", + "template_repository", + "viewer_can_administer", + "viewer_can_update_topics", + "viewer_default_commit_email", + "viewer_default_merge_method", + "viewer_permission", + "viewer_possible_commit_emails", + "vulnerability_alert", + "vulnerability_alerts", + "watchers", + "web_commit_signoff_required", + ) + allow_update_branch = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="allowUpdateBranch") + """Whether or not a pull request head branch that is behind its base + branch can always be updated even if it is not required to be up + to date before merging. + """ + + assignable_users = sgqlc.types.Field( + sgqlc.types.non_null(UserConnection), + graphql_name="assignableUsers", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users that can be assigned to issues in this repository. + + Arguments: + + * `query` (`String`): Filters users with query on user name and + login + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + auto_merge_allowed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="autoMergeAllowed") + """Whether or not Auto-merge can be enabled on pull requests in this + repository. + """ + + branch_protection_rules = sgqlc.types.Field( + sgqlc.types.non_null(BranchProtectionRuleConnection), + graphql_name="branchProtectionRules", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of branch protection rules for this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + code_of_conduct = sgqlc.types.Field(CodeOfConduct, graphql_name="codeOfConduct") + """Returns the code of conduct for this repository""" + + codeowners = sgqlc.types.Field( + RepositoryCodeowners, + graphql_name="codeowners", + args=sgqlc.types.ArgDict((("ref_name", sgqlc.types.Arg(String, graphql_name="refName", default=None)),)), + ) + """Information extracted from the repository's `CODEOWNERS` file. + + Arguments: + + * `ref_name` (`String`): The ref name used to return the + associated `CODEOWNERS` file. + """ + + collaborators = sgqlc.types.Field( + RepositoryCollaboratorConnection, + graphql_name="collaborators", + args=sgqlc.types.ArgDict( + ( + ("affiliation", sgqlc.types.Arg(CollaboratorAffiliation, graphql_name="affiliation", default=None)), + ("login", sgqlc.types.Arg(String, graphql_name="login", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of collaborators associated with the repository. + + Arguments: + + * `affiliation` (`CollaboratorAffiliation`): Collaborators + affiliation level with a repository. + * `login` (`String`): The login of one specific collaborator. + * `query` (`String`): Filters users with query on user name and + login + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + commit_comments = sgqlc.types.Field( + sgqlc.types.non_null(CommitCommentConnection), + graphql_name="commitComments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of commit comments associated with the repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + contact_links = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(RepositoryContactLink)), graphql_name="contactLinks") + """Returns a list of contact links associated to the repository""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + default_branch_ref = sgqlc.types.Field(Ref, graphql_name="defaultBranchRef") + """The Ref associated with the repository's default branch.""" + + delete_branch_on_merge = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="deleteBranchOnMerge") + """Whether or not branches are automatically deleted when merged in + this repository. + """ + + deploy_keys = sgqlc.types.Field( + sgqlc.types.non_null(DeployKeyConnection), + graphql_name="deployKeys", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of deploy keys that are on this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + deployments = sgqlc.types.Field( + sgqlc.types.non_null(DeploymentConnection), + graphql_name="deployments", + args=sgqlc.types.ArgDict( + ( + ( + "environments", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="environments", default=None), + ), + ("order_by", sgqlc.types.Arg(DeploymentOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"})), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Deployments associated with the repository + + Arguments: + + * `environments` (`[String!]`): Environments to list deployments + for + * `order_by` (`DeploymentOrder`): Ordering options for deployments + returned from the connection. (default: `{field: CREATED_AT, + direction: ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + discussion = sgqlc.types.Field( + Discussion, + graphql_name="discussion", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Returns a single discussion from the current repository by number. + + Arguments: + + * `number` (`Int!`): The number for the discussion to be returned. + """ + + discussion_categories = sgqlc.types.Field( + sgqlc.types.non_null(DiscussionCategoryConnection), + graphql_name="discussionCategories", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("filter_by_assignable", sgqlc.types.Arg(Boolean, graphql_name="filterByAssignable", default=False)), + ) + ), + ) + """A list of discussion categories that are available in the + repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `filter_by_assignable` (`Boolean`): Filter by categories that + are assignable by the viewer. (default: `false`) + """ + + discussion_category = sgqlc.types.Field( + DiscussionCategory, + graphql_name="discussionCategory", + args=sgqlc.types.ArgDict((("slug", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="slug", default=None)),)), + ) + """A discussion category by slug. + + Arguments: + + * `slug` (`String!`): The slug of the discussion category to be + returned. + """ + + discussions = sgqlc.types.Field( + sgqlc.types.non_null(DiscussionConnection), + graphql_name="discussions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("category_id", sgqlc.types.Arg(ID, graphql_name="categoryId", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(DiscussionState)), graphql_name="states", default=())), + ( + "order_by", + sgqlc.types.Arg(DiscussionOrder, graphql_name="orderBy", default={"field": "UPDATED_AT", "direction": "DESC"}), + ), + ) + ), + ) + """A list of discussions that have been opened in the repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `category_id` (`ID`): Only include discussions that belong to + the category with this ID. (default: `null`) + * `states` (`[DiscussionState!]`): A list of states to filter the + discussions by. (default: `[]`) + * `order_by` (`DiscussionOrder`): Ordering options for discussions + returned from the connection. (default: `{field: UPDATED_AT, + direction: DESC}`) + """ + + disk_usage = sgqlc.types.Field(Int, graphql_name="diskUsage") + """The number of kilobytes this repository occupies on disk.""" + + environment = sgqlc.types.Field( + Environment, + graphql_name="environment", + args=sgqlc.types.ArgDict((("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)),)), + ) + """Returns a single active environment from the current repository by + name. + + Arguments: + + * `name` (`String!`): The name of the environment to be returned. + """ + + environments = sgqlc.types.Field( + sgqlc.types.non_null(EnvironmentConnection), + graphql_name="environments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of environments that are in this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + forking_allowed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="forkingAllowed") + """Whether this repository allows forks.""" + + forks = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryConnection), + graphql_name="forks", + args=sgqlc.types.ArgDict( + ( + ("privacy", sgqlc.types.Arg(RepositoryPrivacy, graphql_name="privacy", default=None)), + ("order_by", sgqlc.types.Arg(RepositoryOrder, graphql_name="orderBy", default=None)), + ("affiliations", sgqlc.types.Arg(sgqlc.types.list_of(RepositoryAffiliation), graphql_name="affiliations", default=None)), + ( + "owner_affiliations", + sgqlc.types.Arg( + sgqlc.types.list_of(RepositoryAffiliation), graphql_name="ownerAffiliations", default=("OWNER", "COLLABORATOR") + ), + ), + ("is_locked", sgqlc.types.Arg(Boolean, graphql_name="isLocked", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of direct forked repositories. + + Arguments: + + * `privacy` (`RepositoryPrivacy`): If non-null, filters + repositories according to privacy + * `order_by` (`RepositoryOrder`): Ordering options for + repositories returned from the connection + * `affiliations` (`[RepositoryAffiliation]`): Array of viewer's + affiliation options for repositories returned from the + connection. For example, OWNER will include only repositories + that the current viewer owns. + * `owner_affiliations` (`[RepositoryAffiliation]`): Array of + owner's affiliation options for repositories returned from the + connection. For example, OWNER will include only repositories + that the organization or user being viewed owns. (default: + `[OWNER, COLLABORATOR]`) + * `is_locked` (`Boolean`): If non-null, filters repositories + according to whether they have been locked + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + funding_links = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(FundingLink))), graphql_name="fundingLinks" + ) + """The funding links for this repository""" + + has_vulnerability_alerts_enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasVulnerabilityAlertsEnabled") + """Whether vulnerability alerts are enabled for the repository.""" + + interaction_ability = sgqlc.types.Field(RepositoryInteractionAbility, graphql_name="interactionAbility") + """The interaction ability settings for this repository.""" + + is_blank_issues_enabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isBlankIssuesEnabled") + """Returns true if blank issue creation is allowed""" + + is_disabled = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDisabled") + """Returns whether or not this repository disabled.""" + + is_empty = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isEmpty") + """Returns whether or not this repository is empty.""" + + is_security_policy_enabled = sgqlc.types.Field(Boolean, graphql_name="isSecurityPolicyEnabled") + """Returns true if this repository has a security policy""" + + is_user_configuration_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isUserConfigurationRepository") + """Is this repository a user configuration repository?""" + + issue = sgqlc.types.Field( + Issue, + graphql_name="issue", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Returns a single issue from the current repository by number. + + Arguments: + + * `number` (`Int!`): The number for the issue to be returned. + """ + + issue_or_pull_request = sgqlc.types.Field( + "IssueOrPullRequest", + graphql_name="issueOrPullRequest", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Returns a single issue-like object from the current repository by + number. + + Arguments: + + * `number` (`Int!`): The number for the issue to be returned. + """ + + issue_templates = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(IssueTemplate)), graphql_name="issueTemplates") + """Returns a list of issue templates associated to the repository""" + + issues = sgqlc.types.Field( + sgqlc.types.non_null(IssueConnection), + graphql_name="issues", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(IssueState)), graphql_name="states", default=None)), + ("filter_by", sgqlc.types.Arg(IssueFilters, graphql_name="filterBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of issues that have been opened in the repository. + + Arguments: + + * `order_by` (`IssueOrder`): Ordering options for issues returned + from the connection. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `states` (`[IssueState!]`): A list of states to filter the + issues by. + * `filter_by` (`IssueFilters`): Filtering options for issues + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + label = sgqlc.types.Field( + Label, + graphql_name="label", + args=sgqlc.types.ArgDict((("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)),)), + ) + """Returns a single label by name + + Arguments: + + * `name` (`String!`): Label name + """ + + labels = sgqlc.types.Field( + LabelConnection, + graphql_name="labels", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(LabelOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "ASC"})), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ) + ), + ) + """A list of labels associated with the repository. + + Arguments: + + * `order_by` (`LabelOrder`): Ordering options for labels returned + from the connection. (default: `{field: CREATED_AT, direction: + ASC}`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `query` (`String`): If provided, searches labels by name and + description. + """ + + languages = sgqlc.types.Field( + LanguageConnection, + graphql_name="languages", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(LanguageOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """A list containing a breakdown of the language composition of the + repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`LanguageOrder`): Order for connection + """ + + latest_release = sgqlc.types.Field(Release, graphql_name="latestRelease") + """Get the latest release for the repository if one exists.""" + + mentionable_users = sgqlc.types.Field( + sgqlc.types.non_null(UserConnection), + graphql_name="mentionableUsers", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of Users that can be mentioned in the context of the + repository. + + Arguments: + + * `query` (`String`): Filters users with query on user name and + login + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + merge_commit_allowed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="mergeCommitAllowed") + """Whether or not PRs are merged with a merge commit on this + repository. + """ + + merge_commit_message = sgqlc.types.Field(sgqlc.types.non_null(MergeCommitMessage), graphql_name="mergeCommitMessage") + """How the default commit message will be generated when merging a + pull request. + """ + + merge_commit_title = sgqlc.types.Field(sgqlc.types.non_null(MergeCommitTitle), graphql_name="mergeCommitTitle") + """How the default commit title will be generated when merging a pull + request. + """ + + merge_queue = sgqlc.types.Field( + MergeQueue, + graphql_name="mergeQueue", + args=sgqlc.types.ArgDict((("branch", sgqlc.types.Arg(String, graphql_name="branch", default=None)),)), + ) + """The merge queue for a specified branch, otherwise the default + branch if not provided. + + Arguments: + + * `branch` (`String`): The name of the branch to get the merge + queue for. Case sensitive. + """ + + milestone = sgqlc.types.Field( + Milestone, + graphql_name="milestone", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Returns a single milestone from the current repository by number. + + Arguments: + + * `number` (`Int!`): The number for the milestone to be returned. + """ + + milestones = sgqlc.types.Field( + MilestoneConnection, + graphql_name="milestones", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(MilestoneState)), graphql_name="states", default=None)), + ("order_by", sgqlc.types.Arg(MilestoneOrder, graphql_name="orderBy", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ) + ), + ) + """A list of milestones associated with the repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `states` (`[MilestoneState!]`): Filter by the state of the + milestones. + * `order_by` (`MilestoneOrder`): Ordering options for milestones. + * `query` (`String`): Filters milestones with a query on the title + """ + + object = sgqlc.types.Field( + GitObject, + graphql_name="object", + args=sgqlc.types.ArgDict( + ( + ("oid", sgqlc.types.Arg(GitObjectID, graphql_name="oid", default=None)), + ("expression", sgqlc.types.Arg(String, graphql_name="expression", default=None)), + ) + ), + ) + """A Git object in the repository + + Arguments: + + * `oid` (`GitObjectID`): The Git object ID + * `expression` (`String`): A Git revision expression suitable for + rev-parse + """ + + parent = sgqlc.types.Field("Repository", graphql_name="parent") + """The repository parent, if this is a fork.""" + + pinned_discussions = sgqlc.types.Field( + sgqlc.types.non_null(PinnedDiscussionConnection), + graphql_name="pinnedDiscussions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of discussions that have been pinned in this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pinned_issues = sgqlc.types.Field( + PinnedIssueConnection, + graphql_name="pinnedIssues", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pinned issues for this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + primary_language = sgqlc.types.Field(Language, graphql_name="primaryLanguage") + """The primary language of the repository's code.""" + + project_v2 = sgqlc.types.Field( + ProjectV2, + graphql_name="projectV2", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Finds and returns the Project according to the provided Project + number. + + Arguments: + + * `number` (`Int!`): The Project number. + """ + + projects_v2 = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2Connection), + graphql_name="projectsV2", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("order_by", sgqlc.types.Arg(ProjectV2Order, graphql_name="orderBy", default={"field": "NUMBER", "direction": "DESC"})), + ) + ), + ) + """List of projects linked to this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `query` (`String`): A project to search for linked to the repo. + * `order_by` (`ProjectV2Order`): How to order the returned + projects. (default: `{field: NUMBER, direction: DESC}`) + """ + + pull_request = sgqlc.types.Field( + PullRequest, + graphql_name="pullRequest", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Returns a single pull request from the current repository by + number. + + Arguments: + + * `number` (`Int!`): The number for the pull request to be + returned. + """ + + pull_request_templates = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(PullRequestTemplate)), graphql_name="pullRequestTemplates" + ) + """Returns a list of pull request templates associated to the + repository + """ + + pull_requests = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestConnection), + graphql_name="pullRequests", + args=sgqlc.types.ArgDict( + ( + ( + "states", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PullRequestState)), graphql_name="states", default=None), + ), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("head_ref_name", sgqlc.types.Arg(String, graphql_name="headRefName", default=None)), + ("base_ref_name", sgqlc.types.Arg(String, graphql_name="baseRefName", default=None)), + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pull requests that have been opened in the repository. + + Arguments: + + * `states` (`[PullRequestState!]`): A list of states to filter the + pull requests by. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `head_ref_name` (`String`): The head ref name to filter the pull + requests by. + * `base_ref_name` (`String`): The base ref name to filter the pull + requests by. + * `order_by` (`IssueOrder`): Ordering options for pull requests + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + rebase_merge_allowed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="rebaseMergeAllowed") + """Whether or not rebase-merging is enabled on this repository.""" + + ref = sgqlc.types.Field( + Ref, + graphql_name="ref", + args=sgqlc.types.ArgDict( + (("qualified_name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="qualifiedName", default=None)),) + ), + ) + """Fetch a given ref from the repository + + Arguments: + + * `qualified_name` (`String!`): The ref to retrieve. Fully + qualified matches are checked in order (`refs/heads/master`) + before falling back onto checks for short name matches + (`master`). + """ + + refs = sgqlc.types.Field( + RefConnection, + graphql_name="refs", + args=sgqlc.types.ArgDict( + ( + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("ref_prefix", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="refPrefix", default=None)), + ("direction", sgqlc.types.Arg(OrderDirection, graphql_name="direction", default=None)), + ("order_by", sgqlc.types.Arg(RefOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """Fetch a list of refs from the repository + + Arguments: + + * `query` (`String`): Filters refs with query on name + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `ref_prefix` (`String!`): A ref name prefix like `refs/heads/`, + `refs/tags/`, etc. + * `direction` (`OrderDirection`): DEPRECATED: use orderBy. The + ordering direction. + * `order_by` (`RefOrder`): Ordering options for refs returned from + the connection. + """ + + release = sgqlc.types.Field( + Release, + graphql_name="release", + args=sgqlc.types.ArgDict((("tag_name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="tagName", default=None)),)), + ) + """Lookup a single release given various criteria. + + Arguments: + + * `tag_name` (`String!`): The name of the Tag the Release was + created from + """ + + releases = sgqlc.types.Field( + sgqlc.types.non_null(ReleaseConnection), + graphql_name="releases", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(ReleaseOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """List of releases which are dependent on this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ReleaseOrder`): Order for connection + """ + + repository_topics = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryTopicConnection), + graphql_name="repositoryTopics", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of applied repository-topic associations for this + repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + ruleset = sgqlc.types.Field( + "RepositoryRuleset", + graphql_name="ruleset", + args=sgqlc.types.ArgDict((("database_id", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="databaseId", default=None)),)), + ) + """Returns a single ruleset from the current repository by ID. + + Arguments: + + * `database_id` (`Int!`): The ID of the ruleset to be returned. + """ + + rulesets = sgqlc.types.Field( + RepositoryRulesetConnection, + graphql_name="rulesets", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("include_parents", sgqlc.types.Arg(Boolean, graphql_name="includeParents", default=False)), + ) + ), + ) + """A list of rulesets for this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `include_parents` (`Boolean`): Return rulesets configured at + higher levels that apply to this repository (default: `false`) + """ + + security_policy_url = sgqlc.types.Field(URI, graphql_name="securityPolicyUrl") + """The security policy URL.""" + + squash_merge_allowed = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="squashMergeAllowed") + """Whether or not squash-merging is enabled on this repository.""" + + squash_merge_commit_message = sgqlc.types.Field(sgqlc.types.non_null(SquashMergeCommitMessage), graphql_name="squashMergeCommitMessage") + """How the default commit message will be generated when squash + merging a pull request. + """ + + squash_merge_commit_title = sgqlc.types.Field(sgqlc.types.non_null(SquashMergeCommitTitle), graphql_name="squashMergeCommitTitle") + """How the default commit title will be generated when squash merging + a pull request. + """ + + ssh_url = sgqlc.types.Field(sgqlc.types.non_null(GitSSHRemote), graphql_name="sshUrl") + """The SSH URL to clone this repository""" + + submodules = sgqlc.types.Field( + sgqlc.types.non_null(SubmoduleConnection), + graphql_name="submodules", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Returns a list of all submodules in this repository parsed from + the .gitmodules file as of the default branch's HEAD commit. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + temp_clone_token = sgqlc.types.Field(String, graphql_name="tempCloneToken") + """Temporary authentication token for cloning this repository.""" + + template_repository = sgqlc.types.Field("Repository", graphql_name="templateRepository") + """The repository from which this repository was generated, if any.""" + + viewer_can_administer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanAdminister") + """Indicates whether the viewer has admin permissions on this + repository. + """ + + viewer_can_update_topics = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanUpdateTopics") + """Indicates whether the viewer can update the topics of this + repository. + """ + + viewer_default_commit_email = sgqlc.types.Field(String, graphql_name="viewerDefaultCommitEmail") + """The last commit email for the viewer.""" + + viewer_default_merge_method = sgqlc.types.Field(sgqlc.types.non_null(PullRequestMergeMethod), graphql_name="viewerDefaultMergeMethod") + """The last used merge method by the viewer or the default for the + repository. + """ + + viewer_permission = sgqlc.types.Field(RepositoryPermission, graphql_name="viewerPermission") + """The users permission level on the repository. Will return null if + authenticated as an GitHub App. + """ + + viewer_possible_commit_emails = sgqlc.types.Field( + sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="viewerPossibleCommitEmails" + ) + """A list of emails this viewer can commit with.""" + + vulnerability_alert = sgqlc.types.Field( + "RepositoryVulnerabilityAlert", + graphql_name="vulnerabilityAlert", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Returns a single vulnerability alert from the current repository + by number. + + Arguments: + + * `number` (`Int!`): The number for the vulnerability alert to be + returned. + """ + + vulnerability_alerts = sgqlc.types.Field( + RepositoryVulnerabilityAlertConnection, + graphql_name="vulnerabilityAlerts", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "states", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(RepositoryVulnerabilityAlertState)), graphql_name="states", default=None + ), + ), + ( + "dependency_scopes", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(RepositoryVulnerabilityAlertDependencyScope)), + graphql_name="dependencyScopes", + default=None, + ), + ), + ) + ), + ) + """A list of vulnerability alerts that are on this repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `states` (`[RepositoryVulnerabilityAlertState!]`): Filter by the + state of the alert + * `dependency_scopes` + (`[RepositoryVulnerabilityAlertDependencyScope!]`): Filter by + the scope of the alert's dependency + """ + + watchers = sgqlc.types.Field( + sgqlc.types.non_null(UserConnection), + graphql_name="watchers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users watching the repository. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + web_commit_signoff_required = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="webCommitSignoffRequired") + """Whether contributors are required to sign off on web-based commits + in this repository. + """ + + +class RepositoryInvitation(sgqlc.types.Type, Node): + """An invitation for a user to be added to a repository.""" + + __schema__ = github_schema + __field_names__ = ("email", "invitee", "inviter", "permalink", "permission", "repository") + email = sgqlc.types.Field(String, graphql_name="email") + """The email address that received the invitation.""" + + invitee = sgqlc.types.Field("User", graphql_name="invitee") + """The user who received the invitation.""" + + inviter = sgqlc.types.Field(sgqlc.types.non_null("User"), graphql_name="inviter") + """The user who created the invitation.""" + + permalink = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="permalink") + """The permalink for this repository invitation.""" + + permission = sgqlc.types.Field(sgqlc.types.non_null(RepositoryPermission), graphql_name="permission") + """The permission granted on this repository by this invitation.""" + + repository = sgqlc.types.Field(RepositoryInfo, graphql_name="repository") + """The Repository the user is invited to.""" + + +class RepositoryMigration(sgqlc.types.Type, Node, Migration): + """A GitHub Enterprise Importer (GEI) repository migration.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepositoryRule(sgqlc.types.Type, Node): + """A repository rule.""" + + __schema__ = github_schema + __field_names__ = ("parameters", "type") + parameters = sgqlc.types.Field("RuleParameters", graphql_name="parameters") + """The parameters for this rule.""" + + type = sgqlc.types.Field(sgqlc.types.non_null(RepositoryRuleType), graphql_name="type") + """The type of rule.""" + + +class RepositoryRuleset(sgqlc.types.Type, Node): + """A repository ruleset.""" + + __schema__ = github_schema + __field_names__ = ( + "bypass_actors", + "bypass_mode", + "conditions", + "created_at", + "database_id", + "enforcement", + "name", + "rules", + "source", + "target", + "updated_at", + ) + bypass_actors = sgqlc.types.Field( + RepositoryRulesetBypassActorConnection, + graphql_name="bypassActors", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The actors that can bypass this ruleset + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + bypass_mode = sgqlc.types.Field(sgqlc.types.non_null(RuleBypassMode), graphql_name="bypassMode") + """The bypass mode of this ruleset""" + + conditions = sgqlc.types.Field(sgqlc.types.non_null(RepositoryRuleConditions), graphql_name="conditions") + """The set of conditions that must evaluate to true for this ruleset + to apply + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + enforcement = sgqlc.types.Field(sgqlc.types.non_null(RuleEnforcement), graphql_name="enforcement") + """The enforcement level of this ruleset""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """Name of the ruleset.""" + + rules = sgqlc.types.Field( + RepositoryRuleConnection, + graphql_name="rules", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("type", sgqlc.types.Arg(RepositoryRuleType, graphql_name="type", default=None)), + ) + ), + ) + """List of rules. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `type` (`RepositoryRuleType`): The type of rule. + """ + + source = sgqlc.types.Field(sgqlc.types.non_null("RuleSource"), graphql_name="source") + """Source of ruleset.""" + + target = sgqlc.types.Field(RepositoryRulesetTarget, graphql_name="target") + """Target of the ruleset.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class RepositoryRulesetBypassActor(sgqlc.types.Type, Node): + """A team or app that has the ability to bypass a rules defined on a + ruleset + """ + + __schema__ = github_schema + __field_names__ = ("actor", "repository_ruleset") + actor = sgqlc.types.Field("BypassActor", graphql_name="actor") + """The actor that can bypass rules.""" + + repository_ruleset = sgqlc.types.Field(RepositoryRuleset, graphql_name="repositoryRuleset") + """Identifies the ruleset associated with the allowed actor""" + + +class RepositoryTopic(sgqlc.types.Type, Node, UniformResourceLocatable): + """A repository-topic connects a repository to a topic.""" + + __schema__ = github_schema + __field_names__ = ("topic",) + topic = sgqlc.types.Field(sgqlc.types.non_null("Topic"), graphql_name="topic") + """The topic.""" + + +class RepositoryVisibilityChangeDisableAuditEntry(sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a repository_visibility_change.disable event.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepositoryVisibilityChangeEnableAuditEntry(sgqlc.types.Type, Node, AuditEntry, EnterpriseAuditEntryData, OrganizationAuditEntryData): + """Audit log entry for a repository_visibility_change.enable event.""" + + __schema__ = github_schema + __field_names__ = () + + +class RepositoryVulnerabilityAlert(sgqlc.types.Type, Node, RepositoryNode): + """A Dependabot alert for a repository with a dependency affected by + a security vulnerability. + """ + + __schema__ = github_schema + __field_names__ = ( + "auto_dismissed_at", + "created_at", + "dependabot_update", + "dependency_scope", + "dismiss_comment", + "dismiss_reason", + "dismissed_at", + "dismisser", + "fixed_at", + "number", + "security_advisory", + "security_vulnerability", + "state", + "vulnerable_manifest_filename", + "vulnerable_manifest_path", + "vulnerable_requirements", + ) + auto_dismissed_at = sgqlc.types.Field(DateTime, graphql_name="autoDismissedAt") + """When was the alert auto-dismissed?""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """When was the alert created?""" + + dependabot_update = sgqlc.types.Field(DependabotUpdate, graphql_name="dependabotUpdate") + """The associated Dependabot update""" + + dependency_scope = sgqlc.types.Field(RepositoryVulnerabilityAlertDependencyScope, graphql_name="dependencyScope") + """The scope of an alert's dependency""" + + dismiss_comment = sgqlc.types.Field(String, graphql_name="dismissComment") + """Comment explaining the reason the alert was dismissed""" + + dismiss_reason = sgqlc.types.Field(String, graphql_name="dismissReason") + """The reason the alert was dismissed""" + + dismissed_at = sgqlc.types.Field(DateTime, graphql_name="dismissedAt") + """When was the alert dismissed?""" + + dismisser = sgqlc.types.Field("User", graphql_name="dismisser") + """The user who dismissed the alert""" + + fixed_at = sgqlc.types.Field(DateTime, graphql_name="fixedAt") + """When was the alert fixed?""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """Identifies the alert number.""" + + security_advisory = sgqlc.types.Field("SecurityAdvisory", graphql_name="securityAdvisory") + """The associated security advisory""" + + security_vulnerability = sgqlc.types.Field(SecurityVulnerability, graphql_name="securityVulnerability") + """The associated security vulnerability""" + + state = sgqlc.types.Field(sgqlc.types.non_null(RepositoryVulnerabilityAlertState), graphql_name="state") + """Identifies the state of the alert.""" + + vulnerable_manifest_filename = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="vulnerableManifestFilename") + """The vulnerable manifest filename""" + + vulnerable_manifest_path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="vulnerableManifestPath") + """The vulnerable manifest path""" + + vulnerable_requirements = sgqlc.types.Field(String, graphql_name="vulnerableRequirements") + """The vulnerable requirements""" + + +class RestrictedContribution(sgqlc.types.Type, Contribution): + """Represents a private contribution a user made on GitHub.""" + + __schema__ = github_schema + __field_names__ = () + + +class ReviewDismissalAllowance(sgqlc.types.Type, Node): + """A user, team, or app who has the ability to dismiss a review on a + protected branch. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "branch_protection_rule") + actor = sgqlc.types.Field("ReviewDismissalAllowanceActor", graphql_name="actor") + """The actor that can dismiss.""" + + branch_protection_rule = sgqlc.types.Field(BranchProtectionRule, graphql_name="branchProtectionRule") + """Identifies the branch protection rule associated with the allowed + user, team, or app. + """ + + +class ReviewDismissedEvent(sgqlc.types.Type, Node, UniformResourceLocatable): + """Represents a 'review_dismissed' event on a given issue or pull + request. + """ + + __schema__ = github_schema + __field_names__ = ( + "actor", + "created_at", + "database_id", + "dismissal_message", + "dismissal_message_html", + "previous_review_state", + "pull_request", + "pull_request_commit", + "review", + ) + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + dismissal_message = sgqlc.types.Field(String, graphql_name="dismissalMessage") + """Identifies the optional message associated with the + 'review_dismissed' event. + """ + + dismissal_message_html = sgqlc.types.Field(String, graphql_name="dismissalMessageHTML") + """Identifies the optional message associated with the event, + rendered to HTML. + """ + + previous_review_state = sgqlc.types.Field(sgqlc.types.non_null(PullRequestReviewState), graphql_name="previousReviewState") + """Identifies the previous state of the review with the + 'review_dismissed' event. + """ + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + pull_request_commit = sgqlc.types.Field(PullRequestCommit, graphql_name="pullRequestCommit") + """Identifies the commit which caused the review to become stale.""" + + review = sgqlc.types.Field(PullRequestReview, graphql_name="review") + """Identifies the review associated with the 'review_dismissed' + event. + """ + + +class ReviewRequest(sgqlc.types.Type, Node): + """A request for a user to review a pull request.""" + + __schema__ = github_schema + __field_names__ = ("as_code_owner", "database_id", "pull_request", "requested_reviewer") + as_code_owner = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="asCodeOwner") + """Whether this request was created for a code owner""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """Identifies the pull request associated with this review request.""" + + requested_reviewer = sgqlc.types.Field("RequestedReviewer", graphql_name="requestedReviewer") + """The reviewer that is requested.""" + + +class ReviewRequestRemovedEvent(sgqlc.types.Type, Node): + """Represents an 'review_request_removed' event on a given pull + request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "pull_request", "requested_reviewer") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + requested_reviewer = sgqlc.types.Field("RequestedReviewer", graphql_name="requestedReviewer") + """Identifies the reviewer whose review request was removed.""" + + +class ReviewRequestedEvent(sgqlc.types.Type, Node): + """Represents an 'review_requested' event on a given pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "pull_request", "requested_reviewer") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + pull_request = sgqlc.types.Field(sgqlc.types.non_null(PullRequest), graphql_name="pullRequest") + """PullRequest referenced by event.""" + + requested_reviewer = sgqlc.types.Field("RequestedReviewer", graphql_name="requestedReviewer") + """Identifies the reviewer whose review was requested.""" + + +class ReviewStatusHovercardContext(sgqlc.types.Type, HovercardContext): + """A hovercard context with a message describing the current code + review state of the pull request. + """ + + __schema__ = github_schema + __field_names__ = ("review_decision",) + review_decision = sgqlc.types.Field(PullRequestReviewDecision, graphql_name="reviewDecision") + """The current status of the pull request with respect to code + review. + """ + + +class SavedReply(sgqlc.types.Type, Node): + """A Saved Reply is text a user can use to reply quickly.""" + + __schema__ = github_schema + __field_names__ = ("body", "body_html", "database_id", "title", "user") + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The body of the saved reply.""" + + body_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="bodyHTML") + """The saved reply body rendered to HTML.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the saved reply.""" + + user = sgqlc.types.Field(Actor, graphql_name="user") + """The user that saved this reply.""" + + +class SecurityAdvisory(sgqlc.types.Type, Node): + """A GitHub Security Advisory""" + + __schema__ = github_schema + __field_names__ = ( + "classification", + "cvss", + "cwes", + "database_id", + "description", + "ghsa_id", + "identifiers", + "notifications_permalink", + "origin", + "permalink", + "published_at", + "references", + "severity", + "summary", + "updated_at", + "vulnerabilities", + "withdrawn_at", + ) + classification = sgqlc.types.Field(sgqlc.types.non_null(SecurityAdvisoryClassification), graphql_name="classification") + """The classification of the advisory""" + + cvss = sgqlc.types.Field(sgqlc.types.non_null(CVSS), graphql_name="cvss") + """The CVSS associated with this advisory""" + + cwes = sgqlc.types.Field( + sgqlc.types.non_null(CWEConnection), + graphql_name="cwes", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """CWEs associated with this Advisory + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="description") + """This is a long plaintext description of the advisory""" + + ghsa_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="ghsaId") + """The GitHub Security Advisory ID""" + + identifiers = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(SecurityAdvisoryIdentifier))), graphql_name="identifiers" + ) + """A list of identifiers for this advisory""" + + notifications_permalink = sgqlc.types.Field(URI, graphql_name="notificationsPermalink") + """The permalink for the advisory's dependabot alerts page""" + + origin = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="origin") + """The organization that originated the advisory""" + + permalink = sgqlc.types.Field(URI, graphql_name="permalink") + """The permalink for the advisory""" + + published_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="publishedAt") + """When the advisory was published""" + + references = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(SecurityAdvisoryReference))), graphql_name="references" + ) + """A list of references for this advisory""" + + severity = sgqlc.types.Field(sgqlc.types.non_null(SecurityAdvisorySeverity), graphql_name="severity") + """The severity of the advisory""" + + summary = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="summary") + """A short plaintext summary of the advisory""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """When the advisory was last updated""" + + vulnerabilities = sgqlc.types.Field( + sgqlc.types.non_null(SecurityVulnerabilityConnection), + graphql_name="vulnerabilities", + args=sgqlc.types.ArgDict( + ( + ( + "order_by", + sgqlc.types.Arg( + SecurityVulnerabilityOrder, graphql_name="orderBy", default={"field": "UPDATED_AT", "direction": "DESC"} + ), + ), + ("ecosystem", sgqlc.types.Arg(SecurityAdvisoryEcosystem, graphql_name="ecosystem", default=None)), + ("package", sgqlc.types.Arg(String, graphql_name="package", default=None)), + ( + "severities", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(SecurityAdvisorySeverity)), graphql_name="severities", default=None + ), + ), + ( + "classifications", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(SecurityAdvisoryClassification)), + graphql_name="classifications", + default=None, + ), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """Vulnerabilities associated with this Advisory + + Arguments: + + * `order_by` (`SecurityVulnerabilityOrder`): Ordering options for + the returned topics. (default: `{field: UPDATED_AT, direction: + DESC}`) + * `ecosystem` (`SecurityAdvisoryEcosystem`): An ecosystem to + filter vulnerabilities by. + * `package` (`String`): A package name to filter vulnerabilities + by. + * `severities` (`[SecurityAdvisorySeverity!]`): A list of + severities to filter vulnerabilities by. + * `classifications` (`[SecurityAdvisoryClassification!]`): A list + of advisory classifications to filter vulnerabilities by. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + withdrawn_at = sgqlc.types.Field(DateTime, graphql_name="withdrawnAt") + """When the advisory was withdrawn, if it has been withdrawn""" + + +class SmimeSignature(sgqlc.types.Type, GitSignature): + """Represents an S/MIME signature on a Commit or Tag.""" + + __schema__ = github_schema + __field_names__ = () + + +class SponsorsActivity(sgqlc.types.Type, Node): + """An event related to sponsorship activity.""" + + __schema__ = github_schema + __field_names__ = ("action", "previous_sponsors_tier", "sponsor", "sponsorable", "sponsors_tier", "timestamp", "via_bulk_sponsorship") + action = sgqlc.types.Field(sgqlc.types.non_null(SponsorsActivityAction), graphql_name="action") + """What action this activity indicates took place.""" + + previous_sponsors_tier = sgqlc.types.Field("SponsorsTier", graphql_name="previousSponsorsTier") + """The tier that the sponsorship used to use, for tier change events.""" + + sponsor = sgqlc.types.Field("Sponsor", graphql_name="sponsor") + """The user or organization who triggered this activity and was/is + sponsoring the sponsorable. + """ + + sponsorable = sgqlc.types.Field(sgqlc.types.non_null(Sponsorable), graphql_name="sponsorable") + """The user or organization that is being sponsored, the maintainer.""" + + sponsors_tier = sgqlc.types.Field("SponsorsTier", graphql_name="sponsorsTier") + """The associated sponsorship tier.""" + + timestamp = sgqlc.types.Field(DateTime, graphql_name="timestamp") + """The timestamp of this event.""" + + via_bulk_sponsorship = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viaBulkSponsorship") + """Was this sponsorship made alongside other sponsorships at the same + time from the same sponsor? + """ + + +class SponsorsListing(sgqlc.types.Type, Node): + """A GitHub Sponsors listing.""" + + __schema__ = github_schema + __field_names__ = ( + "active_goal", + "active_stripe_connect_account", + "billing_country_or_region", + "contact_email_address", + "created_at", + "dashboard_resource_path", + "dashboard_url", + "featured_items", + "fiscal_host", + "full_description", + "full_description_html", + "is_public", + "name", + "next_payout_date", + "residence_country_or_region", + "resource_path", + "short_description", + "slug", + "sponsorable", + "tiers", + "url", + ) + active_goal = sgqlc.types.Field(SponsorsGoal, graphql_name="activeGoal") + """The current goal the maintainer is trying to reach with GitHub + Sponsors, if any. + """ + + active_stripe_connect_account = sgqlc.types.Field(StripeConnectAccount, graphql_name="activeStripeConnectAccount") + """The Stripe Connect account currently in use for payouts for this + Sponsors listing, if any. Will only return a value when queried by + the maintainer themselves, or by an admin of the sponsorable + organization. + """ + + billing_country_or_region = sgqlc.types.Field(String, graphql_name="billingCountryOrRegion") + """The name of the country or region with the maintainer's bank + account or fiscal host. Will only return a value when queried by + the maintainer themselves, or by an admin of the sponsorable + organization. + """ + + contact_email_address = sgqlc.types.Field(String, graphql_name="contactEmailAddress") + """The email address used by GitHub to contact the sponsorable about + their GitHub Sponsors profile. Will only return a value when + queried by the maintainer themselves, or by an admin of the + sponsorable organization. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + dashboard_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="dashboardResourcePath") + """The HTTP path for the Sponsors dashboard for this Sponsors + listing. + """ + + dashboard_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="dashboardUrl") + """The HTTP URL for the Sponsors dashboard for this Sponsors listing.""" + + featured_items = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("SponsorsListingFeaturedItem"))), + graphql_name="featuredItems", + args=sgqlc.types.ArgDict( + ( + ( + "featureable_types", + sgqlc.types.Arg( + sgqlc.types.list_of(sgqlc.types.non_null(SponsorsListingFeaturedItemFeatureableType)), + graphql_name="featureableTypes", + default=("REPOSITORY", "USER"), + ), + ), + ) + ), + ) + """The records featured on the GitHub Sponsors profile. + + Arguments: + + * `featureable_types` + (`[SponsorsListingFeaturedItemFeatureableType!]`): The types of + featured items to return. (default: `[REPOSITORY, USER]`) + """ + + fiscal_host = sgqlc.types.Field(Organization, graphql_name="fiscalHost") + """The fiscal host used for payments, if any. Will only return a + value when queried by the maintainer themselves, or by an admin of + the sponsorable organization. + """ + + full_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="fullDescription") + """The full description of the listing.""" + + full_description_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="fullDescriptionHTML") + """The full description of the listing rendered to HTML.""" + + is_public = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPublic") + """Whether this listing is publicly visible.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The listing's full name.""" + + next_payout_date = sgqlc.types.Field(Date, graphql_name="nextPayoutDate") + """A future date on which this listing is eligible to receive a + payout. + """ + + residence_country_or_region = sgqlc.types.Field(String, graphql_name="residenceCountryOrRegion") + """The name of the country or region where the maintainer resides. + Will only return a value when queried by the maintainer + themselves, or by an admin of the sponsorable organization. + """ + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this Sponsors listing.""" + + short_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="shortDescription") + """The short description of the listing.""" + + slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="slug") + """The short name of the listing.""" + + sponsorable = sgqlc.types.Field(sgqlc.types.non_null(Sponsorable), graphql_name="sponsorable") + """The entity this listing represents who can be sponsored on GitHub + Sponsors. + """ + + tiers = sgqlc.types.Field( + SponsorsTierConnection, + graphql_name="tiers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg( + SponsorsTierOrder, graphql_name="orderBy", default={"field": "MONTHLY_PRICE_IN_CENTS", "direction": "ASC"} + ), + ), + ("include_unpublished", sgqlc.types.Arg(Boolean, graphql_name="includeUnpublished", default=False)), + ) + ), + ) + """The tiers for this GitHub Sponsors profile. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`SponsorsTierOrder`): Ordering options for Sponsors + tiers returned from the connection. (default: `{field: + MONTHLY_PRICE_IN_CENTS, direction: ASC}`) + * `include_unpublished` (`Boolean`): Whether to include tiers that + aren't published. Only admins of the Sponsors listing can see + draft tiers. Only admins of the Sponsors listing and viewers who + are currently sponsoring on a retired tier can see those retired + tiers. Defaults to including only published tiers, which are + visible to anyone who can see the GitHub Sponsors profile. + (default: `false`) + """ + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this Sponsors listing.""" + + +class SponsorsListingFeaturedItem(sgqlc.types.Type, Node): + """A record that is promoted on a GitHub Sponsors profile.""" + + __schema__ = github_schema + __field_names__ = ("created_at", "description", "featureable", "position", "sponsors_listing", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """Will either be a description from the sponsorable maintainer about + why they featured this item, or the item's description itself, + such as a user's bio from their GitHub profile page. + """ + + featureable = sgqlc.types.Field(sgqlc.types.non_null("SponsorsListingFeatureableItem"), graphql_name="featureable") + """The record that is featured on the GitHub Sponsors profile.""" + + position = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="position") + """The position of this featured item on the GitHub Sponsors profile + with a lower position indicating higher precedence. Starts at 1. + """ + + sponsors_listing = sgqlc.types.Field(sgqlc.types.non_null(SponsorsListing), graphql_name="sponsorsListing") + """The GitHub Sponsors profile that features this record.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class SponsorsTier(sgqlc.types.Type, Node): + """A GitHub Sponsors tier associated with a GitHub Sponsors listing.""" + + __schema__ = github_schema + __field_names__ = ( + "admin_info", + "closest_lesser_value_tier", + "created_at", + "description", + "description_html", + "is_custom_amount", + "is_one_time", + "monthly_price_in_cents", + "monthly_price_in_dollars", + "name", + "sponsors_listing", + "updated_at", + ) + admin_info = sgqlc.types.Field(SponsorsTierAdminInfo, graphql_name="adminInfo") + """SponsorsTier information only visible to users that can administer + the associated Sponsors listing. + """ + + closest_lesser_value_tier = sgqlc.types.Field("SponsorsTier", graphql_name="closestLesserValueTier") + """Get a different tier for this tier's maintainer that is at the + same frequency as this tier but with an equal or lesser cost. + Returns the published tier with the monthly price closest to this + tier's without going over. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="description") + """The description of the tier.""" + + description_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="descriptionHTML") + """The tier description rendered to HTML""" + + is_custom_amount = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCustomAmount") + """Whether this tier was chosen at checkout time by the sponsor + rather than defined ahead of time by the maintainer who manages + the Sponsors listing. + """ + + is_one_time = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isOneTime") + """Whether this tier is only for use with one-time sponsorships.""" + + monthly_price_in_cents = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="monthlyPriceInCents") + """How much this tier costs per month in cents.""" + + monthly_price_in_dollars = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="monthlyPriceInDollars") + """How much this tier costs per month in USD.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the tier.""" + + sponsors_listing = sgqlc.types.Field(sgqlc.types.non_null(SponsorsListing), graphql_name="sponsorsListing") + """The sponsors listing that this tier belongs to.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class Sponsorship(sgqlc.types.Type, Node): + """A sponsorship relationship between a sponsor and a maintainer""" + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "is_active", + "is_one_time_payment", + "is_sponsor_opted_into_email", + "privacy_level", + "sponsor_entity", + "sponsorable", + "tier", + "tier_selected_at", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + is_active = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isActive") + """Whether the sponsorship is active. False implies the sponsor is a + past sponsor of the maintainer, while true implies they are a + current sponsor. + """ + + is_one_time_payment = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isOneTimePayment") + """Whether this sponsorship represents a one-time payment versus a + recurring sponsorship. + """ + + is_sponsor_opted_into_email = sgqlc.types.Field(Boolean, graphql_name="isSponsorOptedIntoEmail") + """Whether the sponsor has chosen to receive sponsorship update + emails sent from the sponsorable. Only returns a non-null value + when the viewer has permission to know this. + """ + + privacy_level = sgqlc.types.Field(sgqlc.types.non_null(SponsorshipPrivacy), graphql_name="privacyLevel") + """The privacy level for this sponsorship.""" + + sponsor_entity = sgqlc.types.Field("Sponsor", graphql_name="sponsorEntity") + """The user or organization that is sponsoring, if you have + permission to view them. + """ + + sponsorable = sgqlc.types.Field(sgqlc.types.non_null(Sponsorable), graphql_name="sponsorable") + """The entity that is being sponsored""" + + tier = sgqlc.types.Field(SponsorsTier, graphql_name="tier") + """The associated sponsorship tier""" + + tier_selected_at = sgqlc.types.Field(DateTime, graphql_name="tierSelectedAt") + """Identifies the date and time when the current tier was chosen for + this sponsorship. + """ + + +class SponsorshipNewsletter(sgqlc.types.Type, Node): + """An update sent to sponsors of a user or organization on GitHub + Sponsors. + """ + + __schema__ = github_schema + __field_names__ = ("author", "body", "created_at", "is_published", "sponsorable", "subject", "updated_at") + author = sgqlc.types.Field("User", graphql_name="author") + """The author of the newsletter.""" + + body = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="body") + """The contents of the newsletter, the message the sponsorable wanted + to give. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + is_published = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPublished") + """Indicates if the newsletter has been made available to sponsors.""" + + sponsorable = sgqlc.types.Field(sgqlc.types.non_null(Sponsorable), graphql_name="sponsorable") + """The user or organization this newsletter is from.""" + + subject = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="subject") + """The subject of the newsletter, what it's about.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class SshSignature(sgqlc.types.Type, GitSignature): + """Represents an SSH signature on a Commit or Tag.""" + + __schema__ = github_schema + __field_names__ = ("key_fingerprint",) + key_fingerprint = sgqlc.types.Field(String, graphql_name="keyFingerprint") + """Hex-encoded fingerprint of the key that signed this object.""" + + +class Status(sgqlc.types.Type, Node): + """Represents a commit status.""" + + __schema__ = github_schema + __field_names__ = ("combined_contexts", "commit", "context", "contexts", "state") + combined_contexts = sgqlc.types.Field( + sgqlc.types.non_null(StatusCheckRollupContextConnection), + graphql_name="combinedContexts", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of status contexts and check runs for this commit. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """The commit this status is attached to.""" + + context = sgqlc.types.Field( + "StatusContext", + graphql_name="context", + args=sgqlc.types.ArgDict((("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)),)), + ) + """Looks up an individual status context by context name. + + Arguments: + + * `name` (`String!`): The context name. + """ + + contexts = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("StatusContext"))), graphql_name="contexts") + """The individual status contexts for this commit.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(StatusState), graphql_name="state") + """The combined commit status.""" + + +class StatusCheckRollup(sgqlc.types.Type, Node): + """Represents the rollup for both the check runs and status for a + commit. + """ + + __schema__ = github_schema + __field_names__ = ("commit", "contexts", "state") + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """The commit the status and check runs are attached to.""" + + contexts = sgqlc.types.Field( + sgqlc.types.non_null(StatusCheckRollupContextConnection), + graphql_name="contexts", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of status contexts and check runs for this commit. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + state = sgqlc.types.Field(sgqlc.types.non_null(StatusState), graphql_name="state") + """The combined status for the commit.""" + + +class StatusContext(sgqlc.types.Type, RequirableByPullRequest, Node): + """Represents an individual commit status context""" + + __schema__ = github_schema + __field_names__ = ("avatar_url", "commit", "context", "created_at", "creator", "description", "state", "target_url") + avatar_url = sgqlc.types.Field( + URI, graphql_name="avatarUrl", args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=40)),)) + ) + """The avatar of the OAuth application or the user that created the + status + + Arguments: + + * `size` (`Int`): The size of the resulting square image. + (default: `40`) + """ + + commit = sgqlc.types.Field(Commit, graphql_name="commit") + """This commit this status context is attached to.""" + + context = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="context") + """The name of this status context.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + creator = sgqlc.types.Field(Actor, graphql_name="creator") + """The actor who created this status context.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The description for this status context.""" + + state = sgqlc.types.Field(sgqlc.types.non_null(StatusState), graphql_name="state") + """The state of this status context.""" + + target_url = sgqlc.types.Field(URI, graphql_name="targetUrl") + """The URL for this status context.""" + + +class SubscribedEvent(sgqlc.types.Type, Node): + """Represents a 'subscribed' event on a given `Subscribable`.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "subscribable") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + subscribable = sgqlc.types.Field(sgqlc.types.non_null(Subscribable), graphql_name="subscribable") + """Object referenced by event.""" + + +class Tag(sgqlc.types.Type, Node, GitObject): + """Represents a Git tag.""" + + __schema__ = github_schema + __field_names__ = ("message", "name", "tagger", "target") + message = sgqlc.types.Field(String, graphql_name="message") + """The Git tag message.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The Git tag name.""" + + tagger = sgqlc.types.Field(GitActor, graphql_name="tagger") + """Details about the tag author.""" + + target = sgqlc.types.Field(sgqlc.types.non_null(GitObject), graphql_name="target") + """The Git object the tag points to.""" + + +class Team(sgqlc.types.Type, Node, Subscribable, MemberStatusable): + """A team of users in an organization.""" + + __schema__ = github_schema + __field_names__ = ( + "ancestors", + "avatar_url", + "child_teams", + "combined_slug", + "created_at", + "database_id", + "description", + "discussion", + "discussions", + "discussions_resource_path", + "discussions_url", + "edit_team_resource_path", + "edit_team_url", + "invitations", + "members", + "members_resource_path", + "members_url", + "name", + "new_team_resource_path", + "new_team_url", + "notification_setting", + "organization", + "parent_team", + "privacy", + "project_v2", + "projects_v2", + "repositories", + "repositories_resource_path", + "repositories_url", + "resource_path", + "slug", + "teams_resource_path", + "teams_url", + "updated_at", + "url", + "viewer_can_administer", + ) + ancestors = sgqlc.types.Field( + sgqlc.types.non_null(TeamConnection), + graphql_name="ancestors", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of teams that are ancestors of this team. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + avatar_url = sgqlc.types.Field( + URI, graphql_name="avatarUrl", args=sgqlc.types.ArgDict((("size", sgqlc.types.Arg(Int, graphql_name="size", default=400)),)) + ) + """A URL pointing to the team's avatar. + + Arguments: + + * `size` (`Int`): The size in pixels of the resulting square + image. (default: `400`) + """ + + child_teams = sgqlc.types.Field( + sgqlc.types.non_null(TeamConnection), + graphql_name="childTeams", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(TeamOrder, graphql_name="orderBy", default=None)), + ( + "user_logins", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="userLogins", default=None), + ), + ("immediate_only", sgqlc.types.Arg(Boolean, graphql_name="immediateOnly", default=True)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """List of child teams belonging to this team + + Arguments: + + * `order_by` (`TeamOrder`): Order for connection + * `user_logins` (`[String!]`): User logins to filter by + * `immediate_only` (`Boolean`): Whether to list immediate child + teams or all descendant child teams. (default: `true`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + combined_slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="combinedSlug") + """The slug corresponding to the organization and team.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + description = sgqlc.types.Field(String, graphql_name="description") + """The description of the team.""" + + discussion = sgqlc.types.Field( + "TeamDiscussion", + graphql_name="discussion", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Find a team discussion by its number. + + Arguments: + + * `number` (`Int!`): The sequence number of the discussion to + find. + """ + + discussions = sgqlc.types.Field( + sgqlc.types.non_null(TeamDiscussionConnection), + graphql_name="discussions", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("is_pinned", sgqlc.types.Arg(Boolean, graphql_name="isPinned", default=None)), + ("order_by", sgqlc.types.Arg(TeamDiscussionOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """A list of team discussions. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `is_pinned` (`Boolean`): If provided, filters discussions + according to whether or not they are pinned. + * `order_by` (`TeamDiscussionOrder`): Order for connection + """ + + discussions_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="discussionsResourcePath") + """The HTTP path for team discussions""" + + discussions_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="discussionsUrl") + """The HTTP URL for team discussions""" + + edit_team_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="editTeamResourcePath") + """The HTTP path for editing this team""" + + edit_team_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="editTeamUrl") + """The HTTP URL for editing this team""" + + invitations = sgqlc.types.Field( + OrganizationInvitationConnection, + graphql_name="invitations", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pending invitations for users to this team + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + members = sgqlc.types.Field( + sgqlc.types.non_null(TeamMemberConnection), + graphql_name="members", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("membership", sgqlc.types.Arg(TeamMembershipType, graphql_name="membership", default="ALL")), + ("role", sgqlc.types.Arg(TeamMemberRole, graphql_name="role", default=None)), + ("order_by", sgqlc.types.Arg(TeamMemberOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """A list of users who are members of this team. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `query` (`String`): The search string to look for. + * `membership` (`TeamMembershipType`): Filter by membership type + (default: `ALL`) + * `role` (`TeamMemberRole`): Filter by team member role + * `order_by` (`TeamMemberOrder`): Order for the connection. + """ + + members_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="membersResourcePath") + """The HTTP path for the team' members""" + + members_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="membersUrl") + """The HTTP URL for the team' members""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the team.""" + + new_team_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="newTeamResourcePath") + """The HTTP path creating a new team""" + + new_team_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="newTeamUrl") + """The HTTP URL creating a new team""" + + notification_setting = sgqlc.types.Field(sgqlc.types.non_null(TeamNotificationSetting), graphql_name="notificationSetting") + """The notification setting that the team has set.""" + + organization = sgqlc.types.Field(sgqlc.types.non_null(Organization), graphql_name="organization") + """The organization that owns this team.""" + + parent_team = sgqlc.types.Field("Team", graphql_name="parentTeam") + """The parent team of the team.""" + + privacy = sgqlc.types.Field(sgqlc.types.non_null(TeamPrivacy), graphql_name="privacy") + """The level of privacy the team has.""" + + project_v2 = sgqlc.types.Field( + ProjectV2, + graphql_name="projectV2", + args=sgqlc.types.ArgDict((("number", sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name="number", default=None)),)), + ) + """Finds and returns the project according to the provided project + number. + + Arguments: + + * `number` (`Int!`): The Project number. + """ + + projects_v2 = sgqlc.types.Field( + sgqlc.types.non_null(ProjectV2Connection), + graphql_name="projectsV2", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(ProjectV2Order, graphql_name="orderBy", default={"field": "NUMBER", "direction": "DESC"})), + ("filter_by", sgqlc.types.Arg(ProjectV2Filters, graphql_name="filterBy", default={})), + ("query", sgqlc.types.Arg(String, graphql_name="query", default="")), + ) + ), + ) + """List of projects this team has collaborator access to. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`ProjectV2Order`): How to order the returned + projects. (default: `{field: NUMBER, direction: DESC}`) + * `filter_by` (`ProjectV2Filters`): Filtering options for projects + returned from this connection (default: `{}`) + * `query` (`String`): The query to search projects by. (default: + `""`) + """ + + repositories = sgqlc.types.Field( + sgqlc.types.non_null(TeamRepositoryConnection), + graphql_name="repositories", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("query", sgqlc.types.Arg(String, graphql_name="query", default=None)), + ("order_by", sgqlc.types.Arg(TeamRepositoryOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """A list of repositories this team has access to. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `query` (`String`): The search string to look for. Repositories + will be returned where the name contains your search string. + * `order_by` (`TeamRepositoryOrder`): Order for the connection. + """ + + repositories_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="repositoriesResourcePath") + """The HTTP path for this team's repositories""" + + repositories_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="repositoriesUrl") + """The HTTP URL for this team's repositories""" + + resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="resourcePath") + """The HTTP path for this team""" + + slug = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="slug") + """The slug corresponding to the team.""" + + teams_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="teamsResourcePath") + """The HTTP path for this team's teams""" + + teams_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="teamsUrl") + """The HTTP URL for this team's teams""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="url") + """The HTTP URL for this team""" + + viewer_can_administer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanAdminister") + """Team is adminable by the viewer.""" + + +class TeamAddMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, TeamAuditEntryData): + """Audit log entry for a team.add_member event.""" + + __schema__ = github_schema + __field_names__ = ("is_ldap_mapped",) + is_ldap_mapped = sgqlc.types.Field(Boolean, graphql_name="isLdapMapped") + """Whether the team was mapped to an LDAP Group.""" + + +class TeamAddRepositoryAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData, TeamAuditEntryData +): + """Audit log entry for a team.add_repository event.""" + + __schema__ = github_schema + __field_names__ = ("is_ldap_mapped",) + is_ldap_mapped = sgqlc.types.Field(Boolean, graphql_name="isLdapMapped") + """Whether the team was mapped to an LDAP Group.""" + + +class TeamChangeParentTeamAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, TeamAuditEntryData): + """Audit log entry for a team.change_parent_team event.""" + + __schema__ = github_schema + __field_names__ = ( + "is_ldap_mapped", + "parent_team", + "parent_team_name", + "parent_team_name_was", + "parent_team_resource_path", + "parent_team_url", + "parent_team_was", + "parent_team_was_resource_path", + "parent_team_was_url", + ) + is_ldap_mapped = sgqlc.types.Field(Boolean, graphql_name="isLdapMapped") + """Whether the team was mapped to an LDAP Group.""" + + parent_team = sgqlc.types.Field(Team, graphql_name="parentTeam") + """The new parent team.""" + + parent_team_name = sgqlc.types.Field(String, graphql_name="parentTeamName") + """The name of the new parent team""" + + parent_team_name_was = sgqlc.types.Field(String, graphql_name="parentTeamNameWas") + """The name of the former parent team""" + + parent_team_resource_path = sgqlc.types.Field(URI, graphql_name="parentTeamResourcePath") + """The HTTP path for the parent team""" + + parent_team_url = sgqlc.types.Field(URI, graphql_name="parentTeamUrl") + """The HTTP URL for the parent team""" + + parent_team_was = sgqlc.types.Field(Team, graphql_name="parentTeamWas") + """The former parent team.""" + + parent_team_was_resource_path = sgqlc.types.Field(URI, graphql_name="parentTeamWasResourcePath") + """The HTTP path for the previous parent team""" + + parent_team_was_url = sgqlc.types.Field(URI, graphql_name="parentTeamWasUrl") + """The HTTP URL for the previous parent team""" + + +class TeamDiscussion( + sgqlc.types.Type, Node, Comment, Deletable, Reactable, Subscribable, UniformResourceLocatable, Updatable, UpdatableComment +): + """A team discussion.""" + + __schema__ = github_schema + __field_names__ = ( + "body_version", + "comments", + "comments_resource_path", + "comments_url", + "is_pinned", + "is_private", + "number", + "team", + "title", + "viewer_can_pin", + ) + body_version = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="bodyVersion") + """Identifies the discussion body hash.""" + + comments = sgqlc.types.Field( + sgqlc.types.non_null(TeamDiscussionCommentConnection), + graphql_name="comments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(TeamDiscussionCommentOrder, graphql_name="orderBy", default=None)), + ("from_comment", sgqlc.types.Arg(Int, graphql_name="fromComment", default=None)), + ) + ), + ) + """A list of comments on this discussion. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`TeamDiscussionCommentOrder`): Order for connection + * `from_comment` (`Int`): When provided, filters the connection + such that results begin with the comment with this number. + """ + + comments_resource_path = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="commentsResourcePath") + """The HTTP path for discussion comments""" + + comments_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="commentsUrl") + """The HTTP URL for discussion comments""" + + is_pinned = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPinned") + """Whether or not the discussion is pinned.""" + + is_private = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isPrivate") + """Whether or not the discussion is only visible to team members and + org admins. + """ + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """Identifies the discussion within its team.""" + + team = sgqlc.types.Field(sgqlc.types.non_null(Team), graphql_name="team") + """The team that defines the context of this discussion.""" + + title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title") + """The title of the discussion""" + + viewer_can_pin = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanPin") + """Whether or not the current viewer can pin this discussion.""" + + +class TeamDiscussionComment(sgqlc.types.Type, Node, Comment, Deletable, Reactable, UniformResourceLocatable, Updatable, UpdatableComment): + """A comment on a team discussion.""" + + __schema__ = github_schema + __field_names__ = ("body_version", "discussion", "number") + body_version = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="bodyVersion") + """The current version of the body content.""" + + discussion = sgqlc.types.Field(sgqlc.types.non_null(TeamDiscussion), graphql_name="discussion") + """The discussion this comment is about.""" + + number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="number") + """Identifies the comment number.""" + + +class TeamRemoveMemberAuditEntry(sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, TeamAuditEntryData): + """Audit log entry for a team.remove_member event.""" + + __schema__ = github_schema + __field_names__ = ("is_ldap_mapped",) + is_ldap_mapped = sgqlc.types.Field(Boolean, graphql_name="isLdapMapped") + """Whether the team was mapped to an LDAP Group.""" + + +class TeamRemoveRepositoryAuditEntry( + sgqlc.types.Type, Node, AuditEntry, OrganizationAuditEntryData, RepositoryAuditEntryData, TeamAuditEntryData +): + """Audit log entry for a team.remove_repository event.""" + + __schema__ = github_schema + __field_names__ = ("is_ldap_mapped",) + is_ldap_mapped = sgqlc.types.Field(Boolean, graphql_name="isLdapMapped") + """Whether the team was mapped to an LDAP Group.""" + + +class Topic(sgqlc.types.Type, Node, Starrable): + """A topic aggregates entities that are related to a subject.""" + + __schema__ = github_schema + __field_names__ = ("name", "related_topics", "repositories") + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The topic's name.""" + + related_topics = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null("Topic"))), + graphql_name="relatedTopics", + args=sgqlc.types.ArgDict((("first", sgqlc.types.Arg(Int, graphql_name="first", default=3)),)), + ) + """A list of related topics, including aliases of this topic, sorted + with the most relevant first. Returns up to 10 Topics. + + Arguments: + + * `first` (`Int`): How many topics to return. (default: `3`) + """ + + repositories = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryConnection), + graphql_name="repositories", + args=sgqlc.types.ArgDict( + ( + ("privacy", sgqlc.types.Arg(RepositoryPrivacy, graphql_name="privacy", default=None)), + ("order_by", sgqlc.types.Arg(RepositoryOrder, graphql_name="orderBy", default=None)), + ("affiliations", sgqlc.types.Arg(sgqlc.types.list_of(RepositoryAffiliation), graphql_name="affiliations", default=None)), + ( + "owner_affiliations", + sgqlc.types.Arg( + sgqlc.types.list_of(RepositoryAffiliation), graphql_name="ownerAffiliations", default=("OWNER", "COLLABORATOR") + ), + ), + ("is_locked", sgqlc.types.Arg(Boolean, graphql_name="isLocked", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("sponsorable_only", sgqlc.types.Arg(Boolean, graphql_name="sponsorableOnly", default=False)), + ) + ), + ) + """A list of repositories. + + Arguments: + + * `privacy` (`RepositoryPrivacy`): If non-null, filters + repositories according to privacy + * `order_by` (`RepositoryOrder`): Ordering options for + repositories returned from the connection + * `affiliations` (`[RepositoryAffiliation]`): Array of viewer's + affiliation options for repositories returned from the + connection. For example, OWNER will include only repositories + that the current viewer owns. + * `owner_affiliations` (`[RepositoryAffiliation]`): Array of + owner's affiliation options for repositories returned from the + connection. For example, OWNER will include only repositories + that the organization or user being viewed owns. (default: + `[OWNER, COLLABORATOR]`) + * `is_locked` (`Boolean`): If non-null, filters repositories + according to whether they have been locked + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `sponsorable_only` (`Boolean`): If true, only repositories whose + owner can be sponsored via GitHub Sponsors will be returned. + (default: `false`) + """ + + +class TransferredEvent(sgqlc.types.Type, Node): + """Represents a 'transferred' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "from_repository", "issue") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + from_repository = sgqlc.types.Field(Repository, graphql_name="fromRepository") + """The repository this came from""" + + issue = sgqlc.types.Field(sgqlc.types.non_null(Issue), graphql_name="issue") + """Identifies the issue associated with the event.""" + + +class Tree(sgqlc.types.Type, Node, GitObject): + """Represents a Git tree.""" + + __schema__ = github_schema + __field_names__ = ("entries",) + entries = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(TreeEntry)), graphql_name="entries") + """A list of tree entries.""" + + +class UnassignedEvent(sgqlc.types.Type, Node): + """Represents an 'unassigned' event on any assignable object.""" + + __schema__ = github_schema + __field_names__ = ("actor", "assignable", "assignee", "created_at") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + assignable = sgqlc.types.Field(sgqlc.types.non_null(Assignable), graphql_name="assignable") + """Identifies the assignable associated with the event.""" + + assignee = sgqlc.types.Field("Assignee", graphql_name="assignee") + """Identifies the user or mannequin that was unassigned.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + +class UnknownSignature(sgqlc.types.Type, GitSignature): + """Represents an unknown signature on a Commit or Tag.""" + + __schema__ = github_schema + __field_names__ = () + + +class UnlabeledEvent(sgqlc.types.Type, Node): + """Represents an 'unlabeled' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "label", "labelable") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + label = sgqlc.types.Field(sgqlc.types.non_null(Label), graphql_name="label") + """Identifies the label associated with the 'unlabeled' event.""" + + labelable = sgqlc.types.Field(sgqlc.types.non_null(Labelable), graphql_name="labelable") + """Identifies the `Labelable` associated with the event.""" + + +class UnlockedEvent(sgqlc.types.Type, Node): + """Represents an 'unlocked' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "lockable") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + lockable = sgqlc.types.Field(sgqlc.types.non_null(Lockable), graphql_name="lockable") + """Object that was unlocked.""" + + +class UnmarkedAsDuplicateEvent(sgqlc.types.Type, Node): + """Represents an 'unmarked_as_duplicate' event on a given issue or + pull request. + """ + + __schema__ = github_schema + __field_names__ = ("actor", "canonical", "created_at", "duplicate", "is_cross_repository") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + canonical = sgqlc.types.Field("IssueOrPullRequest", graphql_name="canonical") + """The authoritative issue or pull request which has been duplicated + by another. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + duplicate = sgqlc.types.Field("IssueOrPullRequest", graphql_name="duplicate") + """The issue or pull request which has been marked as a duplicate of + another. + """ + + is_cross_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCrossRepository") + """Canonical and duplicate belong to different repositories.""" + + +class UnpinnedEvent(sgqlc.types.Type, Node): + """Represents an 'unpinned' event on a given issue or pull request.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "issue") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + issue = sgqlc.types.Field(sgqlc.types.non_null(Issue), graphql_name="issue") + """Identifies the issue associated with the event.""" + + +class UnsubscribedEvent(sgqlc.types.Type, Node): + """Represents an 'unsubscribed' event on a given `Subscribable`.""" + + __schema__ = github_schema + __field_names__ = ("actor", "created_at", "subscribable") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + subscribable = sgqlc.types.Field(sgqlc.types.non_null(Subscribable), graphql_name="subscribable") + """Object referenced by event.""" + + +class User( + sgqlc.types.Type, + Node, + Actor, + PackageOwner, + ProjectOwner, + ProjectV2Owner, + ProjectV2Recent, + RepositoryDiscussionAuthor, + RepositoryDiscussionCommentAuthor, + RepositoryOwner, + UniformResourceLocatable, + ProfileOwner, + Sponsorable, +): + """A user is an individual's account on GitHub that owns repositories + and can make new content. + """ + + __schema__ = github_schema + __field_names__ = ( + "bio", + "bio_html", + "can_receive_organization_emails_when_notifications_restricted", + "commit_comments", + "company", + "company_html", + "contributions_collection", + "created_at", + "database_id", + "followers", + "following", + "gist", + "gist_comments", + "gists", + "hovercard", + "interaction_ability", + "is_bounty_hunter", + "is_campus_expert", + "is_developer_program_member", + "is_employee", + "is_following_viewer", + "is_git_hub_star", + "is_hireable", + "is_site_admin", + "is_viewer", + "issue_comments", + "issues", + "organization", + "organization_verified_domain_emails", + "organizations", + "pronouns", + "public_keys", + "pull_requests", + "repositories_contributed_to", + "saved_replies", + "social_accounts", + "starred_repositories", + "status", + "top_repositories", + "twitter_username", + "updated_at", + "viewer_can_follow", + "viewer_is_following", + "watching", + ) + bio = sgqlc.types.Field(String, graphql_name="bio") + """The user's public profile bio.""" + + bio_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="bioHTML") + """The user's public profile bio as HTML.""" + + can_receive_organization_emails_when_notifications_restricted = sgqlc.types.Field( + sgqlc.types.non_null(Boolean), + graphql_name="canReceiveOrganizationEmailsWhenNotificationsRestricted", + args=sgqlc.types.ArgDict((("login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="login", default=None)),)), + ) + """Could this user receive email notifications, if the organization + had notification restrictions enabled? + + Arguments: + + * `login` (`String!`): The login of the organization to check. + """ + + commit_comments = sgqlc.types.Field( + sgqlc.types.non_null(CommitCommentConnection), + graphql_name="commitComments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of commit comments made by this user. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + company = sgqlc.types.Field(String, graphql_name="company") + """The user's public profile company.""" + + company_html = sgqlc.types.Field(sgqlc.types.non_null(HTML), graphql_name="companyHTML") + """The user's public profile company as HTML.""" + + contributions_collection = sgqlc.types.Field( + sgqlc.types.non_null(ContributionsCollection), + graphql_name="contributionsCollection", + args=sgqlc.types.ArgDict( + ( + ("organization_id", sgqlc.types.Arg(ID, graphql_name="organizationID", default=None)), + ("from_", sgqlc.types.Arg(DateTime, graphql_name="from", default=None)), + ("to", sgqlc.types.Arg(DateTime, graphql_name="to", default=None)), + ) + ), + ) + """The collection of contributions this user has made to different + repositories. + + Arguments: + + * `organization_id` (`ID`): The ID of the organization used to + filter contributions. + * `from_` (`DateTime`): Only contributions made at this time or + later will be counted. If omitted, defaults to a year ago. + * `to` (`DateTime`): Only contributions made before and up to + (including) this time will be counted. If omitted, defaults to + the current time or one year from the provided from argument. + """ + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + followers = sgqlc.types.Field( + sgqlc.types.non_null(FollowerConnection), + graphql_name="followers", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users the given user is followed by. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + following = sgqlc.types.Field( + sgqlc.types.non_null(FollowingConnection), + graphql_name="following", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of users the given user is following. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + gist = sgqlc.types.Field( + Gist, + graphql_name="gist", + args=sgqlc.types.ArgDict((("name", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="name", default=None)),)), + ) + """Find gist by repo name. + + Arguments: + + * `name` (`String!`): The gist name to find. + """ + + gist_comments = sgqlc.types.Field( + sgqlc.types.non_null(GistCommentConnection), + graphql_name="gistComments", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of gist comments made by this user. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + gists = sgqlc.types.Field( + sgqlc.types.non_null(GistConnection), + graphql_name="gists", + args=sgqlc.types.ArgDict( + ( + ("privacy", sgqlc.types.Arg(GistPrivacy, graphql_name="privacy", default=None)), + ("order_by", sgqlc.types.Arg(GistOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of the Gists the user has created. + + Arguments: + + * `privacy` (`GistPrivacy`): Filters Gists according to privacy. + * `order_by` (`GistOrder`): Ordering options for gists returned + from the connection + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + hovercard = sgqlc.types.Field( + sgqlc.types.non_null(Hovercard), + graphql_name="hovercard", + args=sgqlc.types.ArgDict((("primary_subject_id", sgqlc.types.Arg(ID, graphql_name="primarySubjectId", default=None)),)), + ) + """The hovercard information for this user in a given context + + Arguments: + + * `primary_subject_id` (`ID`): The ID of the subject to get the + hovercard in the context of + """ + + interaction_ability = sgqlc.types.Field(RepositoryInteractionAbility, graphql_name="interactionAbility") + """The interaction ability settings for this user.""" + + is_bounty_hunter = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isBountyHunter") + """Whether or not this user is a participant in the GitHub Security + Bug Bounty. + """ + + is_campus_expert = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isCampusExpert") + """Whether or not this user is a participant in the GitHub Campus + Experts Program. + """ + + is_developer_program_member = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isDeveloperProgramMember") + """Whether or not this user is a GitHub Developer Program member.""" + + is_employee = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isEmployee") + """Whether or not this user is a GitHub employee.""" + + is_following_viewer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isFollowingViewer") + """Whether or not this user is following the viewer. Inverse of + viewerIsFollowing + """ + + is_git_hub_star = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isGitHubStar") + """Whether or not this user is a member of the GitHub Stars Program.""" + + is_hireable = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isHireable") + """Whether or not the user has marked themselves as for hire.""" + + is_site_admin = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isSiteAdmin") + """Whether or not this user is a site administrator.""" + + is_viewer = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isViewer") + """Whether or not this user is the viewing user.""" + + issue_comments = sgqlc.types.Field( + sgqlc.types.non_null(IssueCommentConnection), + graphql_name="issueComments", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(IssueCommentOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of issue comments made by this user. + + Arguments: + + * `order_by` (`IssueCommentOrder`): Ordering options for issue + comments returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + issues = sgqlc.types.Field( + sgqlc.types.non_null(IssueConnection), + graphql_name="issues", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("states", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(IssueState)), graphql_name="states", default=None)), + ("filter_by", sgqlc.types.Arg(IssueFilters, graphql_name="filterBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of issues associated with this user. + + Arguments: + + * `order_by` (`IssueOrder`): Ordering options for issues returned + from the connection. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `states` (`[IssueState!]`): A list of states to filter the + issues by. + * `filter_by` (`IssueFilters`): Filtering options for issues + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + organization = sgqlc.types.Field( + Organization, + graphql_name="organization", + args=sgqlc.types.ArgDict((("login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="login", default=None)),)), + ) + """Find an organization by its login that the user belongs to. + + Arguments: + + * `login` (`String!`): The login of the organization to find. + """ + + organization_verified_domain_emails = sgqlc.types.Field( + sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), + graphql_name="organizationVerifiedDomainEmails", + args=sgqlc.types.ArgDict((("login", sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name="login", default=None)),)), + ) + """Verified email addresses that match verified domains for a + specified organization the user is a member of. + + Arguments: + + * `login` (`String!`): The login of the organization to match + verified domains from. + """ + + organizations = sgqlc.types.Field( + sgqlc.types.non_null(OrganizationConnection), + graphql_name="organizations", + args=sgqlc.types.ArgDict( + ( + ("order_by", sgqlc.types.Arg(OrganizationOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of organizations the user belongs to. + + Arguments: + + * `order_by` (`OrganizationOrder`): Ordering options for the + User's organizations. (default: `null`) + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pronouns = sgqlc.types.Field(String, graphql_name="pronouns") + """The user's profile pronouns""" + + public_keys = sgqlc.types.Field( + sgqlc.types.non_null(PublicKeyConnection), + graphql_name="publicKeys", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of public keys associated with this user. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + pull_requests = sgqlc.types.Field( + sgqlc.types.non_null(PullRequestConnection), + graphql_name="pullRequests", + args=sgqlc.types.ArgDict( + ( + ( + "states", + sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PullRequestState)), graphql_name="states", default=None), + ), + ("labels", sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="labels", default=None)), + ("head_ref_name", sgqlc.types.Arg(String, graphql_name="headRefName", default=None)), + ("base_ref_name", sgqlc.types.Arg(String, graphql_name="baseRefName", default=None)), + ("order_by", sgqlc.types.Arg(IssueOrder, graphql_name="orderBy", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of pull requests associated with this user. + + Arguments: + + * `states` (`[PullRequestState!]`): A list of states to filter the + pull requests by. + * `labels` (`[String!]`): A list of label names to filter the pull + requests by. + * `head_ref_name` (`String`): The head ref name to filter the pull + requests by. + * `base_ref_name` (`String`): The base ref name to filter the pull + requests by. + * `order_by` (`IssueOrder`): Ordering options for pull requests + returned from the connection. + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + repositories_contributed_to = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryConnection), + graphql_name="repositoriesContributedTo", + args=sgqlc.types.ArgDict( + ( + ("privacy", sgqlc.types.Arg(RepositoryPrivacy, graphql_name="privacy", default=None)), + ("order_by", sgqlc.types.Arg(RepositoryOrder, graphql_name="orderBy", default=None)), + ("is_locked", sgqlc.types.Arg(Boolean, graphql_name="isLocked", default=None)), + ("include_user_repositories", sgqlc.types.Arg(Boolean, graphql_name="includeUserRepositories", default=None)), + ( + "contribution_types", + sgqlc.types.Arg(sgqlc.types.list_of(RepositoryContributionType), graphql_name="contributionTypes", default=None), + ), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of repositories that the user recently contributed to. + + Arguments: + + * `privacy` (`RepositoryPrivacy`): If non-null, filters + repositories according to privacy + * `order_by` (`RepositoryOrder`): Ordering options for + repositories returned from the connection + * `is_locked` (`Boolean`): If non-null, filters repositories + according to whether they have been locked + * `include_user_repositories` (`Boolean`): If true, include user + repositories + * `contribution_types` (`[RepositoryContributionType]`): If non- + null, include only the specified types of contributions. The + GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY] + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + saved_replies = sgqlc.types.Field( + SavedReplyConnection, + graphql_name="savedReplies", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(SavedReplyOrder, graphql_name="orderBy", default={"field": "UPDATED_AT", "direction": "DESC"}), + ), + ) + ), + ) + """Replies this user has saved + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`SavedReplyOrder`): The field to order saved replies + by. (default: `{field: UPDATED_AT, direction: DESC}`) + """ + + social_accounts = sgqlc.types.Field( + sgqlc.types.non_null(SocialAccountConnection), + graphql_name="socialAccounts", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The user's social media accounts, ordered as they appear on the + user's profile. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + starred_repositories = sgqlc.types.Field( + sgqlc.types.non_null(StarredRepositoryConnection), + graphql_name="starredRepositories", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("owned_by_viewer", sgqlc.types.Arg(Boolean, graphql_name="ownedByViewer", default=None)), + ("order_by", sgqlc.types.Arg(StarOrder, graphql_name="orderBy", default=None)), + ) + ), + ) + """Repositories the user has starred. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `owned_by_viewer` (`Boolean`): Filters starred repositories to + only return repositories owned by the viewer. + * `order_by` (`StarOrder`): Order for connection + """ + + status = sgqlc.types.Field("UserStatus", graphql_name="status") + """The user's description of what they're currently doing.""" + + top_repositories = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryConnection), + graphql_name="topRepositories", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ("order_by", sgqlc.types.Arg(sgqlc.types.non_null(RepositoryOrder), graphql_name="orderBy", default=None)), + ("since", sgqlc.types.Arg(DateTime, graphql_name="since", default=None)), + ) + ), + ) + """Repositories the user has contributed to, ordered by contribution + rank, plus repositories the user has created + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`RepositoryOrder!`): Ordering options for + repositories returned from the connection + * `since` (`DateTime`): How far back in time to fetch contributed + repositories + """ + + twitter_username = sgqlc.types.Field(String, graphql_name="twitterUsername") + """The user's Twitter username.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + viewer_can_follow = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanFollow") + """Whether or not the viewer is able to follow the user.""" + + viewer_is_following = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerIsFollowing") + """Whether or not this user is followed by the viewer. Inverse of + isFollowingViewer. + """ + + watching = sgqlc.types.Field( + sgqlc.types.non_null(RepositoryConnection), + graphql_name="watching", + args=sgqlc.types.ArgDict( + ( + ("privacy", sgqlc.types.Arg(RepositoryPrivacy, graphql_name="privacy", default=None)), + ("order_by", sgqlc.types.Arg(RepositoryOrder, graphql_name="orderBy", default=None)), + ("affiliations", sgqlc.types.Arg(sgqlc.types.list_of(RepositoryAffiliation), graphql_name="affiliations", default=None)), + ( + "owner_affiliations", + sgqlc.types.Arg( + sgqlc.types.list_of(RepositoryAffiliation), graphql_name="ownerAffiliations", default=("OWNER", "COLLABORATOR") + ), + ), + ("is_locked", sgqlc.types.Arg(Boolean, graphql_name="isLocked", default=None)), + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """A list of repositories the given user is watching. + + Arguments: + + * `privacy` (`RepositoryPrivacy`): If non-null, filters + repositories according to privacy + * `order_by` (`RepositoryOrder`): Ordering options for + repositories returned from the connection + * `affiliations` (`[RepositoryAffiliation]`): Affiliation options + for repositories returned from the connection. If none + specified, the results will include repositories for which the + current viewer is an owner or collaborator, or member. + * `owner_affiliations` (`[RepositoryAffiliation]`): Array of + owner's affiliation options for repositories returned from the + connection. For example, OWNER will include only repositories + that the organization or user being viewed owns. (default: + `[OWNER, COLLABORATOR]`) + * `is_locked` (`Boolean`): If non-null, filters repositories + according to whether they have been locked + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + +class UserBlockedEvent(sgqlc.types.Type, Node): + """Represents a 'user_blocked' event on a given user.""" + + __schema__ = github_schema + __field_names__ = ("actor", "block_duration", "created_at", "subject") + actor = sgqlc.types.Field(Actor, graphql_name="actor") + """Identifies the actor who performed the event.""" + + block_duration = sgqlc.types.Field(sgqlc.types.non_null(UserBlockDuration), graphql_name="blockDuration") + """Number of days that the user was blocked for.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + subject = sgqlc.types.Field(User, graphql_name="subject") + """The user who was blocked.""" + + +class UserContentEdit(sgqlc.types.Type, Node): + """An edit on user content""" + + __schema__ = github_schema + __field_names__ = ("created_at", "deleted_at", "deleted_by", "diff", "edited_at", "editor", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + deleted_at = sgqlc.types.Field(DateTime, graphql_name="deletedAt") + """Identifies the date and time when the object was deleted.""" + + deleted_by = sgqlc.types.Field(Actor, graphql_name="deletedBy") + """The actor who deleted this content""" + + diff = sgqlc.types.Field(String, graphql_name="diff") + """A summary of the changes for this edit""" + + edited_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="editedAt") + """When this content was edited""" + + editor = sgqlc.types.Field(Actor, graphql_name="editor") + """The actor who edited this content""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class UserStatus(sgqlc.types.Type, Node): + """The user's description of what they're currently doing.""" + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "emoji", + "emoji_html", + "expires_at", + "indicates_limited_availability", + "message", + "organization", + "updated_at", + "user", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + emoji = sgqlc.types.Field(String, graphql_name="emoji") + """An emoji summarizing the user's status.""" + + emoji_html = sgqlc.types.Field(HTML, graphql_name="emojiHTML") + """The status emoji as HTML.""" + + expires_at = sgqlc.types.Field(DateTime, graphql_name="expiresAt") + """If set, the status will not be shown after this date.""" + + indicates_limited_availability = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="indicatesLimitedAvailability") + """Whether this status indicates the user is not fully available on + GitHub. + """ + + message = sgqlc.types.Field(String, graphql_name="message") + """A brief message describing what the user is doing.""" + + organization = sgqlc.types.Field(Organization, graphql_name="organization") + """The organization whose members can see this status. If null, this + status is publicly visible. + """ + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + user = sgqlc.types.Field(sgqlc.types.non_null(User), graphql_name="user") + """The user who has this status.""" + + +class VerifiableDomain(sgqlc.types.Type, Node): + """A domain that can be verified or approved for an organization or + an enterprise. + """ + + __schema__ = github_schema + __field_names__ = ( + "created_at", + "database_id", + "dns_host_name", + "domain", + "has_found_host_name", + "has_found_verification_token", + "is_approved", + "is_required_for_policy_enforcement", + "is_verified", + "owner", + "punycode_encoded_domain", + "token_expiration_time", + "updated_at", + "verification_token", + ) + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + dns_host_name = sgqlc.types.Field(URI, graphql_name="dnsHostName") + """The DNS host name that should be used for verification.""" + + domain = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="domain") + """The unicode encoded domain.""" + + has_found_host_name = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasFoundHostName") + """Whether a TXT record for verification with the expected host name + was found. + """ + + has_found_verification_token = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="hasFoundVerificationToken") + """Whether a TXT record for verification with the expected + verification token was found. + """ + + is_approved = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isApproved") + """Whether or not the domain is approved.""" + + is_required_for_policy_enforcement = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isRequiredForPolicyEnforcement") + """Whether this domain is required to exist for an organization or + enterprise policy to be enforced. + """ + + is_verified = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="isVerified") + """Whether or not the domain is verified.""" + + owner = sgqlc.types.Field(sgqlc.types.non_null("VerifiableDomainOwner"), graphql_name="owner") + """The owner of the domain.""" + + punycode_encoded_domain = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="punycodeEncodedDomain") + """The punycode encoded domain.""" + + token_expiration_time = sgqlc.types.Field(DateTime, graphql_name="tokenExpirationTime") + """The time that the current verification token will expire.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + verification_token = sgqlc.types.Field(String, graphql_name="verificationToken") + """The current verification token for the domain.""" + + +class ViewerHovercardContext(sgqlc.types.Type, HovercardContext): + """A hovercard context with a message describing how the viewer is + related. + """ + + __schema__ = github_schema + __field_names__ = ("viewer",) + viewer = sgqlc.types.Field(sgqlc.types.non_null(User), graphql_name="viewer") + """Identifies the user who is related to this context.""" + + +class Workflow(sgqlc.types.Type, Node, UniformResourceLocatable): + """A workflow contains meta information about an Actions workflow + file. + """ + + __schema__ = github_schema + __field_names__ = ("created_at", "database_id", "name", "runs", "state", "updated_at") + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="name") + """The name of the workflow.""" + + runs = sgqlc.types.Field( + sgqlc.types.non_null(WorkflowRunConnection), + graphql_name="runs", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ( + "order_by", + sgqlc.types.Arg(WorkflowRunOrder, graphql_name="orderBy", default={"field": "CREATED_AT", "direction": "DESC"}), + ), + ) + ), + ) + """The runs of the workflow. + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + * `order_by` (`WorkflowRunOrder`): Ordering options for the + connection (default: `{field: CREATED_AT, direction: DESC}`) + """ + + state = sgqlc.types.Field(sgqlc.types.non_null(WorkflowState), graphql_name="state") + """The state of the workflow.""" + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + +class WorkflowRun(sgqlc.types.Type, Node, UniformResourceLocatable): + """A workflow run.""" + + __schema__ = github_schema + __field_names__ = ( + "check_suite", + "created_at", + "database_id", + "deployment_reviews", + "event", + "file", + "pending_deployment_requests", + "run_number", + "updated_at", + "workflow", + ) + check_suite = sgqlc.types.Field(sgqlc.types.non_null(CheckSuite), graphql_name="checkSuite") + """The check suite this workflow run belongs to.""" + + created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="createdAt") + """Identifies the date and time when the object was created.""" + + database_id = sgqlc.types.Field(Int, graphql_name="databaseId") + """Identifies the primary key from the database.""" + + deployment_reviews = sgqlc.types.Field( + sgqlc.types.non_null(DeploymentReviewConnection), + graphql_name="deploymentReviews", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The log of deployment reviews + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + event = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="event") + """The event that triggered the workflow run""" + + file = sgqlc.types.Field("WorkflowRunFile", graphql_name="file") + """The workflow file""" + + pending_deployment_requests = sgqlc.types.Field( + sgqlc.types.non_null(DeploymentRequestConnection), + graphql_name="pendingDeploymentRequests", + args=sgqlc.types.ArgDict( + ( + ("after", sgqlc.types.Arg(String, graphql_name="after", default=None)), + ("before", sgqlc.types.Arg(String, graphql_name="before", default=None)), + ("first", sgqlc.types.Arg(Int, graphql_name="first", default=None)), + ("last", sgqlc.types.Arg(Int, graphql_name="last", default=None)), + ) + ), + ) + """The pending deployment requests of all check runs in this workflow + run + + Arguments: + + * `after` (`String`): Returns the elements in the list that come + after the specified cursor. + * `before` (`String`): Returns the elements in the list that come + before the specified cursor. + * `first` (`Int`): Returns the first _n_ elements from the list. + * `last` (`Int`): Returns the last _n_ elements from the list. + """ + + run_number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name="runNumber") + """A number that uniquely identifies this workflow run in its parent + workflow. + """ + + updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name="updatedAt") + """Identifies the date and time when the object was last updated.""" + + workflow = sgqlc.types.Field(sgqlc.types.non_null(Workflow), graphql_name="workflow") + """The workflow executed in this workflow run.""" + + +class WorkflowRunFile(sgqlc.types.Type, UniformResourceLocatable, Node): + """An executed workflow file for a workflow run.""" + + __schema__ = github_schema + __field_names__ = ("path", "repository_file_url", "repository_name", "run", "viewer_can_push_repository", "viewer_can_read_repository") + path = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="path") + """The path of the workflow file relative to its repository.""" + + repository_file_url = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="repositoryFileUrl") + """The direct link to the file in the repository which stores the + workflow file. + """ + + repository_name = sgqlc.types.Field(sgqlc.types.non_null(URI), graphql_name="repositoryName") + """The repository name and owner which stores the workflow file.""" + + run = sgqlc.types.Field(sgqlc.types.non_null(WorkflowRun), graphql_name="run") + """The parent workflow run execution for this file.""" + + viewer_can_push_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanPushRepository") + """If the viewer has permissions to push to the repository which + stores the workflow. + """ + + viewer_can_read_repository = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="viewerCanReadRepository") + """If the viewer has permissions to read the repository which stores + the workflow. + """ + + +######################################################################## +# Unions +######################################################################## +class Assignee(sgqlc.types.Union): + """Types that can be assigned to issues.""" + + __schema__ = github_schema + __types__ = (Bot, Mannequin, Organization, User) + + +class AuditEntryActor(sgqlc.types.Union): + """Types that can initiate an audit log event.""" + + __schema__ = github_schema + __types__ = (Bot, Organization, User) + + +class BranchActorAllowanceActor(sgqlc.types.Union): + """Types which can be actors for `BranchActorAllowance` objects.""" + + __schema__ = github_schema + __types__ = (App, Team, User) + + +class BypassActor(sgqlc.types.Union): + """Types that can represent a repository ruleset bypass actor.""" + + __schema__ = github_schema + __types__ = (App, Team) + + +class Claimable(sgqlc.types.Union): + """An object which can have its data claimed or claim data from + another. + """ + + __schema__ = github_schema + __types__ = (Mannequin, User) + + +class Closer(sgqlc.types.Union): + """The object which triggered a `ClosedEvent`.""" + + __schema__ = github_schema + __types__ = (Commit, PullRequest) + + +class CreatedIssueOrRestrictedContribution(sgqlc.types.Union): + """Represents either a issue the viewer can access or a restricted + contribution. + """ + + __schema__ = github_schema + __types__ = (CreatedIssueContribution, RestrictedContribution) + + +class CreatedPullRequestOrRestrictedContribution(sgqlc.types.Union): + """Represents either a pull request the viewer can access or a + restricted contribution. + """ + + __schema__ = github_schema + __types__ = (CreatedPullRequestContribution, RestrictedContribution) + + +class CreatedRepositoryOrRestrictedContribution(sgqlc.types.Union): + """Represents either a repository the viewer can access or a + restricted contribution. + """ + + __schema__ = github_schema + __types__ = (CreatedRepositoryContribution, RestrictedContribution) + + +class DeploymentReviewer(sgqlc.types.Union): + """Users and teams.""" + + __schema__ = github_schema + __types__ = (Team, User) + + +class EnterpriseMember(sgqlc.types.Union): + """An object that is a member of an enterprise.""" + + __schema__ = github_schema + __types__ = (EnterpriseUserAccount, User) + + +class IpAllowListOwner(sgqlc.types.Union): + """Types that can own an IP allow list.""" + + __schema__ = github_schema + __types__ = (App, Enterprise, Organization) + + +class IssueOrPullRequest(sgqlc.types.Union): + """Used for return value of Repository.issueOrPullRequest.""" + + __schema__ = github_schema + __types__ = (Issue, PullRequest) + + +class IssueTimelineItem(sgqlc.types.Union): + """An item in an issue timeline""" + + __schema__ = github_schema + __types__ = ( + AssignedEvent, + ClosedEvent, + Commit, + CrossReferencedEvent, + DemilestonedEvent, + IssueComment, + LabeledEvent, + LockedEvent, + MilestonedEvent, + ReferencedEvent, + RenamedTitleEvent, + ReopenedEvent, + SubscribedEvent, + TransferredEvent, + UnassignedEvent, + UnlabeledEvent, + UnlockedEvent, + UnsubscribedEvent, + UserBlockedEvent, + ) + + +class IssueTimelineItems(sgqlc.types.Union): + """An item in an issue timeline""" + + __schema__ = github_schema + __types__ = ( + AddedToProjectEvent, + AssignedEvent, + ClosedEvent, + CommentDeletedEvent, + ConnectedEvent, + ConvertedNoteToIssueEvent, + ConvertedToDiscussionEvent, + CrossReferencedEvent, + DemilestonedEvent, + DisconnectedEvent, + IssueComment, + LabeledEvent, + LockedEvent, + MarkedAsDuplicateEvent, + MentionedEvent, + MilestonedEvent, + MovedColumnsInProjectEvent, + PinnedEvent, + ReferencedEvent, + RemovedFromProjectEvent, + RenamedTitleEvent, + ReopenedEvent, + SubscribedEvent, + TransferredEvent, + UnassignedEvent, + UnlabeledEvent, + UnlockedEvent, + UnmarkedAsDuplicateEvent, + UnpinnedEvent, + UnsubscribedEvent, + UserBlockedEvent, + ) + + +class MilestoneItem(sgqlc.types.Union): + """Types that can be inside a Milestone.""" + + __schema__ = github_schema + __types__ = (Issue, PullRequest) + + +class OrgRestoreMemberAuditEntryMembership(sgqlc.types.Union): + """Types of memberships that can be restored for an Organization + member. + """ + + __schema__ = github_schema + __types__ = ( + OrgRestoreMemberMembershipOrganizationAuditEntryData, + OrgRestoreMemberMembershipRepositoryAuditEntryData, + OrgRestoreMemberMembershipTeamAuditEntryData, + ) + + +class OrganizationAuditEntry(sgqlc.types.Union): + """An audit entry in an organization audit log.""" + + __schema__ = github_schema + __types__ = ( + MembersCanDeleteReposClearAuditEntry, + MembersCanDeleteReposDisableAuditEntry, + MembersCanDeleteReposEnableAuditEntry, + OauthApplicationCreateAuditEntry, + OrgAddBillingManagerAuditEntry, + OrgAddMemberAuditEntry, + OrgBlockUserAuditEntry, + OrgConfigDisableCollaboratorsOnlyAuditEntry, + OrgConfigEnableCollaboratorsOnlyAuditEntry, + OrgCreateAuditEntry, + OrgDisableOauthAppRestrictionsAuditEntry, + OrgDisableSamlAuditEntry, + OrgDisableTwoFactorRequirementAuditEntry, + OrgEnableOauthAppRestrictionsAuditEntry, + OrgEnableSamlAuditEntry, + OrgEnableTwoFactorRequirementAuditEntry, + OrgInviteMemberAuditEntry, + OrgInviteToBusinessAuditEntry, + OrgOauthAppAccessApprovedAuditEntry, + OrgOauthAppAccessDeniedAuditEntry, + OrgOauthAppAccessRequestedAuditEntry, + OrgRemoveBillingManagerAuditEntry, + OrgRemoveMemberAuditEntry, + OrgRemoveOutsideCollaboratorAuditEntry, + OrgRestoreMemberAuditEntry, + OrgUnblockUserAuditEntry, + OrgUpdateDefaultRepositoryPermissionAuditEntry, + OrgUpdateMemberAuditEntry, + OrgUpdateMemberRepositoryCreationPermissionAuditEntry, + OrgUpdateMemberRepositoryInvitationPermissionAuditEntry, + PrivateRepositoryForkingDisableAuditEntry, + PrivateRepositoryForkingEnableAuditEntry, + RepoAccessAuditEntry, + RepoAddMemberAuditEntry, + RepoAddTopicAuditEntry, + RepoArchivedAuditEntry, + RepoChangeMergeSettingAuditEntry, + RepoConfigDisableAnonymousGitAccessAuditEntry, + RepoConfigDisableCollaboratorsOnlyAuditEntry, + RepoConfigDisableContributorsOnlyAuditEntry, + RepoConfigDisableSockpuppetDisallowedAuditEntry, + RepoConfigEnableAnonymousGitAccessAuditEntry, + RepoConfigEnableCollaboratorsOnlyAuditEntry, + RepoConfigEnableContributorsOnlyAuditEntry, + RepoConfigEnableSockpuppetDisallowedAuditEntry, + RepoConfigLockAnonymousGitAccessAuditEntry, + RepoConfigUnlockAnonymousGitAccessAuditEntry, + RepoCreateAuditEntry, + RepoDestroyAuditEntry, + RepoRemoveMemberAuditEntry, + RepoRemoveTopicAuditEntry, + RepositoryVisibilityChangeDisableAuditEntry, + RepositoryVisibilityChangeEnableAuditEntry, + TeamAddMemberAuditEntry, + TeamAddRepositoryAuditEntry, + TeamChangeParentTeamAuditEntry, + TeamRemoveMemberAuditEntry, + TeamRemoveRepositoryAuditEntry, + ) + + +class OrganizationOrUser(sgqlc.types.Union): + """Used for argument of CreateProjectV2 mutation.""" + + __schema__ = github_schema + __types__ = (Organization, User) + + +class PermissionGranter(sgqlc.types.Union): + """Types that can grant permissions on a repository to a user""" + + __schema__ = github_schema + __types__ = (Organization, Repository, Team) + + +class PinnableItem(sgqlc.types.Union): + """Types that can be pinned to a profile page.""" + + __schema__ = github_schema + __types__ = (Gist, Repository) + + +class ProjectCardItem(sgqlc.types.Union): + """Types that can be inside Project Cards.""" + + __schema__ = github_schema + __types__ = (Issue, PullRequest) + + +class ProjectV2Actor(sgqlc.types.Union): + """Possible collaborators for a project.""" + + __schema__ = github_schema + __types__ = (Team, User) + + +class ProjectV2FieldConfiguration(sgqlc.types.Union): + """Configurations for project fields.""" + + __schema__ = github_schema + __types__ = (ProjectV2Field, ProjectV2IterationField, ProjectV2SingleSelectField) + + +class ProjectV2ItemContent(sgqlc.types.Union): + """Types that can be inside Project Items.""" + + __schema__ = github_schema + __types__ = (DraftIssue, Issue, PullRequest) + + +class ProjectV2ItemFieldValue(sgqlc.types.Union): + """Project field values""" + + __schema__ = github_schema + __types__ = ( + ProjectV2ItemFieldDateValue, + ProjectV2ItemFieldIterationValue, + ProjectV2ItemFieldLabelValue, + ProjectV2ItemFieldMilestoneValue, + ProjectV2ItemFieldNumberValue, + ProjectV2ItemFieldPullRequestValue, + ProjectV2ItemFieldRepositoryValue, + ProjectV2ItemFieldReviewerValue, + ProjectV2ItemFieldSingleSelectValue, + ProjectV2ItemFieldTextValue, + ProjectV2ItemFieldUserValue, + ) + + +class PullRequestTimelineItem(sgqlc.types.Union): + """An item in a pull request timeline""" + + __schema__ = github_schema + __types__ = ( + AssignedEvent, + BaseRefDeletedEvent, + BaseRefForcePushedEvent, + ClosedEvent, + Commit, + CommitCommentThread, + CrossReferencedEvent, + DemilestonedEvent, + DeployedEvent, + DeploymentEnvironmentChangedEvent, + HeadRefDeletedEvent, + HeadRefForcePushedEvent, + HeadRefRestoredEvent, + IssueComment, + LabeledEvent, + LockedEvent, + MergedEvent, + MilestonedEvent, + PullRequestReview, + PullRequestReviewComment, + PullRequestReviewThread, + ReferencedEvent, + RenamedTitleEvent, + ReopenedEvent, + ReviewDismissedEvent, + ReviewRequestRemovedEvent, + ReviewRequestedEvent, + SubscribedEvent, + UnassignedEvent, + UnlabeledEvent, + UnlockedEvent, + UnsubscribedEvent, + UserBlockedEvent, + ) + + +class PullRequestTimelineItems(sgqlc.types.Union): + """An item in a pull request timeline""" + + __schema__ = github_schema + __types__ = ( + AddedToMergeQueueEvent, + AddedToProjectEvent, + AssignedEvent, + AutoMergeDisabledEvent, + AutoMergeEnabledEvent, + AutoRebaseEnabledEvent, + AutoSquashEnabledEvent, + AutomaticBaseChangeFailedEvent, + AutomaticBaseChangeSucceededEvent, + BaseRefChangedEvent, + BaseRefDeletedEvent, + BaseRefForcePushedEvent, + ClosedEvent, + CommentDeletedEvent, + ConnectedEvent, + ConvertToDraftEvent, + ConvertedNoteToIssueEvent, + ConvertedToDiscussionEvent, + CrossReferencedEvent, + DemilestonedEvent, + DeployedEvent, + DeploymentEnvironmentChangedEvent, + DisconnectedEvent, + HeadRefDeletedEvent, + HeadRefForcePushedEvent, + HeadRefRestoredEvent, + IssueComment, + LabeledEvent, + LockedEvent, + MarkedAsDuplicateEvent, + MentionedEvent, + MergedEvent, + MilestonedEvent, + MovedColumnsInProjectEvent, + PinnedEvent, + PullRequestCommit, + PullRequestCommitCommentThread, + PullRequestReview, + PullRequestReviewThread, + PullRequestRevisionMarker, + ReadyForReviewEvent, + ReferencedEvent, + RemovedFromMergeQueueEvent, + RemovedFromProjectEvent, + RenamedTitleEvent, + ReopenedEvent, + ReviewDismissedEvent, + ReviewRequestRemovedEvent, + ReviewRequestedEvent, + SubscribedEvent, + TransferredEvent, + UnassignedEvent, + UnlabeledEvent, + UnlockedEvent, + UnmarkedAsDuplicateEvent, + UnpinnedEvent, + UnsubscribedEvent, + UserBlockedEvent, + ) + + +class PushAllowanceActor(sgqlc.types.Union): + """Types that can be an actor.""" + + __schema__ = github_schema + __types__ = (App, Team, User) + + +class Reactor(sgqlc.types.Union): + """Types that can be assigned to reactions.""" + + __schema__ = github_schema + __types__ = (Bot, Mannequin, Organization, User) + + +class ReferencedSubject(sgqlc.types.Union): + """Any referencable object""" + + __schema__ = github_schema + __types__ = (Issue, PullRequest) + + +class RenamedTitleSubject(sgqlc.types.Union): + """An object which has a renamable title""" + + __schema__ = github_schema + __types__ = (Issue, PullRequest) + + +class RequestedReviewer(sgqlc.types.Union): + """Types that can be requested reviewers.""" + + __schema__ = github_schema + __types__ = (Mannequin, Team, User) + + +class ReviewDismissalAllowanceActor(sgqlc.types.Union): + """Types that can be an actor.""" + + __schema__ = github_schema + __types__ = (App, Team, User) + + +class RuleParameters(sgqlc.types.Union): + """Types which can be parameters for `RepositoryRule` objects.""" + + __schema__ = github_schema + __types__ = ( + BranchNamePatternParameters, + CommitAuthorEmailPatternParameters, + CommitMessagePatternParameters, + CommitterEmailPatternParameters, + PullRequestParameters, + RequiredDeploymentsParameters, + RequiredStatusChecksParameters, + TagNamePatternParameters, + UpdateParameters, + ) + + +class RuleSource(sgqlc.types.Union): + """Types which can have `RepositoryRule` objects.""" + + __schema__ = github_schema + __types__ = (Organization, Repository) + + +class SearchResultItem(sgqlc.types.Union): + """The results of a search.""" + + __schema__ = github_schema + __types__ = (App, Discussion, Issue, MarketplaceListing, Organization, PullRequest, Repository, User) + + +class Sponsor(sgqlc.types.Union): + """Entities that can sponsor others via GitHub Sponsors""" + + __schema__ = github_schema + __types__ = (Organization, User) + + +class SponsorableItem(sgqlc.types.Union): + """Entities that can be sponsored via GitHub Sponsors""" + + __schema__ = github_schema + __types__ = (Organization, User) + + +class SponsorsListingFeatureableItem(sgqlc.types.Union): + """A record that can be featured on a GitHub Sponsors profile.""" + + __schema__ = github_schema + __types__ = (Repository, User) + + +class StatusCheckRollupContext(sgqlc.types.Union): + """Types that can be inside a StatusCheckRollup context.""" + + __schema__ = github_schema + __types__ = (CheckRun, StatusContext) + + +class VerifiableDomainOwner(sgqlc.types.Union): + """Types that can own a verifiable domain.""" + + __schema__ = github_schema + __types__ = (Enterprise, Organization) + + +######################################################################## +# Schema Entry Points +######################################################################## +github_schema.query_type = Query +github_schema.mutation_type = Mutation +github_schema.subscription_type = None diff --git a/source-github/source_github/graphql.py b/source-github/source_github/graphql.py new file mode 100644 index 0000000000..603e58f018 --- /dev/null +++ b/source-github/source_github/graphql.py @@ -0,0 +1,327 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +import heapq +import itertools +from typing import Optional + +import sgqlc.operation +from sgqlc.operation import Selector + +from . import github_schema + +_schema = github_schema +_schema_root = _schema.github_schema + + +def select_user_fields(user): + user.__fields__( + id="node_id", + database_id="id", + login=True, + avatar_url="avatar_url", + url="html_url", + is_site_admin="site_admin", + ) + + +def get_query_pull_requests(owner, name, first, after, direction): + kwargs = {"first": first, "order_by": {"field": "UPDATED_AT", "direction": direction}} + if after: + kwargs["after"] = after + + op = sgqlc.operation.Operation(_schema_root.query_type) + repository = op.repository(owner=owner, name=name) + repository.name() + repository.owner.login() + pull_requests = repository.pull_requests(**kwargs) + pull_requests.nodes.__fields__( + id="node_id", + database_id="id", + number=True, + updated_at="updated_at", + changed_files="changed_files", + deletions=True, + additions=True, + merged=True, + mergeable=True, + can_be_rebased="can_be_rebased", + maintainer_can_modify="maintainer_can_modify", + merge_state_status="merge_state_status", + ) + pull_requests.nodes.comments.__fields__(total_count=True) + pull_requests.nodes.commits.__fields__(total_count=True) + reviews = pull_requests.nodes.reviews(first=100, __alias__="review_comments") + reviews.total_count() + reviews.nodes.comments.__fields__(total_count=True) + user = pull_requests.nodes.merged_by(__alias__="merged_by").__as__(_schema_root.User) + select_user_fields(user) + pull_requests.page_info.__fields__(has_next_page=True, end_cursor=True) + return str(op) + + +def get_query_projectsV2(owner, name, first, after, direction): + kwargs = {"first": first, "order_by": {"field": "UPDATED_AT", "direction": direction}} + if after: + kwargs["after"] = after + + op = sgqlc.operation.Operation(_schema_root.query_type) + repository = op.repository(owner=owner, name=name) + repository.name() + repository.owner.login() + projects_v2 = repository.projects_v2(**kwargs) + projects_v2.nodes.__fields__( + closed=True, + created_at="created_at", + closed_at="closed_at", + updated_at="updated_at", + creator="creator", + id="node_id", + database_id="id", + number=True, + public=True, + readme="readme", + short_description="short_description", + template=True, + title="title", + url="url", + viewer_can_close=True, + viewer_can_reopen=True, + viewer_can_update=True, + ) + projects_v2.nodes.owner.__fields__(id="id") + projects_v2.page_info.__fields__(has_next_page=True, end_cursor=True) + return str(op) + + +def get_query_reviews(owner, name, first, after, number=None): + op = sgqlc.operation.Operation(_schema_root.query_type) + repository = op.repository(owner=owner, name=name) + repository.name() + repository.owner.login() + if number: + pull_request = repository.pull_request(number=number) + else: + kwargs = {"first": first, "order_by": {"field": "UPDATED_AT", "direction": "ASC"}} + if after: + kwargs["after"] = after + pull_requests = repository.pull_requests(**kwargs) + pull_requests.page_info.__fields__(has_next_page=True, end_cursor=True) + pull_request = pull_requests.nodes + + pull_request.__fields__(number=True, url=True) + kwargs = {"first": first} + if number and after: + kwargs["after"] = after + reviews = pull_request.reviews(**kwargs) + reviews.page_info.__fields__(has_next_page=True, end_cursor=True) + reviews.nodes.__fields__( + id="node_id", + database_id="id", + body=True, + state=True, + url="html_url", + author_association="author_association", + submitted_at="submitted_at", + created_at="created_at", + updated_at="updated_at", + ) + reviews.nodes.commit.oid() + user = reviews.nodes.author(__alias__="user").__as__(_schema_root.User) + select_user_fields(user) + return str(op) + + +def get_query_issue_reactions(owner, name, first, after, number=None): + op = sgqlc.operation.Operation(_schema_root.query_type) + repository = op.repository(owner=owner, name=name) + repository.name() + repository.owner.login() + if number: + issue = repository.issue(number=number) + else: + kwargs = {"first": first} + if after: + kwargs["after"] = after + issues = repository.issues(**kwargs) + issues.page_info.__fields__(has_next_page=True, end_cursor=True) + issue = issues.nodes + + issue.__fields__(number=True) + kwargs = {"first": first} + if number and after: + kwargs["after"] = after + reactions = issue.reactions(**kwargs) + reactions.page_info.__fields__(has_next_page=True, end_cursor=True) + reactions.nodes.__fields__( + id="node_id", + database_id="id", + content=True, + created_at="created_at", + ) + select_user_fields(reactions.nodes.user()) + return str(op) + + +class QueryReactions: + + # AVERAGE_REVIEWS - optimal number of reviews to fetch inside every pull request. + # If we try to fetch too many (up to 100) we will spend too many scores of query cost. + # https://docs.github.com/en/graphql/overview/resource-limitations#calculating-a-rate-limit-score-before-running-the-call + # If we query too low we would need to make additional sub-queries to fetch the rest of the reviews inside specific pull request. + AVERAGE_REVIEWS = 5 + AVERAGE_COMMENTS = 2 + AVERAGE_REACTIONS = 2 + + def get_query_root_repository(self, owner: str, name: str, first: int, after: Optional[str] = None): + """ + Get GraphQL query which allows fetching reactions starting from the repository: + query { + repository { + pull_requests(first: page_size) { + reviews(first: AVERAGE_REVIEWS) { + comments(first: AVERAGE_COMMENTS) { + reactions(first: AVERAGE_REACTIONS) { + } + } + } + } + } + } + """ + op = self._get_operation() + repository = op.repository(owner=owner, name=name) + repository.name() + repository.owner.login() + + kwargs = {"first": first} + if after: + kwargs["after"] = after + pull_requests = repository.pull_requests(**kwargs) + pull_requests.page_info.__fields__(has_next_page=True, end_cursor=True) + pull_requests.total_count() + pull_requests.nodes.id(__alias__="node_id") + + reviews = self._select_reviews(pull_requests.nodes, first=self.AVERAGE_REVIEWS) + comments = self._select_comments(reviews.nodes, first=self.AVERAGE_COMMENTS) + self._select_reactions(comments.nodes, first=self.AVERAGE_REACTIONS) + return str(op) + + def get_query_root_pull_request(self, node_id: str, first: int, after: str): + """ + Get GraphQL query which allows fetching reactions starting from the pull_request: + query { + pull_request { + reviews(first: AVERAGE_REVIEWS) { + comments(first: AVERAGE_COMMENTS) { + reactions(first: AVERAGE_REACTIONS) { + } + } + } + } + } + """ + op = self._get_operation() + pull_request = op.node(id=node_id).__as__(_schema_root.PullRequest) + pull_request.id(__alias__="node_id") + pull_request.repository.name() + pull_request.repository.owner.login() + + reviews = self._select_reviews(pull_request, first, after) + comments = self._select_comments(reviews.nodes, first=self.AVERAGE_COMMENTS) + self._select_reactions(comments.nodes, first=self.AVERAGE_REACTIONS) + return str(op) + + def get_query_root_review(self, node_id: str, first: int, after: str): + """ + Get GraphQL query which allows fetching reactions starting from the review: + query { + review { + comments(first: AVERAGE_COMMENTS) { + reactions(first: AVERAGE_REACTIONS) { + } + } + } + } + """ + op = self._get_operation() + review = op.node(id=node_id).__as__(_schema_root.PullRequestReview) + review.id(__alias__="node_id") + review.repository.name() + review.repository.owner.login() + + comments = self._select_comments(review, first, after) + self._select_reactions(comments.nodes, first=self.AVERAGE_REACTIONS) + return str(op) + + def get_query_root_comment(self, node_id: str, first: int, after: str): + """ + Get GraphQL query which allows fetching reactions starting from the comment: + query { + comment { + reactions(first: AVERAGE_REACTIONS) { + } + } + } + """ + op = self._get_operation() + comment = op.node(id=node_id).__as__(_schema_root.PullRequestReviewComment) + comment.id(__alias__="node_id") + comment.database_id(__alias__="id") + comment.repository.name() + comment.repository.owner.login() + self._select_reactions(comment, first, after) + return str(op) + + def _select_reactions(self, comment: Selector, first: int, after: Optional[str] = None): + kwargs = {"first": first} + if after: + kwargs["after"] = after + reactions = comment.reactions(**kwargs) + reactions.page_info.__fields__(has_next_page=True, end_cursor=True) + reactions.total_count() + reactions.nodes.__fields__(id="node_id", database_id="id", content=True, created_at="created_at") + select_user_fields(reactions.nodes.user()) + return reactions + + def _select_comments(self, review: Selector, first: int, after: Optional[str] = None): + kwargs = {"first": first} + if after: + kwargs["after"] = after + comments = review.comments(**kwargs) + comments.page_info.__fields__(has_next_page=True, end_cursor=True) + comments.total_count() + comments.nodes.id(__alias__="node_id") + comments.nodes.database_id(__alias__="id") + return comments + + def _select_reviews(self, pull_request: Selector, first: int, after: Optional[str] = None): + kwargs = {"first": first} + if after: + kwargs["after"] = after + reviews = pull_request.reviews(**kwargs) + reviews.page_info.__fields__(has_next_page=True, end_cursor=True) + reviews.total_count() + reviews.nodes.id(__alias__="node_id") + reviews.nodes.database_id(__alias__="id") + return reviews + + def _get_operation(self): + return sgqlc.operation.Operation(_schema_root.query_type) + + +class CursorStorage: + def __init__(self, typenames): + self.typename_to_prio = {o: prio for prio, o in enumerate(reversed(typenames))} + self.count = itertools.count() + self.storage = [] + + def add_cursor(self, typename, cursor, total_count, parent_id=None): + priority = self.typename_to_prio[typename] + heapq.heappush(self.storage, (priority, next(self.count), (typename, cursor, total_count, parent_id))) + + def get_cursor(self): + if self.storage: + _, _, c = heapq.heappop(self.storage) + return {"typename": c[0], "cursor": c[1], "total_count": c[2], "parent_id": c[3]} diff --git a/source-github/source_github/run.py b/source-github/source_github/run.py new file mode 100644 index 0000000000..3abce97248 --- /dev/null +++ b/source-github/source_github/run.py @@ -0,0 +1,17 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_github import SourceGithub +from source_github.config_migrations import MigrateBranch, MigrateRepository + + +def run(): + source = SourceGithub() + MigrateRepository.migrate(sys.argv[1:], source) + MigrateBranch.migrate(sys.argv[1:], source) + launch(source, sys.argv[1:]) diff --git a/source-github/source_github/schemas/assignees.json b/source-github/source_github/schemas/assignees.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/assignees.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/branches.json b/source-github/source_github/schemas/branches.json new file mode 100644 index 0000000000..689bb4bf06 --- /dev/null +++ b/source-github/source_github/schemas/branches.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["name"], + "properties": { + "name": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/collaborators.json b/source-github/source_github/schemas/collaborators.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/collaborators.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/comments.json b/source-github/source_github/schemas/comments.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/comments.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/commit_comment_reactions.json b/source-github/source_github/schemas/commit_comment_reactions.json new file mode 100644 index 0000000000..a96980cf23 --- /dev/null +++ b/source-github/source_github/schemas/commit_comment_reactions.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "$ref": "reaction.json" +} diff --git a/source-github/source_github/schemas/commit_comments.json b/source-github/source_github/schemas/commit_comments.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/commit_comments.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/commits.json b/source-github/source_github/schemas/commits.json new file mode 100644 index 0000000000..a960f9106f --- /dev/null +++ b/source-github/source_github/schemas/commits.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["sha"], + "properties": { + "sha": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/contributor_activity.json b/source-github/source_github/schemas/contributor_activity.json new file mode 100644 index 0000000000..961f63be53 --- /dev/null +++ b/source-github/source_github/schemas/contributor_activity.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "title": "Contributor Activity", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/deployments.json b/source-github/source_github/schemas/deployments.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/deployments.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/events.json b/source-github/source_github/schemas/events.json new file mode 100644 index 0000000000..0ed15ed714 --- /dev/null +++ b/source-github/source_github/schemas/events.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/issue_comment_reactions.json b/source-github/source_github/schemas/issue_comment_reactions.json new file mode 100644 index 0000000000..a96980cf23 --- /dev/null +++ b/source-github/source_github/schemas/issue_comment_reactions.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "$ref": "reaction.json" +} diff --git a/source-github/source_github/schemas/issue_events.json b/source-github/source_github/schemas/issue_events.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/issue_events.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/issue_labels.json b/source-github/source_github/schemas/issue_labels.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/issue_labels.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/issue_milestones.json b/source-github/source_github/schemas/issue_milestones.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/issue_milestones.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/issue_reactions.json b/source-github/source_github/schemas/issue_reactions.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/issue_reactions.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/issue_timeline_events.json b/source-github/source_github/schemas/issue_timeline_events.json new file mode 100644 index 0000000000..16371e223b --- /dev/null +++ b/source-github/source_github/schemas/issue_timeline_events.json @@ -0,0 +1,11 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["issue_number"], + "additionalProperties": true, + "properties": { + "issue_number": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/issues.json b/source-github/source_github/schemas/issues.json new file mode 100644 index 0000000000..7e3001581e --- /dev/null +++ b/source-github/source_github/schemas/issues.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "additionalProperties": true, + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/organizations.json b/source-github/source_github/schemas/organizations.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/organizations.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/project_cards.json b/source-github/source_github/schemas/project_cards.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/project_cards.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/project_columns.json b/source-github/source_github/schemas/project_columns.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/project_columns.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/projects.json b/source-github/source_github/schemas/projects.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/projects.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/projects_v2.json b/source-github/source_github/schemas/projects_v2.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/projects_v2.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/pull_request_comment_reactions.json b/source-github/source_github/schemas/pull_request_comment_reactions.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/pull_request_comment_reactions.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/pull_request_commits.json b/source-github/source_github/schemas/pull_request_commits.json new file mode 100644 index 0000000000..a960f9106f --- /dev/null +++ b/source-github/source_github/schemas/pull_request_commits.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["sha"], + "properties": { + "sha": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/pull_request_stats.json b/source-github/source_github/schemas/pull_request_stats.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/pull_request_stats.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/pull_requests.json b/source-github/source_github/schemas/pull_requests.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/pull_requests.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/releases.json b/source-github/source_github/schemas/releases.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/releases.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/repositories.json b/source-github/source_github/schemas/repositories.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/repositories.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/review_comments.json b/source-github/source_github/schemas/review_comments.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/review_comments.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/reviews.json b/source-github/source_github/schemas/reviews.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/reviews.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/shared/definitions.json b/source-github/source_github/schemas/shared/definitions.json new file mode 100644 index 0000000000..a0029f5284 --- /dev/null +++ b/source-github/source_github/schemas/shared/definitions.json @@ -0,0 +1,254 @@ +{ + "id": { + "type": "integer" + }, + "node_id": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + }, + "actor": { + "title": "Simple User", + "description": "A GitHub user.", + "type": ["null", "object"], + "properties": { + "name": { + "type": ["string", "null"] + }, + "email": { + "type": ["string", "null"] + }, + "login": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": ["string", "null"] + }, + "url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "followers_url": { + "type": "string" + }, + "following_url": { + "type": "string" + }, + "gists_url": { + "type": "string" + }, + "starred_url": { + "type": "string" + }, + "subscriptions_url": { + "type": "string" + }, + "organizations_url": { + "type": "string" + }, + "repos_url": { + "type": "string" + }, + "events_url": { + "type": "string" + }, + "received_events_url": { + "type": "string" + }, + "type": { + "type": "string" + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "format": "date-time" + } + } + }, + "event": { + "type": ["null", "string"] + }, + "commit_id": { + "type": ["string", "null"] + }, + "commit_url": { + "type": ["string", "null"] + }, + "created_at": { + "type": ["null", "string"], + "format": "date-time" + }, + "performed_via_github_app": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "slug": { + "type": "string" + }, + "node_id": { + "type": "string" + }, + "owner": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "name": { + "type": ["string", "null"] + }, + "email": { + "type": ["string", "null"] + }, + "login": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": ["string", "null"] + }, + "url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "followers_url": { + "type": "string" + }, + "following_url": { + "type": "string" + }, + "gists_url": { + "type": "string" + }, + "starred_url": { + "type": "string" + }, + "subscriptions_url": { + "type": "string" + }, + "organizations_url": { + "type": "string" + }, + "repos_url": { + "type": "string" + }, + "events_url": { + "type": "string" + }, + "received_events_url": { + "type": "string" + }, + "type": { + "type": "string" + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "format": "date-time" + } + } + } + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": ["string", "null"] + }, + "external_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "permissions": { + "type": "object", + "properties": { + "issues": { + "type": "string" + }, + "checks": { + "type": "string" + }, + "metadata": { + "type": "string" + }, + "contents": { + "type": "string" + }, + "deployments": { + "type": "string" + } + }, + "additionalProperties": true + }, + "events": { + "type": "array", + "items": { + "type": "string" + } + }, + "installations_count": { + "type": "integer" + }, + "client_id": { + "type": "string" + }, + "client_secret": { + "type": "string" + }, + "webhook_secret": { + "type": ["string", "null"] + }, + "pem": { + "type": "string" + } + } + } + ] + } +} diff --git a/source-github/source_github/schemas/shared/events/comment.json b/source-github/source_github/schemas/shared/events/comment.json new file mode 100644 index 0000000000..f3555b3b2a --- /dev/null +++ b/source-github/source_github/schemas/shared/events/comment.json @@ -0,0 +1,188 @@ +{ + "title": "Timeline Comment Event", + "description": "Timeline Comment Event", + "type": "object", + "properties": { + "event": { "type": "string" }, + "actor": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + }, + "id": { + "description": "Unique identifier of the issue comment", + "type": "integer" + }, + "node_id": { "type": "string" }, + "url": { "description": "URL for the issue comment", "type": "string" }, + "body": { + "description": "Contents of the issue comment", + "type": "string" + }, + "body_text": { "type": "string" }, + "body_html": { "type": "string" }, + "html_url": { "type": "string" }, + "user": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "issue_url": { "type": "string" }, + "author_association": { "type": "string" }, + "performed_via_github_app": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "GitHub app", + "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the GitHub app", + "type": "integer" + }, + "slug": { + "description": "The slug name of the GitHub app", + "type": "string" + }, + "node_id": { "type": "string" }, + "owner": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + } + ] + }, + "name": { + "description": "The name of the GitHub app", + "type": "string" + }, + "description": { "type": ["string", "null"] }, + "external_url": { "type": "string" }, + "html_url": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "permissions": { + "description": "The set of permissions for the GitHub app", + "type": "object", + "properties": { + "issues": { "type": "string" }, + "checks": { "type": "string" }, + "metadata": { "type": "string" }, + "contents": { "type": "string" }, + "deployments": { "type": "string" } + } + }, + "events": { + "description": "The list of events for the GitHub app", + "type": "array", + "items": { "type": "string" } + }, + "installations_count": { + "description": "The number of installations associated with the GitHub app", + "type": "integer" + }, + "client_id": { "type": "string" }, + "client_secret": { "type": "string" }, + "webhook_secret": { "type": ["string", "null"] }, + "pem": { "type": "string" } + } + } + ] + }, + "reactions": { + "title": "Reaction Rollup", + "type": "object", + "properties": { + "url": { "type": "string" }, + "total_count": { "type": "integer" }, + "+1": { "type": "integer" }, + "-1": { "type": "integer" }, + "laugh": { "type": "integer" }, + "confused": { "type": "integer" }, + "heart": { "type": "integer" }, + "hooray": { "type": "integer" }, + "eyes": { "type": "integer" }, + "rocket": { "type": "integer" } + } + } + } +} diff --git a/source-github/source_github/schemas/shared/events/commented.json b/source-github/source_github/schemas/shared/events/commented.json new file mode 100644 index 0000000000..671f979a92 --- /dev/null +++ b/source-github/source_github/schemas/shared/events/commented.json @@ -0,0 +1,118 @@ +{ + "title": "Timeline Line Commented Event", + "description": "Timeline Line Commented Event", + "type": "object", + "properties": { + "event": { "type": "string" }, + "node_id": { "type": "string" }, + "comments": { + "type": "array", + "items": { + "title": "Pull Request Review Comment", + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "pull_request_review_id": { + "type": ["integer", "null"] + }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "diff_hunk": { "type": "string" }, + "path": { "type": "string" }, + "position": { "type": "integer" }, + "original_position": { "type": "integer" }, + "commit_id": { "type": "string" }, + "original_commit_id": { "type": "string" }, + "in_reply_to_id": { "type": "integer" }, + "user": { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + }, + "body": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "html_url": { "type": "string" }, + "pull_request_url": { "type": "string" }, + "author_association": { "type": "string" }, + "_links": { + "type": "object", + "properties": { + "self": { + "type": "object", + "properties": { + "href": { "type": "string" } + } + }, + "html": { + "type": "object", + "properties": { + "href": { "type": "string" } + } + }, + "pull_request": { + "type": "object", + "properties": { + "href": { "type": "string" } + } + } + } + }, + "start_line": { + "type": ["integer", "null"] + }, + "original_start_line": { + "type": ["integer", "null"] + }, + "start_side": { + "type": ["string", "null"] + }, + "line": { "type": "integer" }, + "original_line": { "type": "integer" }, + "side": { "type": "string" }, + "subject_type": { "type": "string" }, + "reactions": { + "type": "object", + "properties": { + "url": { "type": "string" }, + "total_count": { "type": "integer" }, + "+1": { "type": "integer" }, + "-1": { "type": "integer" }, + "laugh": { "type": "integer" }, + "confused": { "type": "integer" }, + "heart": { "type": "integer" }, + "hooray": { "type": "integer" }, + "eyes": { "type": "integer" }, + "rocket": { "type": "integer" } + } + }, + "body_html": { "type": "string" }, + "body_text": { "type": "string" } + } + } + } + } +} diff --git a/source-github/source_github/schemas/shared/events/committed.json b/source-github/source_github/schemas/shared/events/committed.json new file mode 100644 index 0000000000..2cbcd16fb1 --- /dev/null +++ b/source-github/source_github/schemas/shared/events/committed.json @@ -0,0 +1,56 @@ +{ + "title": "Timeline Committed Event", + "description": "Timeline Committed Event", + "type": "object", + "properties": { + "event": { "type": "string" }, + "sha": { "type": "string" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "author": { + "type": "object", + "properties": { + "date": { "format": "date-time", "type": "string" }, + "email": { "type": "string" }, + "name": { "type": "string" } + } + }, + "committer": { + "type": "object", + "properties": { + "date": { "format": "date-time", "type": "string" }, + "email": { "type": "string" }, + "name": { "type": "string" } + } + }, + "message": { "type": "string" }, + "tree": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "url": { "type": "string" } + } + }, + "parents": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" } + } + } + }, + "verification": { + "type": "object", + "properties": { + "verified": { "type": "boolean" }, + "reason": { "type": "string" }, + "signature": { "type": ["string", "null"] }, + "payload": { "type": ["string", "null"] } + } + }, + "html_url": { "type": "string" } + } +} diff --git a/source-github/source_github/schemas/shared/events/cross_referenced.json b/source-github/source_github/schemas/shared/events/cross_referenced.json new file mode 100644 index 0000000000..e3c4403ca9 --- /dev/null +++ b/source-github/source_github/schemas/shared/events/cross_referenced.json @@ -0,0 +1,822 @@ +{ + "title": "Timeline Cross Referenced Event", + "description": "Timeline Cross Referenced Event", + "type": "object", + "properties": { + "event": { "type": "string" }, + "actor": { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "source": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "issue": { + "title": "Issue", + "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + "type": "object", + "properties": { + "author_association": { "type": ["string", "null"] }, + "performed_via_github_app": { "type": ["object", "null"] }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "repository_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "events_url": { "type": "string" }, + "html_url": { "type": "string" }, + "number": { "type": "integer" }, + "state": { "type": "string" }, + "state_reason": { "type": ["string", "null"] }, + "title": { "type": "string" }, + "body": { "type": ["string", "null"] }, + "user": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + } + ] + }, + "labels": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": ["string", "null"] }, + "color": { "type": ["string", "null"] }, + "default": { "type": "boolean" } + } + } + ] + } + }, + "assignee": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + } + ] + }, + "assignees": { + "type": ["array", "null"], + "items": { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { "type": "string", "format": "date-time" } + } + } + }, + "milestone": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "number": { "type": "integer" }, + "state": { "type": "string" }, + "title": { "type": "string" }, + "description": { "type": ["string", "null"] }, + "creator": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { + "type": "string", + "format": "date-time" + } + } + } + ] + }, + "open_issues": { "type": "integer" }, + "closed_issues": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "closed_at": { + "type": ["string", "null"], + "format": "date-time" + }, + "due_on": { + "type": ["string", "null"], + "format": "date-time" + } + } + } + ] + }, + "locked": { "type": "boolean" }, + "active_lock_reason": { "type": ["string", "null"] }, + "comments": { "type": "integer" }, + "draft": { "type": ["boolean", "null"] }, + "pull_request": { + "type": "object", + "properties": { + "merged_at": { + "type": ["string", "null"], + "format": "date-time" + }, + "diff_url": { "type": ["string", "null"] }, + "html_url": { "type": ["string", "null"] }, + "patch_url": { "type": ["string", "null"] }, + "url": { "type": ["string", "null"] } + } + }, + "closed_at": { "type": ["string", "null"], "format": "date-time" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "draft": { "type": "boolean" }, + "closed_by": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string", "examples": ["octocat"] }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + } + ] + }, + "body_html": { "type": "string" }, + "body_text": { "type": "string" }, + "timeline_url": { "type": "string" }, + "repository": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { "type": "string" }, + "full_name": { "type": "string" }, + "license": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "key": { "type": "string" }, + "name": { "type": "string" }, + "url": { "type": ["string", "null"] }, + "spdx_id": { "type": ["string", "null"] }, + "node_id": { "type": "string" }, + "html_url": { "type": "string" } + } + } + ] + }, + "organization": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { + "type": "string", + "format": "date-time" + } + } + } + ] + }, + "forks": { "type": "integer" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "pull": { "type": "boolean" }, + "triage": { "type": "boolean" }, + "push": { "type": "boolean" }, + "maintain": { "type": "boolean" } + } + }, + "owner": { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { "type": "string", "format": "date-time" } + } + }, + "private": { "type": "boolean" }, + "html_url": { "type": "string" }, + "description": { "type": ["string", "null"] }, + "fork": { "type": "boolean" }, + "url": { "type": "string" }, + "archive_url": { "type": "string" }, + "assignees_url": { "type": "string" }, + "blobs_url": { "type": "string" }, + "branches_url": { "type": "string" }, + "collaborators_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "commits_url": { "type": "string" }, + "compare_url": { "type": "string" }, + "contents_url": { "type": "string" }, + "contributors_url": { "type": "string" }, + "deployments_url": { "type": "string" }, + "downloads_url": { "type": "string" }, + "events_url": { "type": "string" }, + "forks_url": { "type": "string" }, + "git_commits_url": { "type": "string" }, + "git_refs_url": { "type": "string" }, + "git_tags_url": { "type": "string" }, + "git_url": { "type": "string" }, + "issue_comment_url": { "type": "string" }, + "issue_events_url": { "type": "string" }, + "issues_url": { "type": "string" }, + "keys_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "languages_url": { "type": "string" }, + "merges_url": { "type": "string" }, + "milestones_url": { "type": "string" }, + "notifications_url": { "type": "string" }, + "pulls_url": { "type": "string" }, + "releases_url": { "type": "string" }, + "ssh_url": { "type": "string" }, + "stargazers_url": { "type": "string" }, + "statuses_url": { "type": "string" }, + "subscribers_url": { "type": "string" }, + "subscription_url": { "type": "string" }, + "tags_url": { "type": "string" }, + "teams_url": { "type": "string" }, + "trees_url": { "type": "string" }, + "clone_url": { "type": "string" }, + "mirror_url": { "type": ["string", "null"] }, + "hooks_url": { "type": "string" }, + "svn_url": { "type": "string" }, + "homepage": { "type": ["string", "null"] }, + "language": { "type": ["string", "null"] }, + "forks_count": { "type": "integer" }, + "stargazers_count": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "size": { "type": "integer" }, + "default_branch": { "type": "string" }, + "open_issues_count": { "type": "integer" }, + "is_template": { "type": "boolean" }, + "topics": { + "type": "array", + "items": { "type": "string" } + }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "has_downloads": { "type": "boolean" }, + "has_discussions": { "type": "boolean" }, + "archived": { "type": "boolean" }, + "disabled": { "type": "boolean" }, + "visibility": { "type": "string" }, + "pushed_at": { + "type": ["string", "null"], + "format": "date-time" + }, + "created_at": { + "type": ["string", "null"], + "format": "date-time" + }, + "updated_at": { + "type": ["string", "null"], + "format": "date-time" + }, + "allow_rebase_merge": { "type": "boolean" }, + "template_repository": { + "type": ["object", "null"], + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { "type": "string" }, + "full_name": { "type": "string" }, + "owner": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" } + } + }, + "private": { "type": "boolean" }, + "html_url": { "type": "string" }, + "description": { "type": "string" }, + "fork": { "type": "boolean" }, + "url": { "type": "string" }, + "archive_url": { "type": "string" }, + "assignees_url": { "type": "string" }, + "blobs_url": { "type": "string" }, + "branches_url": { "type": "string" }, + "collaborators_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "commits_url": { "type": "string" }, + "compare_url": { "type": "string" }, + "contents_url": { "type": "string" }, + "contributors_url": { "type": "string" }, + "deployments_url": { "type": "string" }, + "downloads_url": { "type": "string" }, + "events_url": { "type": "string" }, + "forks_url": { "type": "string" }, + "git_commits_url": { "type": "string" }, + "git_refs_url": { "type": "string" }, + "git_tags_url": { "type": "string" }, + "git_url": { "type": "string" }, + "issue_comment_url": { "type": "string" }, + "issue_events_url": { "type": "string" }, + "issues_url": { "type": "string" }, + "keys_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "languages_url": { "type": "string" }, + "merges_url": { "type": "string" }, + "milestones_url": { "type": "string" }, + "notifications_url": { "type": "string" }, + "pulls_url": { "type": "string" }, + "releases_url": { "type": "string" }, + "ssh_url": { "type": "string" }, + "stargazers_url": { "type": "string" }, + "statuses_url": { "type": "string" }, + "subscribers_url": { "type": "string" }, + "subscription_url": { "type": "string" }, + "tags_url": { "type": "string" }, + "teams_url": { "type": "string" }, + "trees_url": { "type": "string" }, + "clone_url": { "type": "string" }, + "mirror_url": { "type": "string" }, + "hooks_url": { "type": "string" }, + "svn_url": { "type": "string" }, + "homepage": { "type": "string" }, + "language": { "type": "string" }, + "forks_count": { "type": "integer" }, + "stargazers_count": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "size": { "type": "integer" }, + "default_branch": { "type": "string" }, + "open_issues_count": { "type": "integer" }, + "is_template": { "type": "boolean" }, + "topics": { + "type": "array", + "items": { "type": "string" } + }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "has_downloads": { "type": "boolean" }, + "archived": { "type": "boolean" }, + "disabled": { "type": "boolean" }, + "visibility": { "type": "string" }, + "pushed_at": { "type": "string", "format": "date-time" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "maintain": { "type": "boolean" }, + "push": { "type": "boolean" }, + "triage": { "type": "boolean" }, + "pull": { "type": "boolean" } + } + }, + "allow_rebase_merge": { "type": "boolean" }, + "temp_clone_token": { "type": "string" }, + "allow_squash_merge": { "type": "boolean" }, + "allow_auto_merge": { "type": "boolean" }, + "delete_branch_on_merge": { "type": "boolean" }, + "allow_update_branch": { "type": "boolean" }, + "use_squash_pr_title_as_default": { "type": "boolean" }, + "squash_merge_commit_title": { "type": "string" }, + "squash_merge_commit_message": { "type": "string" }, + "merge_commit_title": { "type": "string" }, + "merge_commit_message": { "type": "string" }, + "allow_merge_commit": { "type": "boolean" }, + "subscribers_count": { "type": "integer" }, + "network_count": { "type": "integer" } + } + }, + "temp_clone_token": { "type": "string" }, + "allow_squash_merge": { "type": "boolean" }, + "allow_auto_merge": { "type": "boolean" }, + "delete_branch_on_merge": { "type": "boolean" }, + "allow_update_branch": { "type": "boolean" }, + "use_squash_pr_title_as_default": { "type": "boolean" }, + "squash_merge_commit_title": { "type": "string" }, + "squash_merge_commit_message": { "type": "string" }, + "merge_commit_title": { "type": "string" }, + "merge_commit_message": { "type": "string" }, + "allow_merge_commit": { "type": "boolean" }, + "allow_forking": { "type": "boolean" }, + "web_commit_signoff_required": { "type": "boolean" }, + "subscribers_count": { "type": "integer" }, + "network_count": { "type": "integer" }, + "open_issues": { "type": "integer" }, + "watchers": { "type": "integer" }, + "master_branch": { "type": "string" }, + "starred_at": { "type": "string", "format": "date-time" }, + "anonymous_access_enabled": { "type": "boolean" } + }, + "performed_via_github_app": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "slug": { "type": "string" }, + "node_id": { "type": "string" }, + "owner": { + "anyOf": [ + { + "type": "null" + }, + { + "type": "object", + "properties": { + "name": { "type": ["string", "null"] }, + "email": { "type": ["string", "null"] }, + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": ["string", "null"] }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "starred_at": { + "type": "string", + "format": "date-time" + } + } + } + ] + }, + "name": { "type": "string" }, + "description": { "type": ["string", "null"] }, + "external_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "permissions": { + "type": "object", + "properties": { + "issues": { + "type": "string" + }, + "checks": { + "type": "string" + }, + "metadata": { + "type": "string" + }, + "contents": { + "type": "string" + }, + "deployments": { + "type": "string" + } + }, + "additionalProperties": true + }, + "events": { + "type": "array", + "items": { + "type": "string" + }, + "examples": ["label", "deployment"] + }, + "installations_count": { + "type": "integer", + "examples": [5] + }, + "client_id": { + "type": "string" + }, + "client_secret": { + "type": "string" + }, + "webhook_secret": { + "type": ["string", "null"] + }, + "pem": { + "type": "string" + } + } + } + ] + }, + "author_association": { + "type": "string" + }, + "reactions": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "total_count": { + "type": "integer" + }, + "+1": { + "type": "integer" + }, + "-1": { + "type": "integer" + }, + "laugh": { + "type": "integer" + }, + "confused": { + "type": "integer" + }, + "heart": { + "type": "integer" + }, + "hooray": { + "type": "integer" + }, + "eyes": { + "type": "integer" + }, + "rocket": { + "type": "integer" + } + } + } + }, + "reactions": { + "type": "object", + "properties": { + "url": { + "type": "string" + }, + "total_count": { + "type": "integer" + }, + "+1": { + "type": "integer" + }, + "-1": { + "type": "integer" + }, + "laugh": { + "type": "integer" + }, + "confused": { + "type": "integer" + }, + "heart": { + "type": "integer" + }, + "hooray": { + "type": "integer" + }, + "eyes": { + "type": "integer" + }, + "rocket": { + "type": "integer" + } + } + } + } + } + } + } + } +} diff --git a/source-github/source_github/schemas/shared/events/reviewed.json b/source-github/source_github/schemas/shared/events/reviewed.json new file mode 100644 index 0000000000..50fc00c053 --- /dev/null +++ b/source-github/source_github/schemas/shared/events/reviewed.json @@ -0,0 +1,139 @@ +{ + "title": "Timeline Reviewed Event", + "description": "Timeline Reviewed Event", + "type": "object", + "properties": { + "event": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "user": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": ["string", "null"] + }, + "email": { + "type": ["string", "null"] + }, + "login": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": ["string", "null"] + }, + "url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "followers_url": { + "type": "string" + }, + "following_url": { + "type": "string" + }, + "gists_url": { + "type": "string" + }, + "starred_url": { + "type": "string" + }, + "subscriptions_url": { + "type": "string" + }, + "organizations_url": { + "type": "string" + }, + "repos_url": { + "type": "string" + }, + "events_url": { + "type": "string" + }, + "received_events_url": { + "type": "string" + }, + "type": { + "type": "string" + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "format": "date-time" + } + } + }, + "body": { + "type": ["string", "null"] + }, + "state": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "pull_request_url": { + "type": "string" + }, + "_links": { + "type": "object", + "properties": { + "html": { + "type": "object", + "properties": { + "href": { + "type": "string" + } + }, + "required": ["href"] + }, + "pull_request": { + "type": "object", + "properties": { + "href": { + "type": "string" + } + }, + "required": ["href"] + } + }, + "required": ["html", "pull_request"] + }, + "submitted_at": { + "type": "string", + "format": "date-time" + }, + "commit_id": { + "type": "string" + }, + "body_html": { + "type": "string" + }, + "body_text": { + "type": "string" + }, + "author_association": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/shared/reaction.json b/source-github/source_github/schemas/shared/reaction.json new file mode 100644 index 0000000000..5757f119f6 --- /dev/null +++ b/source-github/source_github/schemas/shared/reaction.json @@ -0,0 +1,9 @@ +{ + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/shared/reactions.json b/source-github/source_github/schemas/shared/reactions.json new file mode 100644 index 0000000000..1986c5c4ce --- /dev/null +++ b/source-github/source_github/schemas/shared/reactions.json @@ -0,0 +1,35 @@ +{ + "type": "object", + "properties": { + "url": { + "type": ["null", "string"] + }, + "total_count": { + "type": ["null", "integer"] + }, + "+1": { + "type": ["null", "integer"] + }, + "-1": { + "type": ["null", "integer"] + }, + "laugh": { + "type": ["null", "integer"] + }, + "hooray": { + "type": ["null", "integer"] + }, + "confused": { + "type": ["null", "integer"] + }, + "heart": { + "type": ["null", "integer"] + }, + "rocket": { + "type": ["null", "integer"] + }, + "eyes": { + "type": ["null", "integer"] + } + } +} diff --git a/source-github/source_github/schemas/shared/user.json b/source-github/source_github/schemas/shared/user.json new file mode 100644 index 0000000000..5da9f9c6fe --- /dev/null +++ b/source-github/source_github/schemas/shared/user.json @@ -0,0 +1,59 @@ +{ + "type": "object", + "properties": { + "login": { + "type": ["null", "string"] + }, + "id": { + "type": "integer" + }, + "node_id": { + "type": ["null", "string"] + }, + "avatar_url": { + "type": ["null", "string"] + }, + "gravatar_id": { + "type": ["null", "string"] + }, + "url": { + "type": ["null", "string"] + }, + "html_url": { + "type": ["null", "string"] + }, + "followers_url": { + "type": ["null", "string"] + }, + "following_url": { + "type": ["null", "string"] + }, + "gists_url": { + "type": ["null", "string"] + }, + "starred_url": { + "type": ["null", "string"] + }, + "subscriptions_url": { + "type": ["null", "string"] + }, + "organizations_url": { + "type": ["null", "string"] + }, + "repos_url": { + "type": ["null", "string"] + }, + "events_url": { + "type": ["null", "string"] + }, + "received_events_url": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "site_admin": { + "type": ["null", "boolean"] + } + } +} diff --git a/source-github/source_github/schemas/shared/user_graphql.json b/source-github/source_github/schemas/shared/user_graphql.json new file mode 100644 index 0000000000..ba4cf737d7 --- /dev/null +++ b/source-github/source_github/schemas/shared/user_graphql.json @@ -0,0 +1,26 @@ +{ + "type": "object", + "properties": { + "login": { + "type": ["null", "string"] + }, + "id": { + "type": "integer" + }, + "node_id": { + "type": ["null", "string"] + }, + "avatar_url": { + "type": ["null", "string"] + }, + "html_url": { + "type": ["null", "string"] + }, + "type": { + "type": ["null", "string"] + }, + "site_admin": { + "type": ["null", "boolean"] + } + } +} diff --git a/source-github/source_github/schemas/stargazers.json b/source-github/source_github/schemas/stargazers.json new file mode 100644 index 0000000000..83adc8dda1 --- /dev/null +++ b/source-github/source_github/schemas/stargazers.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["user_id", "starred_at"], + "properties": { + "user_id": { + "type": "integer" + }, + "starred_at": { + "type": "string", + "format": "date-time" + } + } +} diff --git a/source-github/source_github/schemas/tags.json b/source-github/source_github/schemas/tags.json new file mode 100644 index 0000000000..689bb4bf06 --- /dev/null +++ b/source-github/source_github/schemas/tags.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["name"], + "properties": { + "name": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/team_members.json b/source-github/source_github/schemas/team_members.json new file mode 100644 index 0000000000..bcbd92ffed --- /dev/null +++ b/source-github/source_github/schemas/team_members.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id", "team_slug"], + "properties": { + "id": { + "type": "integer" + }, + "team_slug": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/team_memberships.json b/source-github/source_github/schemas/team_memberships.json new file mode 100644 index 0000000000..533cba468e --- /dev/null +++ b/source-github/source_github/schemas/team_memberships.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["url"], + "properties": { + "url": { + "type": "string" + } + } +} diff --git a/source-github/source_github/schemas/teams.json b/source-github/source_github/schemas/teams.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/teams.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/users.json b/source-github/source_github/schemas/users.json new file mode 100644 index 0000000000..2bdf61e300 --- /dev/null +++ b/source-github/source_github/schemas/users.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/workflow_jobs.json b/source-github/source_github/schemas/workflow_jobs.json new file mode 100644 index 0000000000..206a84309a --- /dev/null +++ b/source-github/source_github/schemas/workflow_jobs.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://json-schema.org/draft-04/schema#", + "type": "object", + "required": ["id", "run_id"], + "properties": { + "id": { + "type": "integer" + }, + "run_id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/workflow_runs.json b/source-github/source_github/schemas/workflow_runs.json new file mode 100644 index 0000000000..31bafb0245 --- /dev/null +++ b/source-github/source_github/schemas/workflow_runs.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-04/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/schemas/workflows.json b/source-github/source_github/schemas/workflows.json new file mode 100644 index 0000000000..31bafb0245 --- /dev/null +++ b/source-github/source_github/schemas/workflows.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json-schema.org/draft-04/schema#", + "type": "object", + "required": ["id"], + "properties": { + "id": { + "type": "integer" + } + } +} diff --git a/source-github/source_github/source.py b/source-github/source_github/source.py new file mode 100644 index 0000000000..298e0c596a --- /dev/null +++ b/source-github/source_github/source.py @@ -0,0 +1,307 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +from os import getenv +from typing import Any, List, Mapping, MutableMapping, Optional, Tuple +from urllib.parse import urlparse + +from airbyte_cdk import AirbyteLogger +from airbyte_cdk.models import FailureType, SyncMode +from airbyte_cdk.sources import AbstractSource +from airbyte_cdk.sources.streams import Stream +from airbyte_cdk.sources.streams.http.auth import MultipleTokenAuthenticator +from airbyte_cdk.utils.traced_exception import AirbyteTracedException +from source_github.utils import MultipleTokenAuthenticatorWithRateLimiter + +from . import constants +from .streams import ( + Assignees, + Branches, + Collaborators, + Comments, + CommitCommentReactions, + CommitComments, + Commits, + ContributorActivity, + Deployments, + Events, + IssueCommentReactions, + IssueEvents, + IssueLabels, + IssueMilestones, + IssueReactions, + Issues, + IssueTimelineEvents, + Organizations, + ProjectCards, + ProjectColumns, + Projects, + ProjectsV2, + PullRequestCommentReactions, + PullRequestCommits, + PullRequests, + PullRequestStats, + Releases, + Repositories, + RepositoryStats, + ReviewComments, + Reviews, + Stargazers, + Tags, + TeamMembers, + TeamMemberships, + Teams, + Users, + WorkflowJobs, + WorkflowRuns, + Workflows, +) +from .utils import read_full_refresh + + +class SourceGithub(AbstractSource): + + continue_sync_on_stream_failure = True + + @staticmethod + def _get_org_repositories( + config: Mapping[str, Any], authenticator: MultipleTokenAuthenticator + ) -> Tuple[List[str], List[str], Optional[str]]: + """ + Parse config/repositories and produce two lists: organizations, repositories. + Args: + config (dict): Dict representing connector's config + authenticator(MultipleTokenAuthenticator): authenticator object + """ + config_repositories = set(config.get("repositories")) + + repositories = set() + organizations = set() + unchecked_repos = set() + unchecked_orgs = set() + pattern = None + + for org_repos in config_repositories: + _, _, repos = org_repos.partition("/") + if "*" in repos: + unchecked_orgs.add(org_repos) + else: + unchecked_repos.add(org_repos) + + if unchecked_orgs: + org_names = [org.split("/")[0] for org in unchecked_orgs] + pattern = "|".join([f"({org.replace('*', '.*')})" for org in unchecked_orgs]) + stream = Repositories(authenticator=authenticator, organizations=org_names, api_url=config.get("api_url"), pattern=pattern) + for record in read_full_refresh(stream): + repositories.add(record["full_name"]) + organizations.add(record["organization"]) + + unchecked_repos = unchecked_repos - repositories + if unchecked_repos: + stream = RepositoryStats( + authenticator=authenticator, + repositories=list(unchecked_repos), + api_url=config.get("api_url"), + # This parameter is deprecated and in future will be used sane default, page_size: 10 + page_size_for_large_streams=config.get("page_size_for_large_streams", constants.DEFAULT_PAGE_SIZE_FOR_LARGE_STREAM), + ) + for record in read_full_refresh(stream): + repositories.add(record["full_name"]) + organization = record.get("organization", {}).get("login") + if organization: + organizations.add(organization) + + return list(organizations), list(repositories), pattern + + @staticmethod + def get_access_token(config: Mapping[str, Any]): + # Before we supported oauth, personal_access_token was called `access_token` and it lived at the + # config root. So we first check to make sure any backwards compatbility is handled. + if "access_token" in config: + return constants.PERSONAL_ACCESS_TOKEN_TITLE, config["access_token"] + + credentials = config.get("credentials", {}) + if "access_token" in credentials: + return constants.ACCESS_TOKEN_TITLE, credentials["access_token"] + if "personal_access_token" in credentials: + return constants.PERSONAL_ACCESS_TOKEN_TITLE, credentials["personal_access_token"] + raise Exception("Invalid config format") + + def _get_authenticator(self, config: Mapping[str, Any]): + _, token = self.get_access_token(config) + tokens = [t.strip() for t in token.split(constants.TOKEN_SEPARATOR)] + return MultipleTokenAuthenticatorWithRateLimiter(tokens=tokens) + + def _validate_and_transform_config(self, config: MutableMapping[str, Any]) -> MutableMapping[str, Any]: + config = self._ensure_default_values(config) + config = self._validate_repositories(config) + config = self._validate_branches(config) + return config + + def _ensure_default_values(self, config: MutableMapping[str, Any]) -> MutableMapping[str, Any]: + config.setdefault("api_url", "https://api.github.com") + api_url_parsed = urlparse(config["api_url"]) + + if not api_url_parsed.scheme.startswith("http"): + message = "Please enter a full url for `API URL` field starting with `http`" + elif api_url_parsed.scheme == "http" and not self._is_http_allowed(): + message = "HTTP connection is insecure and is not allowed in this environment. Please use `https` instead." + elif not api_url_parsed.netloc: + message = "Please provide a correct API URL." + else: + return config + + raise AirbyteTracedException(message=message, failure_type=FailureType.config_error) + + def _validate_repositories(self, config: MutableMapping[str, Any]) -> MutableMapping[str, Any]: + if config.get("repositories"): + pass + elif config.get("repository"): + config["repositories"] = set(filter(None, config["repository"].split(" "))) + + return config + + def _validate_branches(self, config: MutableMapping[str, Any]) -> MutableMapping[str, Any]: + if config.get("branches"): + pass + elif config.get("branch"): + config["branches"] = set(filter(None, config["branch"].split(" "))) + + return config + + @staticmethod + def _is_http_allowed() -> bool: + return getenv("DEPLOYMENT_MODE", "").upper() != "CLOUD" + + def user_friendly_error_message(self, message: str) -> str: + user_message = "" + if "404 Client Error: Not Found for url: https://api.github.com/repos/" in message: + # 404 Client Error: Not Found for url: https://api.github.com/repos/airbytehq/airbyte3?per_page=100 + full_repo_name = message.split("https://api.github.com/repos/")[1].split("?")[0] + user_message = f'Repo name: "{full_repo_name}" is unknown, "repository" config option should use existing full repo name /' + elif "404 Client Error: Not Found for url: https://api.github.com/orgs/" in message: + # 404 Client Error: Not Found for url: https://api.github.com/orgs/airbytehqBLA/repos?per_page=100 + org_name = message.split("https://api.github.com/orgs/")[1].split("/")[0] + user_message = f'Organization name: "{org_name}" is unknown, "repository" config option should be updated. Please validate your repository config.' + elif "401 Client Error: Unauthorized for url" in message: + # 401 Client Error: Unauthorized for url: https://api.github.com/orgs/datarootsio/repos?per_page=100&sort=updated&direction=desc + user_message = ( + "Github credentials have expired or changed, please review your credentials and re-authenticate or renew your access token." + ) + return user_message + + def check_connection(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> Tuple[bool, Any]: + config = self._validate_and_transform_config(config) + try: + authenticator = self._get_authenticator(config) + _, repositories, _ = self._get_org_repositories(config=config, authenticator=authenticator) + if not repositories: + return ( + False, + "Some of the provided repositories couldn't be found. Please verify if every entered repository has a valid name and it matches the following format: airbytehq/airbyte airbytehq/another-repo airbytehq/* airbytehq/airbyte.", + ) + return True, None + + except Exception as e: + message = repr(e) + user_message = self.user_friendly_error_message(message) + return False, user_message or message + + def streams(self, config: Mapping[str, Any]) -> List[Stream]: + authenticator = self._get_authenticator(config) + config = self._validate_and_transform_config(config) + try: + organizations, repositories, pattern = self._get_org_repositories(config=config, authenticator=authenticator) + except Exception as e: + message = repr(e) + user_message = self.user_friendly_error_message(message) + if user_message: + raise AirbyteTracedException( + internal_message=message, message=user_message, failure_type=FailureType.config_error, exception=e + ) + else: + raise e + + if not any((organizations, repositories)): + user_message = ( + "No streams available. Looks like your config for repositories or organizations is not valid." + " Please, check your permissions, names of repositories and organizations." + " Needed scopes: repo, read:org, read:repo_hook, read:user, read:discussion, workflow." + ) + raise AirbyteTracedException( + internal_message="No streams available. Please check permissions", + message=user_message, + failure_type=FailureType.config_error, + ) + + # This parameter is deprecated and in future will be used sane default, page_size: 10 + page_size = config.get("page_size_for_large_streams", constants.DEFAULT_PAGE_SIZE_FOR_LARGE_STREAM) + access_token_type, _ = self.get_access_token(config) + + organization_args = { + "authenticator": authenticator, + "organizations": organizations, + "api_url": config.get("api_url"), + "access_token_type": access_token_type, + } + start_date = config.get("start_date") + organization_args_with_start_date = {**organization_args, "start_date": start_date} + + repository_args = { + "authenticator": authenticator, + "api_url": config.get("api_url"), + "repositories": repositories, + "page_size_for_large_streams": page_size, + "access_token_type": access_token_type, + } + repository_args_with_start_date = {**repository_args, "start_date": start_date} + + pull_requests_stream = PullRequests(**repository_args_with_start_date) + projects_stream = Projects(**repository_args_with_start_date) + project_columns_stream = ProjectColumns(projects_stream, **repository_args_with_start_date) + teams_stream = Teams(**organization_args) + team_members_stream = TeamMembers(parent=teams_stream, **repository_args) + workflow_runs_stream = WorkflowRuns(**repository_args_with_start_date) + + return [ + IssueTimelineEvents(**repository_args), + Assignees(**repository_args), + Branches(**repository_args), + Collaborators(**repository_args), + Comments(**repository_args_with_start_date), + CommitCommentReactions(**repository_args_with_start_date), + CommitComments(**repository_args_with_start_date), + Commits(**repository_args_with_start_date, branches_to_pull=config.get("branches", [])), + ContributorActivity(**repository_args), + Deployments(**repository_args_with_start_date), + Events(**repository_args_with_start_date), + IssueCommentReactions(**repository_args_with_start_date), + IssueEvents(**repository_args_with_start_date), + IssueLabels(**repository_args), + IssueMilestones(**repository_args_with_start_date), + IssueReactions(**repository_args_with_start_date), + Issues(**repository_args_with_start_date), + Organizations(**organization_args), + ProjectCards(project_columns_stream, **repository_args_with_start_date), + project_columns_stream, + projects_stream, + PullRequestCommentReactions(**repository_args_with_start_date), + PullRequestCommits(parent=pull_requests_stream, **repository_args), + PullRequestStats(**repository_args_with_start_date), + ProjectsV2(**repository_args_with_start_date), + pull_requests_stream, + Releases(**repository_args_with_start_date), + Repositories(**organization_args_with_start_date, pattern=pattern), + ReviewComments(**repository_args_with_start_date), + Reviews(**repository_args_with_start_date), + Stargazers(**repository_args_with_start_date), + Tags(**repository_args), + teams_stream, + team_members_stream, + Users(**organization_args), + Workflows(**repository_args_with_start_date), + workflow_runs_stream, + WorkflowJobs(parent=workflow_runs_stream, **repository_args_with_start_date), + TeamMemberships(parent=team_members_stream, **repository_args), + ] diff --git a/source-github/source_github/spec.json b/source-github/source_github/spec.json new file mode 100644 index 0000000000..e971b5e5b2 --- /dev/null +++ b/source-github/source_github/spec.json @@ -0,0 +1,154 @@ +{ + "documentationUrl": "https://go.estuary.dev/xLGlPL", + "connectionSpecification": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "GitHub Source Spec", + "type": "object", + "required": ["start_date", "repositories", "credentials"], + "additionalProperties": true, + "properties": { + "credentials": { + "type": "object", + "title": "Authentication Method", + "description": "Choose either OAuth or Personal Access Token.", + "discriminator": { + "propertyName": "option_title" + }, + "oneOf": [{ + "type": "object", + "title": "OAuth", + "x-oauth2-provider": "github", + "required": ["access_token"], + "properties": { + "option_title": { + "type": "string", + "const": "OAuth Credentials" + }, + "access_token": { + "type": "string", + "title": "Access Token", + "description": "OAuth access token", + "airbyte_secret": true + }, + "client_id": { + "type": "string", + "title": "client_id", + "description": "client_id", + "airbyte_secret": true + }, + "client_secret": { + "type": "string", + "title": "client_secret", + "description": "client_secret", + "airbyte_secret": true + } + } + }, + { + "type": "object", + "title": "Personal Access Token", + "required": ["personal_access_token"], + "properties": { + "option_title": { + "type": "string", + "const": "PAT Credentials" + }, + "personal_access_token": { + "type": "string", + "title": "Personal Access Tokens", + "description": "Log into GitHub and then generate a personal access token: https://github.com/settings/tokens. To load balance your API quota consumption across multiple API tokens, input multipletokens separated with \",\"", + "airbyte_secret": true + } + } + } + ] + }, + "repositories": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[\\w.-]+/(([\\w.-]*\\*)|[\\w.-]+(? str: + return self.api_url + + @property + def availability_strategy(self) -> Optional["AvailabilityStrategy"]: + return None + + def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: + links = response.links + if "next" in links: + next_link = links["next"]["url"] + parsed_link = parse.urlparse(next_link) + page = dict(parse.parse_qsl(parsed_link.query)).get("page") + return {"page": page} + + def request_params( + self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None + ) -> MutableMapping[str, Any]: + + params = {"per_page": self.page_size} + + if next_page_token: + params.update(next_page_token) + + params.update(self.stream_base_params) + + return params + + def request_headers(self, **kwargs) -> Mapping[str, Any]: + # Without sending `User-Agent` header we will be getting `403 Client Error: Forbidden for url` error. + return {"User-Agent": "PostmanRuntime/7.28.0"} + + def parse_response( + self, + response: requests.Response, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Iterable[Mapping]: + for record in response.json(): # GitHub puts records in an array. + yield self.transform(record=record, stream_slice=stream_slice) + + def should_retry(self, response: requests.Response) -> bool: + if super().should_retry(response): + return True + + retry_flag = ( + # The GitHub GraphQL API has limitations + # https://docs.github.com/en/graphql/overview/resource-limitations + (response.headers.get("X-RateLimit-Resource") == "graphql" and self.check_graphql_rate_limited(response.json())) + # Rate limit HTTP headers + # https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limit-http-headers + or (response.status_code != 200 and response.headers.get("X-RateLimit-Remaining") == "0") + # Secondary rate limits + # https://docs.github.com/en/rest/overview/resources-in-the-rest-api#secondary-rate-limits + or "Retry-After" in response.headers + ) + if retry_flag: + headers = [ + "X-RateLimit-Resource", + "X-RateLimit-Remaining", + "X-RateLimit-Reset", + "X-RateLimit-Limit", + "X-RateLimit-Used", + "Retry-After", + ] + headers = ", ".join([f"{h}: {response.headers[h]}" for h in headers if h in response.headers]) + if headers: + headers = f"HTTP headers: {headers}," + + self.logger.info( + f"Rate limit handling for stream `{self.name}` for the response with {response.status_code} status code, {headers} with message: {response.text}" + ) + + return retry_flag + + def backoff_time(self, response: requests.Response) -> Optional[float]: + # This method is called if we run into the rate limit. GitHub limits requests to 5000 per hour and provides + # `X-RateLimit-Reset` header which contains time when this hour will be finished and limits will be reset so + # we again could have 5000 per another hour. + + min_backoff_time = 60.0 + retry_after = response.headers.get("Retry-After") + if retry_after is not None: + backoff_time_in_seconds = max(float(retry_after), min_backoff_time) + return self.get_waiting_time(backoff_time_in_seconds) + + reset_time = response.headers.get("X-RateLimit-Reset") + if reset_time: + backoff_time_in_seconds = max(float(reset_time) - time.time(), min_backoff_time) + return self.get_waiting_time(backoff_time_in_seconds) + + def get_waiting_time(self, backoff_time_in_seconds): + if backoff_time_in_seconds < self.max_time: + return backoff_time_in_seconds + else: + self._session.auth.update_token() # New token will be used in next request + return 1 + + @staticmethod + def check_graphql_rate_limited(response_json: dict) -> bool: + errors = response_json.get("errors") + if errors: + for error in errors: + if error.get("type") == "RATE_LIMITED": + return True + return False + + def read_records(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping[str, Any]]: + # get out the stream_slice parts for later use. + organisation = stream_slice.get("organization", "") + repository = stream_slice.get("repository", "") + # Reading records while handling the errors + try: + yield from super().read_records(stream_slice=stream_slice, **kwargs) + except HTTPError as e: + # This whole try/except situation in `read_records()` isn't good but right now in `self._send_request()` + # function we have `response.raise_for_status()` so we don't have much choice on how to handle errors. + # Bocked on https://github.com/airbytehq/airbyte/issues/3514. + if e.response.status_code == requests.codes.NOT_FOUND: + # A lot of streams are not available for repositories owned by a user instead of an organization. + if isinstance(self, Organizations): + error_msg = f"Syncing `{self.__class__.__name__}` stream isn't available for organization `{organisation}`." + elif isinstance(self, TeamMemberships): + error_msg = f"Syncing `{self.__class__.__name__}` stream for organization `{organisation}`, team `{stream_slice.get('team_slug')}` and user `{stream_slice.get('username')}` isn't available: User has no team membership. Skipping..." + else: + error_msg = f"Syncing `{self.__class__.__name__}` stream isn't available for repository `{repository}`." + elif e.response.status_code == requests.codes.FORBIDDEN: + error_msg = str(e.response.json().get("message")) + # When using the `check_connection` method, we should raise an error if we do not have access to the repository. + if isinstance(self, Repositories): + raise e + # When `403` for the stream, that has no access to the organization's teams, based on OAuth Apps Restrictions: + # https://docs.github.com/en/organizations/restricting-access-to-your-organizations-data/enabling-oauth-app-access-restrictions-for-your-organization + # For all `Organisation` based streams + elif isinstance(self, Organizations) or isinstance(self, Teams) or isinstance(self, Users): + error_msg = ( + f"Syncing `{self.name}` stream isn't available for organization `{organisation}`. Full error message: {error_msg}" + ) + # For all other `Repository` base streams + else: + error_msg = ( + f"Syncing `{self.name}` stream isn't available for repository `{repository}`. Full error message: {error_msg}" + ) + elif e.response.status_code == requests.codes.UNAUTHORIZED: + if self.access_token_type == constants.PERSONAL_ACCESS_TOKEN_TITLE: + error_msg = str(e.response.json().get("message")) + self.logger.error(f"{self.access_token_type} renewal is required: {error_msg}") + raise e + elif e.response.status_code == requests.codes.GONE and isinstance(self, Projects): + # Some repos don't have projects enabled and we we get "410 Client Error: Gone for + # url: https://api.github.com/repos/xyz/projects?per_page=100" error. + error_msg = f"Syncing `Projects` stream isn't available for repository `{stream_slice['repository']}`." + elif e.response.status_code == requests.codes.CONFLICT: + error_msg = ( + f"Syncing `{self.name}` stream isn't available for repository " + f"`{stream_slice['repository']}`, it seems like this repository is empty." + ) + elif e.response.status_code == requests.codes.SERVER_ERROR and isinstance(self, WorkflowRuns): + error_msg = f"Syncing `{self.name}` stream isn't available for repository `{stream_slice['repository']}`." + elif e.response.status_code == requests.codes.BAD_GATEWAY: + error_msg = f"Stream {self.name} temporary failed. Try to re-run sync later" + else: + # most probably here we're facing a 500 server error and a risk to get a non-json response, so lets output response.text + self.logger.error(f"Undefined error while reading records: {e.response.text}") + raise e + + self.logger.warning(error_msg) + except GitHubAPILimitException as e: + internal_message = ( + f"Stream: `{self.name}`, slice: `{stream_slice}`. Limits for all provided tokens are reached, please try again later" + ) + message = "Rate Limits for all provided tokens are reached. For more information please refer to documentation: https://docs.airbyte.com/integrations/sources/github#limitations--troubleshooting" + raise AirbyteTracedException(internal_message=internal_message, message=message, failure_type=FailureType.config_error) from e + + +class GithubStream(GithubStreamABC): + def __init__(self, repositories: List[str], page_size_for_large_streams: int, **kwargs): + super().__init__(**kwargs) + self.repositories = repositories + # GitHub pagination could be from 1 to 100. + # This parameter is deprecated and in future will be used sane default, page_size: 10 + self.page_size = page_size_for_large_streams if self.large_stream else constants.DEFAULT_PAGE_SIZE + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/{self.name}" + + def stream_slices(self, **kwargs) -> Iterable[Optional[Mapping[str, Any]]]: + for repository in self.repositories: + yield {"repository": repository} + + def get_error_display_message(self, exception: BaseException) -> Optional[str]: + if ( + isinstance(exception, DefaultBackoffException) + and exception.response.status_code == requests.codes.BAD_GATEWAY + and self.large_stream + and self.page_size > 1 + ): + return f'Please try to decrease the "Page size for large streams" below {self.page_size}. The stream "{self.name}" is a large stream, such streams can fail with 502 for high "page_size" values.' + return super().get_error_display_message(exception) + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record["repository"] = stream_slice["repository"] + return record + + +class SemiIncrementalMixin: + """ + Semi incremental streams are also incremental but with one difference, they: + - read all records; + - output only new records. + This means that semi incremental streams read all records (like full_refresh streams) but do filtering directly + in the code and output only latest records (like incremental streams). + """ + + cursor_field = "updated_at" + + # This flag is used to indicate that current stream supports `sort` and `direction` request parameters and that + # we should break processing records if possible. If `sort` is set to `updated` and `direction` is set to `desc` + # this means that latest records will be at the beginning of the response and after we processed those latest + # records we can just stop and not process other record. This will increase speed of each incremental stream + # which supports those 2 request parameters. Currently only `IssueMilestones` and `PullRequests` streams are + # supporting this. + is_sorted = False + + def __init__(self, start_date: str = "", **kwargs): + super().__init__(**kwargs) + self._start_date = start_date + self._starting_point_cache = {} + + @property + def slice_keys(self): + if hasattr(self, "repositories"): + return ["repository"] + return ["organization"] + + record_slice_key = slice_keys + + def convert_cursor_value(self, value): + return value + + @property + def state_checkpoint_interval(self) -> Optional[int]: + if self.is_sorted == "asc": + return self.page_size + + def get_updated_state(self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any]): + """ + Return the latest state by comparing the cursor value in the latest record with the stream's most recent state + object and returning an updated state object. + """ + slice_value = getter(latest_record, self.record_slice_key) + updated_state = self.convert_cursor_value(latest_record[self.cursor_field]) + stream_state_value = current_stream_state.get(slice_value, {}).get(self.cursor_field) + if stream_state_value: + updated_state = max(updated_state, stream_state_value) + current_stream_state.setdefault(slice_value, {})[self.cursor_field] = updated_state + return current_stream_state + + def _get_starting_point(self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any]) -> str: + if stream_state: + state_path = [stream_slice[k] for k in self.slice_keys] + [self.cursor_field] + stream_state_value = getter(stream_state, state_path, strict=False) + if stream_state_value: + if self._start_date: + return max(self._start_date, stream_state_value) + return stream_state_value + return self._start_date + + def get_starting_point(self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any]) -> str: + cache_key = tuple([stream_slice[k] for k in self.slice_keys]) + if cache_key not in self._starting_point_cache: + self._starting_point_cache[cache_key] = self._get_starting_point(stream_state, stream_slice) + return self._starting_point_cache[cache_key] + + def read_records( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Iterable[Mapping[str, Any]]: + start_point = self.get_starting_point(stream_state=stream_state, stream_slice=stream_slice) + for record in super().read_records( + sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ): + cursor_value = self.convert_cursor_value(record[self.cursor_field]) + if not start_point or cursor_value > start_point: + yield record + elif self.is_sorted == "desc" and cursor_value < start_point: + break + + def stream_slices(self, **kwargs) -> Iterable[Optional[Mapping[str, Any]]]: + self._starting_point_cache.clear() + yield from super().stream_slices(**kwargs) + + +class IncrementalMixin(SemiIncrementalMixin): + def request_params(self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any] = None, **kwargs) -> MutableMapping[str, Any]: + params = super().request_params(stream_state=stream_state, **kwargs) + since_params = self.get_starting_point(stream_state=stream_state, stream_slice=stream_slice) + if since_params: + params["since"] = since_params + return params + + +# Below are full refresh streams + + +class RepositoryStats(GithubStream): + """ + This stream is technical and not intended for the user, we use it for checking connection with the repository. + API docs: https://docs.github.com/en/rest/reference/repos#get-a-repository + """ + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}" + + def parse_response(self, response: requests.Response, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping]: + yield response.json() + + +class Assignees(GithubStream): + """ + API docs: https://docs.github.com/en/rest/issues/assignees?apiVersion=2022-11-28#list-assignees + """ + + +class Branches(GithubStream): + """ + API docs: https://docs.github.com/en/rest/branches/branches?apiVersion=2022-11-28#list-branches + """ + + primary_key = ["name"] + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/branches" + + +class Collaborators(GithubStream): + """ + API docs: https://docs.github.com/en/rest/collaborators/collaborators?apiVersion=2022-11-28#list-repository-collaborators + """ + + +class IssueLabels(GithubStream): + """ + API docs: https://docs.github.com/en/rest/issues/labels?apiVersion=2022-11-28#list-labels-for-a-repository + """ + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/labels" + + +class Organizations(GithubStreamABC): + """ + API docs: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations + """ + + # GitHub pagination could be from 1 to 100. + page_size = 100 + + def __init__(self, organizations: List[str], access_token_type: str = "", **kwargs): + super().__init__(**kwargs) + self.organizations = organizations + self.access_token_type = access_token_type + + def stream_slices(self, **kwargs) -> Iterable[Optional[Mapping[str, Any]]]: + for organization in self.organizations: + yield {"organization": organization} + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"orgs/{stream_slice['organization']}" + + def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]: + yield response.json() + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record["organization"] = stream_slice["organization"] + return record + + +class Repositories(SemiIncrementalMixin, Organizations): + """ + API docs: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-organization-repositories + """ + + is_sorted = "desc" + stream_base_params = { + "sort": "updated", + "direction": "desc", + } + + def __init__(self, *args, pattern: Optional[str] = None, **kwargs): + self._pattern = re.compile(pattern) if pattern else pattern + super().__init__(*args, **kwargs) + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"orgs/{stream_slice['organization']}/repos" + + def parse_response(self, response: requests.Response, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping]: + for record in response.json(): # GitHub puts records in an array. + record = self.transform(record=record, stream_slice=stream_slice) + if not self._pattern or self._pattern.match(record["full_name"]): + yield record + + +class Tags(GithubStream): + """ + API docs: https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repository-tags + """ + + primary_key = ["name"] + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/tags" + + +class Teams(Organizations): + """ + API docs: https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#list-teams + """ + + use_cache = True + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"orgs/{stream_slice['organization']}/teams" + + def parse_response(self, response: requests.Response, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping]: + for record in response.json(): + yield self.transform(record=record, stream_slice=stream_slice) + + +class Users(Organizations): + """ + API docs: https://docs.github.com/en/rest/orgs/members?apiVersion=2022-11-28#list-organization-members + """ + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"orgs/{stream_slice['organization']}/members" + + def parse_response(self, response: requests.Response, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping]: + for record in response.json(): + yield self.transform(record=record, stream_slice=stream_slice) + + +# Below are semi incremental streams + + +class Releases(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#list-releases + """ + + cursor_field = "created_at" + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record = super().transform(record=record, stream_slice=stream_slice) + + assets = record.get("assets", []) + for asset in assets: + uploader = asset.pop("uploader", None) + asset["uploader_id"] = uploader.get("id") if uploader else None + + return record + + +class Events(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/activity/events?apiVersion=2022-11-28#list-repository-events + """ + + cursor_field = "created_at" + + +class PullRequests(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests + """ + + use_cache = True + large_stream = True + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self._first_read = True + + def read_records(self, stream_state: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping[str, Any]]: + """ + Decide if this a first read or not by the presence of the state object + """ + self._first_read = not bool(stream_state) + yield from super().read_records(stream_state=stream_state, **kwargs) + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/pulls" + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record = super().transform(record=record, stream_slice=stream_slice) + + for nested in ("head", "base"): + entry = record.get(nested, {}) + entry["repo_id"] = (record.get("head", {}).pop("repo", {}) or {}).get("id") + + return record + + def request_params(self, **kwargs) -> MutableMapping[str, Any]: + base_params = super().request_params(**kwargs) + # The very first time we read this stream we want to read ascending so we can save state in case of + # a halfway failure. But if there is state, we read descending to allow incremental behavior. + params = {"state": "all", "sort": "updated", "direction": self.is_sorted} + + return {**base_params, **params} + + @property + def is_sorted(self) -> str: + """ + Depending if there any state we read stream in ascending or descending order. + """ + if self._first_read: + return "asc" + return "desc" + + +class CommitComments(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/commits/comments?apiVersion=2022-11-28#list-commit-comments-for-a-repository + """ + + use_cache = True + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/comments" + + +class IssueMilestones(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/issues/milestones?apiVersion=2022-11-28#list-milestones + """ + + is_sorted = "desc" + stream_base_params = { + "state": "all", + "sort": "updated", + "direction": "desc", + } + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/milestones" + + +class Stargazers(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/activity/starring?apiVersion=2022-11-28#list-stargazers + """ + + primary_key = "user_id" + cursor_field = "starred_at" + + def request_headers(self, **kwargs) -> Mapping[str, Any]: + base_headers = super().request_headers(**kwargs) + # We need to send below header if we want to get `starred_at` field. See docs (Alternative response with + # star creation timestamps) - https://docs.github.com/en/rest/reference/activity#list-stargazers. + headers = {"Accept": "application/vnd.github.v3.star+json"} + + return {**base_headers, **headers} + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + """ + We need to provide the "user_id" for the primary_key attribute + and don't remove the whole "user" block from the record. + """ + record = super().transform(record=record, stream_slice=stream_slice) + record["user_id"] = record.get("user").get("id") + return record + + +class Projects(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/projects/projects?apiVersion=2022-11-28#list-repository-projects + """ + + use_cache = True + stream_base_params = { + "state": "all", + } + + def request_headers(self, **kwargs) -> Mapping[str, Any]: + base_headers = super().request_headers(**kwargs) + # Projects stream requires sending following `Accept` header. If we won't sent it + # we'll get `415 Client Error: Unsupported Media Type` error. + headers = {"Accept": "application/vnd.github.inertia-preview+json"} + + return {**base_headers, **headers} + + +class IssueEvents(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/issues/events?apiVersion=2022-11-28#list-issue-events-for-a-repository + """ + + cursor_field = "created_at" + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/issues/events" + + +# Below are incremental streams + + +class Comments(IncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#list-issue-comments-for-a-repository + """ + + use_cache = True + large_stream = True + max_retries = 7 + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/issues/comments" + + +class Commits(IncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-commits + + Pull commits from each branch of each repository, tracking state for each branch + """ + + primary_key = "sha" + cursor_field = "created_at" + slice_keys = ["repository", "branch"] + + def __init__(self, branches_to_pull: List[str], **kwargs): + super().__init__(**kwargs) + kwargs.pop("start_date") + self.branches_to_repos = {} + self.branches_to_pull = set(branches_to_pull) + self.branches_stream = Branches(**kwargs) + self.repositories_stream = RepositoryStats(**kwargs) + + def request_params(self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any] = None, **kwargs) -> MutableMapping[str, Any]: + params = super(IncrementalMixin, self).request_params(stream_state=stream_state, stream_slice=stream_slice, **kwargs) + since = self.get_starting_point(stream_state=stream_state, stream_slice=stream_slice) + if since: + params["since"] = since + params["sha"] = stream_slice["branch"] + return params + + def stream_slices(self, **kwargs) -> Iterable[Optional[Mapping[str, Any]]]: + self._validate_branches_to_pull() + for stream_slice in super().stream_slices(**kwargs): + repository = stream_slice["repository"] + for branch in self.branches_to_repos.get(repository, []): + yield {"branch": branch, "repository": repository} + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record = super().transform(record=record, stream_slice=stream_slice) + + # Record of the `commits` stream doesn't have an updated_at/created_at field at the top level (so we could + # just write `record["updated_at"]` or `record["created_at"]`). Instead each record has such value in + # `commit.author.date`. So the easiest way is to just enrich the record returned from API with top level + # field `created_at` and use it as cursor_field. + # Include the branch in the record + record["created_at"] = record["commit"]["author"]["date"] + record["branch"] = stream_slice["branch"] + + return record + + def get_updated_state(self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any]): + repository = latest_record["repository"] + branch = latest_record["branch"] + updated_state = latest_record[self.cursor_field] + stream_state_value = current_stream_state.get(repository, {}).get(branch, {}).get(self.cursor_field) + if stream_state_value: + updated_state = max(updated_state, stream_state_value) + current_stream_state.setdefault(repository, {}).setdefault(branch, {})[self.cursor_field] = updated_state + return current_stream_state + + def _validate_branches_to_pull(self): + # Get the default branch for each repository + default_branches = {} + for stream_slice in self.repositories_stream.stream_slices(sync_mode=SyncMode.full_refresh): + for repo_stats in self.repositories_stream.read_records(stream_slice=stream_slice, sync_mode=SyncMode.full_refresh): + default_branches[repo_stats["full_name"]] = repo_stats["default_branch"] + + all_branches = [] + for stream_slice in self.branches_stream.stream_slices(sync_mode=SyncMode.full_refresh): + for branch in self.branches_stream.read_records(sync_mode=SyncMode.full_refresh, stream_slice=stream_slice): + all_branches.append(f"{branch['repository']}/{branch['name']}") + + # Create mapping of repository to list of branches to pull commits for + # If no branches are specified for a repo, use its default branch + for repo in self.repositories: + repo_branches = [] + for branch in self.branches_to_pull: + branch_parts = branch.split("/", 2) + if "/".join(branch_parts[:2]) == repo and branch in all_branches: + repo_branches.append(branch_parts[-1]) + if not repo_branches: + repo_branches = [default_branches[repo]] + self.branches_to_repos[repo] = repo_branches + + +class Issues(IncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues + """ + + use_cache = True + large_stream = True + is_sorted = "asc" + + stream_base_params = { + "state": "all", + "sort": "updated", + "direction": "asc", + } + + +class ReviewComments(IncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/pulls/comments?apiVersion=2022-11-28#list-review-comments-in-a-repository + """ + + use_cache = True + large_stream = True + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/pulls/comments" + + +class GitHubGraphQLStream(GithubStream, ABC): + + http_method = "POST" + + def path( + self, *, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None + ) -> str: + return "graphql" + + def should_retry(self, response: requests.Response) -> bool: + if response.status_code in (requests.codes.BAD_GATEWAY, requests.codes.GATEWAY_TIMEOUT): + self.page_size = int(self.page_size / 2) + return True + self.page_size = constants.DEFAULT_PAGE_SIZE_FOR_LARGE_STREAM if self.large_stream else constants.DEFAULT_PAGE_SIZE + return super().should_retry(response) or response.json().get("errors") + + def _get_repository_name(self, repository: Mapping[str, Any]) -> str: + return repository["owner"]["login"] + "/" + repository["name"] + + def request_params( + self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None + ) -> MutableMapping[str, Any]: + return {} + + +class PullRequestStats(SemiIncrementalMixin, GitHubGraphQLStream): + """ + API docs: https://docs.github.com/en/graphql/reference/objects#pullrequest + """ + + large_stream = True + is_sorted = "asc" + + def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]: + repository = response.json()["data"]["repository"] + if repository: + nodes = repository["pullRequests"]["nodes"] + for record in nodes: + record["review_comments"] = sum([node["comments"]["totalCount"] for node in record["review_comments"]["nodes"]]) + record["comments"] = record["comments"]["totalCount"] + record["commits"] = record["commits"]["totalCount"] + record["repository"] = self._get_repository_name(repository) + if record["merged_by"]: + record["merged_by"]["type"] = record["merged_by"].pop("__typename") + yield record + + def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: + repository = response.json()["data"]["repository"] + if repository: + pageInfo = repository["pullRequests"]["pageInfo"] + if pageInfo["hasNextPage"]: + return {"after": pageInfo["endCursor"]} + + def request_body_json( + self, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Optional[Mapping]: + organization, name = stream_slice["repository"].split("/") + if next_page_token: + next_page_token = next_page_token["after"] + query = get_query_pull_requests( + owner=organization, name=name, first=self.page_size, after=next_page_token, direction=self.is_sorted.upper() + ) + return {"query": query} + + def request_headers(self, **kwargs) -> Mapping[str, Any]: + base_headers = super().request_headers(**kwargs) + # https://docs.github.com/en/graphql/overview/schema-previews#merge-info-preview + headers = {"Accept": "application/vnd.github.merge-info-preview+json"} + return {**base_headers, **headers} + + +class Reviews(SemiIncrementalMixin, GitHubGraphQLStream): + """ + API docs: https://docs.github.com/en/rest/pulls/reviews?apiVersion=2022-11-28#list-reviews-for-a-pull-request + """ + + is_sorted = False + cursor_field = "updated_at" + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.pull_requests_cursor = {} + self.reviews_cursors = {} + + def _get_records(self, pull_request, repository_name): + "yield review records from pull_request" + for record in pull_request["reviews"]["nodes"]: + record["repository"] = repository_name + record["pull_request_url"] = pull_request["url"] + if record["commit"]: + record["commit_id"] = record.pop("commit")["oid"] + if record["user"]: + record["user"]["type"] = record["user"].pop("__typename") + # for backward compatibility with REST API response + record["_links"] = { + "html": {"href": record["html_url"]}, + "pull_request": {"href": record["pull_request_url"]}, + } + yield record + + def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]: + repository = response.json()["data"]["repository"] + if repository: + repository_name = self._get_repository_name(repository) + if "pullRequests" in repository: + for pull_request in repository["pullRequests"]["nodes"]: + yield from self._get_records(pull_request, repository_name) + elif "pullRequest" in repository: + yield from self._get_records(repository["pullRequest"], repository_name) + + def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: + repository = response.json()["data"]["repository"] + if repository: + repository_name = self._get_repository_name(repository) + reviews_cursors = self.reviews_cursors.setdefault(repository_name, {}) + if "pullRequests" in repository: + if repository["pullRequests"]["pageInfo"]["hasNextPage"]: + self.pull_requests_cursor[repository_name] = repository["pullRequests"]["pageInfo"]["endCursor"] + for pull_request in repository["pullRequests"]["nodes"]: + if pull_request["reviews"]["pageInfo"]["hasNextPage"]: + pull_request_number = pull_request["number"] + reviews_cursors[pull_request_number] = pull_request["reviews"]["pageInfo"]["endCursor"] + elif "pullRequest" in repository: + if repository["pullRequest"]["reviews"]["pageInfo"]["hasNextPage"]: + pull_request_number = repository["pullRequest"]["number"] + reviews_cursors[pull_request_number] = repository["pullRequest"]["reviews"]["pageInfo"]["endCursor"] + if reviews_cursors: + number, after = reviews_cursors.popitem() + return {"after": after, "number": number} + if repository_name in self.pull_requests_cursor: + return {"after": self.pull_requests_cursor.pop(repository_name)} + + def request_body_json( + self, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Optional[Mapping]: + organization, name = stream_slice["repository"].split("/") + if not next_page_token: + next_page_token = {"after": None} + query = get_query_reviews(owner=organization, name=name, first=self.page_size, **next_page_token) + return {"query": query} + + +class PullRequestCommits(GithubStream): + """ + API docs: https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-commits-on-a-pull-request + """ + + primary_key = "sha" + + def __init__(self, parent: HttpStream, **kwargs): + super().__init__(**kwargs) + self.parent = parent + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/pulls/{stream_slice['pull_number']}/commits" + + def stream_slices( + self, sync_mode: SyncMode, cursor_field: List[str] = None, stream_state: Mapping[str, Any] = None + ) -> Iterable[Optional[Mapping[str, Any]]]: + parent_stream_slices = self.parent.stream_slices( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_state=stream_state + ) + for stream_slice in parent_stream_slices: + parent_records = self.parent.read_records( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ) + for record in parent_records: + yield {"repository": record["repository"], "pull_number": record["number"]} + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record = super().transform(record=record, stream_slice=stream_slice) + record["pull_number"] = stream_slice["pull_number"] + return record + + +class ProjectsV2(SemiIncrementalMixin, GitHubGraphQLStream): + """ + API docs: https://docs.github.com/en/graphql/reference/objects#projectv2 + """ + + is_sorted = "asc" + + def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]: + repository = response.json()["data"]["repository"] + if repository: + nodes = repository["projectsV2"]["nodes"] + for record in nodes: + record["owner_id"] = record.pop("owner").get("id") + record["repository"] = self._get_repository_name(repository) + yield record + + def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: + repository = response.json()["data"]["repository"] + if repository: + page_info = repository["projectsV2"]["pageInfo"] + if page_info["hasNextPage"]: + return {"after": page_info["endCursor"]} + + def request_body_json( + self, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Optional[Mapping]: + organization, name = stream_slice["repository"].split("/") + if next_page_token: + next_page_token = next_page_token["after"] + query = get_query_projectsV2( + owner=organization, name=name, first=self.page_size, after=next_page_token, direction=self.is_sorted.upper() + ) + return {"query": query} + + +# Reactions streams + + +class ReactionStream(GithubStream, ABC): + + parent_key = "id" + copy_parent_key = "comment_id" + cursor_field = "created_at" + + def __init__(self, start_date: str = "", **kwargs): + super().__init__(**kwargs) + kwargs["start_date"] = start_date + self._parent_stream = self.parent_entity(**kwargs) + self._start_date = start_date + + @property + @abstractmethod + def parent_entity(self): + """ + Specify the class of the parent stream for which receive reactions + """ + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + parent_path = self._parent_stream.path(stream_slice=stream_slice, **kwargs) + return f"{parent_path}/{stream_slice[self.copy_parent_key]}/reactions" + + def stream_slices(self, **kwargs) -> Iterable[Optional[Mapping[str, Any]]]: + for stream_slice in super().stream_slices(**kwargs): + for parent_record in self._parent_stream.read_records(sync_mode=SyncMode.full_refresh, stream_slice=stream_slice): + yield {self.copy_parent_key: parent_record[self.parent_key], "repository": stream_slice["repository"]} + + def get_updated_state(self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any]): + repository = latest_record["repository"] + parent_id = str(latest_record[self.copy_parent_key]) + updated_state = latest_record[self.cursor_field] + stream_state_value = current_stream_state.get(repository, {}).get(parent_id, {}).get(self.cursor_field) + if stream_state_value: + updated_state = max(updated_state, stream_state_value) + current_stream_state.setdefault(repository, {}).setdefault(parent_id, {})[self.cursor_field] = updated_state + return current_stream_state + + def get_starting_point(self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any]) -> str: + if stream_state: + repository = stream_slice["repository"] + parent_id = str(stream_slice[self.copy_parent_key]) + stream_state_value = stream_state.get(repository, {}).get(parent_id, {}).get(self.cursor_field) + if stream_state_value: + if self._start_date: + return max(self._start_date, stream_state_value) + return stream_state_value + return self._start_date + + def read_records( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Iterable[Mapping[str, Any]]: + starting_point = self.get_starting_point(stream_state=stream_state, stream_slice=stream_slice) + for record in super().read_records( + sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ): + if not starting_point or record[self.cursor_field] > starting_point: + yield record + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record = super().transform(record, stream_slice) + record[self.copy_parent_key] = stream_slice[self.copy_parent_key] + return record + + +class CommitCommentReactions(ReactionStream): + """ + API docs: https://docs.github.com/en/rest/reference/reactions?apiVersion=2022-11-28#list-reactions-for-a-commit-comment + """ + + parent_entity = CommitComments + + +class IssueCommentReactions(ReactionStream): + """ + API docs: https://docs.github.com/en/rest/reactions/reactions?apiVersion=2022-11-28#list-reactions-for-an-issue-comment + """ + + parent_entity = Comments + + +class IssueReactions(SemiIncrementalMixin, GitHubGraphQLStream): + """ + https://docs.github.com/en/graphql/reference/objects#issue + https://docs.github.com/en/graphql/reference/objects#reaction + """ + + cursor_field = "created_at" + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.issues_cursor = {} + self.reactions_cursors = {} + + def _get_reactions_from_issue(self, issue, repository_name): + for reaction in issue["reactions"]["nodes"]: + reaction["repository"] = repository_name + reaction["issue_number"] = issue["number"] + reaction["user"]["type"] = "User" + yield reaction + + def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]: + repository = response.json()["data"]["repository"] + if repository: + repository_name = self._get_repository_name(repository) + if "issues" in repository: + for issue in repository["issues"]["nodes"]: + yield from self._get_reactions_from_issue(issue, repository_name) + elif "issue" in repository: + yield from self._get_reactions_from_issue(repository["issue"], repository_name) + + def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: + repository = response.json()["data"]["repository"] + if repository: + repository_name = self._get_repository_name(repository) + reactions_cursors = self.reactions_cursors.setdefault(repository_name, {}) + if "issues" in repository: + if repository["issues"]["pageInfo"]["hasNextPage"]: + self.issues_cursor[repository_name] = repository["issues"]["pageInfo"]["endCursor"] + for issue in repository["issues"]["nodes"]: + if issue["reactions"]["pageInfo"]["hasNextPage"]: + issue_number = issue["number"] + reactions_cursors[issue_number] = issue["reactions"]["pageInfo"]["endCursor"] + elif "issue" in repository: + if repository["issue"]["reactions"]["pageInfo"]["hasNextPage"]: + issue_number = repository["issue"]["number"] + reactions_cursors[issue_number] = repository["issue"]["reactions"]["pageInfo"]["endCursor"] + if reactions_cursors: + number, after = reactions_cursors.popitem() + return {"after": after, "number": number} + if repository_name in self.issues_cursor: + return {"after": self.issues_cursor.pop(repository_name)} + + def request_body_json( + self, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Optional[Mapping]: + organization, name = stream_slice["repository"].split("/") + if not next_page_token: + next_page_token = {"after": None} + query = get_query_issue_reactions(owner=organization, name=name, first=self.page_size, **next_page_token) + return {"query": query} + + +class PullRequestCommentReactions(SemiIncrementalMixin, GitHubGraphQLStream): + """ + API docs: + https://docs.github.com/en/graphql/reference/objects#pullrequestreviewcomment + https://docs.github.com/en/graphql/reference/objects#reaction + """ + + cursor_field = "created_at" + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.cursor_storage = CursorStorage(["PullRequest", "PullRequestReview", "PullRequestReviewComment", "Reaction"]) + self.query_reactions = QueryReactions() + + def _get_reactions_from_comment(self, comment, repository): + for reaction in comment["reactions"]["nodes"]: + reaction["repository"] = self._get_repository_name(repository) + reaction["comment_id"] = comment["id"] + if reaction["user"]: + reaction["user"]["type"] = "User" + yield reaction + + def _get_reactions_from_review(self, review, repository): + for comment in review["comments"]["nodes"]: + yield from self._get_reactions_from_comment(comment, repository) + + def _get_reactions_from_pull_request(self, pull_request, repository): + for review in pull_request["reviews"]["nodes"]: + yield from self._get_reactions_from_review(review, repository) + + def _get_reactions_from_repository(self, repository): + for pull_request in repository["pullRequests"]["nodes"]: + yield from self._get_reactions_from_pull_request(pull_request, repository) + + def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]: + data = response.json()["data"] + repository = data.get("repository") + if repository: + yield from self._get_reactions_from_repository(repository) + + node = data.get("node") + if node: + if node["__typename"] == "PullRequest": + yield from self._get_reactions_from_pull_request(node, node["repository"]) + elif node["__typename"] == "PullRequestReview": + yield from self._get_reactions_from_review(node, node["repository"]) + elif node["__typename"] == "PullRequestReviewComment": + yield from self._get_reactions_from_comment(node, node["repository"]) + + def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]: + data = response.json()["data"] + repository = data.get("repository") + if repository: + self._add_cursor(repository, "pullRequests") + for pull_request in repository["pullRequests"]["nodes"]: + self._add_cursor(pull_request, "reviews") + for review in pull_request["reviews"]["nodes"]: + self._add_cursor(review, "comments") + for comment in review["comments"]["nodes"]: + self._add_cursor(comment, "reactions") + + node = data.get("node") + if node: + if node["__typename"] == "PullRequest": + self._add_cursor(node, "reviews") + for review in node["reviews"]["nodes"]: + self._add_cursor(review, "comments") + for comment in review["comments"]["nodes"]: + self._add_cursor(comment, "reactions") + elif node["__typename"] == "PullRequestReview": + self._add_cursor(node, "comments") + for comment in node["comments"]["nodes"]: + self._add_cursor(comment, "reactions") + elif node["__typename"] == "PullRequestReviewComment": + self._add_cursor(node, "reactions") + + return self.cursor_storage.get_cursor() + + def _add_cursor(self, node, link): + link_to_object = { + "reactions": "Reaction", + "comments": "PullRequestReviewComment", + "reviews": "PullRequestReview", + "pullRequests": "PullRequest", + } + + pageInfo = node[link]["pageInfo"] + if pageInfo["hasNextPage"]: + self.cursor_storage.add_cursor( + link_to_object[link], pageInfo["endCursor"], node[link]["totalCount"], parent_id=node.get("node_id") + ) + + def request_body_json( + self, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Optional[Mapping]: + organization, name = stream_slice["repository"].split("/") + if next_page_token: + after = next_page_token["cursor"] + page_size = min(self.page_size, next_page_token["total_count"]) + if next_page_token["typename"] == "PullRequest": + query = self.query_reactions.get_query_root_repository(owner=organization, name=name, first=page_size, after=after) + elif next_page_token["typename"] == "PullRequestReview": + query = self.query_reactions.get_query_root_pull_request(node_id=next_page_token["parent_id"], first=page_size, after=after) + elif next_page_token["typename"] == "PullRequestReviewComment": + query = self.query_reactions.get_query_root_review(node_id=next_page_token["parent_id"], first=page_size, after=after) + elif next_page_token["typename"] == "Reaction": + query = self.query_reactions.get_query_root_comment(node_id=next_page_token["parent_id"], first=page_size, after=after) + else: + query = self.query_reactions.get_query_root_repository(owner=organization, name=name, first=self.page_size) + + return {"query": query} + + +class Deployments(SemiIncrementalMixin, GithubStream): + """ + API docs: https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#list-deployments + """ + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/deployments" + + +class ProjectColumns(GithubStream): + """ + API docs: https://docs.github.com/en/rest/projects/columns?apiVersion=2022-11-28#list-project-columns + """ + + use_cache = True + cursor_field = "updated_at" + + def __init__(self, parent: HttpStream, start_date: str, **kwargs): + super().__init__(**kwargs) + self.parent = parent + self._start_date = start_date + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"projects/{stream_slice['project_id']}/columns" + + def stream_slices( + self, sync_mode: SyncMode, cursor_field: List[str] = None, stream_state: Mapping[str, Any] = None + ) -> Iterable[Optional[Mapping[str, Any]]]: + parent_stream_slices = self.parent.stream_slices( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_state=stream_state + ) + for stream_slice in parent_stream_slices: + parent_records = self.parent.read_records( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ) + for record in parent_records: + yield {"repository": record["repository"], "project_id": record["id"]} + + def read_records( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Iterable[Mapping[str, Any]]: + starting_point = self.get_starting_point(stream_state=stream_state, stream_slice=stream_slice) + for record in super().read_records( + sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ): + if not starting_point or record[self.cursor_field] > starting_point: + yield record + + def get_starting_point(self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any]) -> str: + if stream_state: + repository = stream_slice["repository"] + project_id = str(stream_slice["project_id"]) + stream_state_value = stream_state.get(repository, {}).get(project_id, {}).get(self.cursor_field) + if stream_state_value: + if self._start_date: + return max(self._start_date, stream_state_value) + return stream_state_value + return self._start_date + + def get_updated_state(self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any]): + repository = latest_record["repository"] + project_id = str(latest_record["project_id"]) + updated_state = latest_record[self.cursor_field] + stream_state_value = current_stream_state.get(repository, {}).get(project_id, {}).get(self.cursor_field) + if stream_state_value: + updated_state = max(updated_state, stream_state_value) + current_stream_state.setdefault(repository, {}).setdefault(project_id, {})[self.cursor_field] = updated_state + return current_stream_state + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record = super().transform(record=record, stream_slice=stream_slice) + record["project_id"] = stream_slice["project_id"] + return record + + +class ProjectCards(GithubStream): + """ + API docs: https://docs.github.com/en/rest/projects/cards?apiVersion=2022-11-28#list-project-cards + """ + + cursor_field = "updated_at" + stream_base_params = {"archived_state": "all"} + + def __init__(self, parent: HttpStream, start_date: str, **kwargs): + super().__init__(**kwargs) + self.parent = parent + self._start_date = start_date + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"projects/columns/{stream_slice['column_id']}/cards" + + def stream_slices( + self, sync_mode: SyncMode, cursor_field: List[str] = None, stream_state: Mapping[str, Any] = None + ) -> Iterable[Optional[Mapping[str, Any]]]: + parent_stream_slices = self.parent.stream_slices( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_state=stream_state + ) + for stream_slice in parent_stream_slices: + parent_records = self.parent.read_records( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ) + for record in parent_records: + yield {"repository": record["repository"], "project_id": record["project_id"], "column_id": record["id"]} + + def read_records( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Iterable[Mapping[str, Any]]: + starting_point = self.get_starting_point(stream_state=stream_state, stream_slice=stream_slice) + for record in super().read_records( + sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ): + if not starting_point or record[self.cursor_field] > starting_point: + yield record + + def get_starting_point(self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any]) -> str: + if stream_state: + repository = stream_slice["repository"] + project_id = str(stream_slice["project_id"]) + column_id = str(stream_slice["column_id"]) + stream_state_value = stream_state.get(repository, {}).get(project_id, {}).get(column_id, {}).get(self.cursor_field) + if stream_state_value: + if self._start_date: + return max(self._start_date, stream_state_value) + return stream_state_value + return self._start_date + + def get_updated_state(self, current_stream_state: MutableMapping[str, Any], latest_record: Mapping[str, Any]): + repository = latest_record["repository"] + project_id = str(latest_record["project_id"]) + column_id = str(latest_record["column_id"]) + updated_state = latest_record[self.cursor_field] + stream_state_value = current_stream_state.get(repository, {}).get(project_id, {}).get(column_id, {}).get(self.cursor_field) + if stream_state_value: + updated_state = max(updated_state, stream_state_value) + current_stream_state.setdefault(repository, {}).setdefault(project_id, {}).setdefault(column_id, {})[ + self.cursor_field + ] = updated_state + return current_stream_state + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record = super().transform(record=record, stream_slice=stream_slice) + record["project_id"] = stream_slice["project_id"] + record["column_id"] = stream_slice["column_id"] + return record + + +class Workflows(SemiIncrementalMixin, GithubStream): + """ + Get all workflows of a GitHub repository + API documentation: https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#list-repository-workflows + """ + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/actions/workflows" + + def parse_response(self, response: requests.Response, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping]: + response = response.json().get("workflows") + for record in response: + yield self.transform(record=record, stream_slice=stream_slice) + + def convert_cursor_value(self, value): + return pendulum.parse(value).in_tz(tz="UTC").format("YYYY-MM-DDTHH:mm:ss[Z]") + + +class WorkflowRuns(SemiIncrementalMixin, GithubStream): + """ + Get all workflow runs for a GitHub repository + API documentation: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository + """ + + # key for accessing slice value from record + record_slice_key = ["repository", "full_name"] + + # https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs + re_run_period = 32 # days + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/actions/runs" + + def parse_response(self, response: requests.Response, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping]: + response = response.json().get("workflow_runs") + for record in response: + yield record + + def read_records( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Iterable[Mapping[str, Any]]: + # Records in the workflows_runs stream are naturally descending sorted by `created_at` field. + # On first sight this is not big deal because cursor_field is `updated_at`. + # But we still can use `created_at` as a breakpoint because after 30 days period + # https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs + # workflows_runs records cannot be updated. It means if we initially fully synced stream on subsequent incremental sync we need + # only to look behind on 30 days to find all records which were updated. + start_point = self.get_starting_point(stream_state=stream_state, stream_slice=stream_slice) + break_point = None + if start_point: + break_point = (pendulum.parse(start_point) - pendulum.duration(days=self.re_run_period)).to_iso8601_string() + for record in super(SemiIncrementalMixin, self).read_records( + sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ): + cursor_value = record[self.cursor_field] + created_at = record["created_at"] + if not start_point or cursor_value > start_point: + yield record + if break_point and created_at < break_point: + break + + +class WorkflowJobs(SemiIncrementalMixin, GithubStream): + """ + Get all workflow jobs for a workflow run + API documentation: https://docs.github.com/pt/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run + """ + + cursor_field = "completed_at" + + def __init__(self, parent: WorkflowRuns, **kwargs): + super().__init__(**kwargs) + self.parent = parent + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/actions/runs/{stream_slice['run_id']}/jobs" + + def read_records( + self, + sync_mode: SyncMode, + cursor_field: List[str] = None, + stream_slice: Mapping[str, Any] = None, + stream_state: Mapping[str, Any] = None, + ) -> Iterable[Mapping[str, Any]]: + parent_stream_state = None + if stream_state is not None: + parent_stream_state = {repository: {self.parent.cursor_field: v[self.cursor_field]} for repository, v in stream_state.items()} + parent_stream_slices = self.parent.stream_slices(sync_mode=sync_mode, cursor_field=cursor_field, stream_state=parent_stream_state) + for stream_slice in parent_stream_slices: + parent_records = self.parent.read_records( + sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=parent_stream_state + ) + for record in parent_records: + stream_slice["run_id"] = record["id"] + yield from super().read_records( + sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ) + + def parse_response( + self, + response: requests.Response, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Iterable[Mapping]: + for record in response.json()["jobs"]: + if record.get(self.cursor_field): + yield self.transform(record=record, stream_slice=stream_slice) + + def request_params( + self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None + ) -> MutableMapping[str, Any]: + params = super().request_params(stream_state=stream_state, stream_slice=stream_slice, next_page_token=next_page_token) + params["filter"] = "all" + return params + + +class TeamMembers(GithubStream): + """ + API docs: https://docs.github.com/en/rest/teams/members?apiVersion=2022-11-28#list-team-members + """ + + use_cache = True + primary_key = ["id", "team_slug"] + + def __init__(self, parent: Teams, **kwargs): + super().__init__(**kwargs) + self.parent = parent + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"orgs/{stream_slice['organization']}/teams/{stream_slice['team_slug']}/members" + + def stream_slices( + self, sync_mode: SyncMode, cursor_field: List[str] = None, stream_state: Mapping[str, Any] = None + ) -> Iterable[Optional[Mapping[str, Any]]]: + parent_stream_slices = self.parent.stream_slices( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_state=stream_state + ) + for stream_slice in parent_stream_slices: + parent_records = self.parent.read_records( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ) + for record in parent_records: + yield {"organization": record["organization"], "team_slug": record["slug"]} + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record["organization"] = stream_slice["organization"] + record["team_slug"] = stream_slice["team_slug"] + return record + + +class TeamMemberships(GithubStream): + """ + API docs: https://docs.github.com/en/rest/teams/members?apiVersion=2022-11-28#get-team-membership-for-a-user + """ + + primary_key = ["url"] + + def __init__(self, parent: TeamMembers, **kwargs): + super().__init__(**kwargs) + self.parent = parent + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"orgs/{stream_slice['organization']}/teams/{stream_slice['team_slug']}/memberships/{stream_slice['username']}" + + def stream_slices( + self, sync_mode: SyncMode, cursor_field: List[str] = None, stream_state: Mapping[str, Any] = None + ) -> Iterable[Optional[Mapping[str, Any]]]: + parent_stream_slices = self.parent.stream_slices( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_state=stream_state + ) + for stream_slice in parent_stream_slices: + parent_records = self.parent.read_records( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ) + for record in parent_records: + yield {"organization": record["organization"], "team_slug": record["team_slug"], "username": record["login"]} + + def parse_response(self, response: requests.Response, stream_slice: Mapping[str, Any], **kwargs) -> Iterable[Mapping]: + yield self.transform(response.json(), stream_slice=stream_slice) + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record["organization"] = stream_slice["organization"] + record["team_slug"] = stream_slice["team_slug"] + record["username"] = stream_slice["username"] + return record + + +class ContributorActivity(GithubStream): + """ + API docs: https://docs.github.com/en/rest/metrics/statistics?apiVersion=2022-11-28#get-all-contributor-commit-activity + """ + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/stats/contributors" + + def request_headers(self, **kwargs) -> Mapping[str, Any]: + params = super().request_headers(**kwargs) + params.update({"Accept": "application/vnd.github+json", "X-GitHub-Api-Version": "2022-11-28"}) + return params + + def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any]) -> MutableMapping[str, Any]: + record["repository"] = stream_slice["repository"] + record.update(record.pop("author")) + return record + + def should_retry(self, response: requests.Response) -> bool: + """ + If the data hasn't been cached when you query a repository's statistics, you'll receive a 202 response, need to retry to get results + see for more info https://docs.github.com/en/rest/metrics/statistics?apiVersion=2022-11-28#a-word-about-caching + """ + if super().should_retry(response) or response.status_code == requests.codes.ACCEPTED: + return True + + def backoff_time(self, response: requests.Response) -> Optional[float]: + return 90 if response.status_code == requests.codes.ACCEPTED else super().backoff_time(response) + + def parse_response( + self, + response: requests.Response, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Iterable[Mapping]: + if response.status_code == requests.codes.NO_CONTENT: + self.logger.warning(f"Empty response received for {self.name} stats in repository {stream_slice.get('repository')}") + else: + yield from super().parse_response( + response, stream_state=stream_state, stream_slice=stream_slice, next_page_token=next_page_token + ) + + def read_records(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> Iterable[Mapping[str, Any]]: + repository = stream_slice.get("repository", "") + try: + yield from super().read_records(stream_slice=stream_slice, **kwargs) + except HTTPError as e: + if e.response.status_code == requests.codes.ACCEPTED: + yield AirbyteMessage( + type=MessageType.LOG, + log=AirbyteLogMessage( + level=Level.INFO, + message=f"Syncing `{self.__class__.__name__}` " f"stream isn't available for repository `{repository}`.", + ), + ) + else: + raise e + + +class IssueTimelineEvents(GithubStream): + """ + API docs https://docs.github.com/en/rest/issues/timeline?apiVersion=2022-11-28#list-timeline-events-for-an-issue + """ + + primary_key = ["issue_number"] + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.parent = Issues(**kwargs) + + def path(self, stream_slice: Mapping[str, Any] = None, **kwargs) -> str: + return f"repos/{stream_slice['repository']}/issues/{stream_slice['number']}/timeline" + + def stream_slices( + self, sync_mode: SyncMode, cursor_field: List[str] = None, stream_state: Mapping[str, Any] = None + ) -> Iterable[Optional[Mapping[str, Any]]]: + parent_stream_slices = self.parent.stream_slices( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_state=stream_state + ) + for stream_slice in parent_stream_slices: + parent_records = self.parent.read_records( + sync_mode=SyncMode.full_refresh, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state + ) + for record in parent_records: + yield {"repository": record["repository"], "number": record["number"]} + + def parse_response( + self, + response: requests.Response, + stream_state: Mapping[str, Any], + stream_slice: Mapping[str, Any] = None, + next_page_token: Mapping[str, Any] = None, + ) -> Iterable[Mapping]: + events_list = response.json() + record = {"repository": stream_slice["repository"], "issue_number": stream_slice["number"]} + for event in events_list: + record[event["event"]] = event + yield record diff --git a/source-github/source_github/utils.py b/source-github/source_github/utils.py new file mode 100644 index 0000000000..3479e7c12b --- /dev/null +++ b/source-github/source_github/utils.py @@ -0,0 +1,152 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + +import time +from dataclasses import dataclass +from itertools import cycle +from typing import Any, List, Mapping + +import pendulum +import requests +from airbyte_cdk.models import SyncMode +from airbyte_cdk.sources.streams import Stream +from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator +from airbyte_cdk.sources.streams.http.requests_native_auth.abstract_token import AbstractHeaderAuthenticator + + +def getter(D: dict, key_or_keys, strict=True): + if not isinstance(key_or_keys, list): + key_or_keys = [key_or_keys] + for k in key_or_keys: + if strict: + D = D[k] + else: + D = D.get(k, {}) + return D + + +def read_full_refresh(stream_instance: Stream): + slices = stream_instance.stream_slices(sync_mode=SyncMode.full_refresh) + for _slice in slices: + records = stream_instance.read_records(stream_slice=_slice, sync_mode=SyncMode.full_refresh) + for record in records: + yield record + + +class GitHubAPILimitException(Exception): + """General class for Rate Limits errors""" + + +@dataclass +class Token: + count_rest: int = 5000 + count_graphql: int = 5000 + reset_at_rest: pendulum.DateTime = pendulum.now() + reset_at_graphql: pendulum.DateTime = pendulum.now() + + +class MultipleTokenAuthenticatorWithRateLimiter(AbstractHeaderAuthenticator): + """ + Each token in the cycle is checked against the rate limiter. + If a token exceeds the capacity limit, the system switches to another token. + If all tokens are exhausted, the system will enter a sleep state until + the first token becomes available again. + """ + + DURATION = pendulum.duration(seconds=3600) # Duration at which the current rate limit window resets + + def __init__(self, tokens: List[str], auth_method: str = "token", auth_header: str = "Authorization"): + self._auth_method = auth_method + self._auth_header = auth_header + self._tokens = {t: Token() for t in tokens} + self.check_all_tokens() + self._tokens_iter = cycle(self._tokens) + self._active_token = next(self._tokens_iter) + self._max_time = 60 * 10 # 10 minutes as default + + @property + def auth_header(self) -> str: + return self._auth_header + + def get_auth_header(self) -> Mapping[str, Any]: + """The header to set on outgoing HTTP requests""" + if self.auth_header: + return {self.auth_header: self.token} + return {} + + def __call__(self, request): + """Attach the HTTP headers required to authenticate on the HTTP request""" + while True: + current_token = self._tokens[self.current_active_token] + if "graphql" in request.path_url: + if self.process_token(current_token, "count_graphql", "reset_at_graphql"): + break + else: + if self.process_token(current_token, "count_rest", "reset_at_rest"): + break + + request.headers.update(self.get_auth_header()) + + return request + + @property + def current_active_token(self) -> str: + return self._active_token + + def update_token(self) -> None: + self._active_token = next(self._tokens_iter) + + @property + def token(self) -> str: + + token = self.current_active_token + return f"{self._auth_method} {token}" + + @property + def max_time(self) -> int: + return self._max_time + + @max_time.setter + def max_time(self, value: int) -> None: + self._max_time = value + + def _check_token_limits(self, token: str): + """check that token is not limited""" + headers = {"Accept": "application/vnd.github+json", "X-GitHub-Api-Version": "2022-11-28"} + rate_limit_info = ( + requests.get( + "https://api.github.com/rate_limit", headers=headers, auth=TokenAuthenticator(token, auth_method=self._auth_method) + ) + .json() + .get("resources") + ) + token_info = self._tokens[token] + remaining_info_core = rate_limit_info.get("core") + token_info.count_rest, token_info.reset_at_rest = remaining_info_core.get("remaining"), pendulum.from_timestamp( + remaining_info_core.get("reset") + ) + + remaining_info_graphql = rate_limit_info.get("graphql") + token_info.count_graphql, token_info.reset_at_graphql = remaining_info_graphql.get("remaining"), pendulum.from_timestamp( + remaining_info_graphql.get("reset") + ) + + def check_all_tokens(self): + for token in self._tokens: + self._check_token_limits(token) + + def process_token(self, current_token, count_attr, reset_attr): + if getattr(current_token, count_attr) > 0: + setattr(current_token, count_attr, getattr(current_token, count_attr) - 1) + return True + elif all(getattr(x, count_attr) == 0 for x in self._tokens.values()): + min_time_to_wait = min((getattr(x, reset_attr) - pendulum.now()).in_seconds() for x in self._tokens.values()) + if min_time_to_wait < self.max_time: + time.sleep(min_time_to_wait if min_time_to_wait > 0 else 0) + self.check_all_tokens() + else: + raise GitHubAPILimitException(f"Rate limits for all tokens ({count_attr}) were reached") + else: + self.update_token() + return False diff --git a/source-github/test.flow.yaml b/source-github/test.flow.yaml new file mode 100644 index 0000000000..e50b96dd34 --- /dev/null +++ b/source-github/test.flow.yaml @@ -0,0 +1,223 @@ +--- +import: + - acmeCo/flow.yaml +captures: + acmeCo/source-github: + endpoint: + local: + command: + - python + - "-m" + - source_github + config: config.yaml + bindings: + - resource: + stream: issue_timeline_events + syncMode: full_refresh + target: acmeCo/issue_timeline_events + - resource: + stream: assignees + syncMode: full_refresh + target: acmeCo/assignees + - resource: + stream: branches + syncMode: full_refresh + target: acmeCo/branches + - resource: + stream: collaborators + syncMode: full_refresh + target: acmeCo/collaborators + - resource: + stream: comments + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/comments + - resource: + stream: commit_comment_reactions + syncMode: incremental + cursorField: + - created_at + target: acmeCo/commit_comment_reactions + - resource: + stream: commit_comments + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/commit_comments + - resource: + stream: commits + syncMode: incremental + cursorField: + - created_at + target: acmeCo/commits + - resource: + stream: contributor_activity + syncMode: full_refresh + target: acmeCo/contributor_activity + - resource: + stream: deployments + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/deployments + - resource: + stream: events + syncMode: incremental + cursorField: + - created_at + target: acmeCo/events + - resource: + stream: issue_comment_reactions + syncMode: incremental + cursorField: + - created_at + target: acmeCo/issue_comment_reactions + - resource: + stream: issue_events + syncMode: incremental + cursorField: + - created_at + target: acmeCo/issue_events + - resource: + stream: issue_labels + syncMode: full_refresh + target: acmeCo/issue_labels + - resource: + stream: issue_milestones + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/issue_milestones + - resource: + stream: issue_reactions + syncMode: incremental + cursorField: + - created_at + target: acmeCo/issue_reactions + # - resource: + # stream: issues + # syncMode: incremental + # cursorField: + # - updated_at + # target: acmeCo/issues + - resource: + stream: organizations + syncMode: full_refresh + target: acmeCo/organizations + - resource: + stream: project_cards + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/project_cards + - resource: + stream: project_columns + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/project_columns + - resource: + stream: projects + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/projects + - resource: + stream: pull_request_comment_reactions + syncMode: incremental + cursorField: + - created_at + target: acmeCo/pull_request_comment_reactions + - resource: + stream: pull_request_commits + syncMode: full_refresh + target: acmeCo/pull_request_commits + - resource: + stream: pull_request_stats + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/pull_request_stats + - resource: + stream: projects_v2 + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/projects_v2 + - resource: + stream: pull_requests + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/pull_requests + - resource: + stream: releases + syncMode: incremental + cursorField: + - created_at + target: acmeCo/releases + - resource: + stream: repositories + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/repositories + - resource: + stream: review_comments + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/review_comments + - resource: + stream: reviews + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/reviews + - resource: + stream: stargazers + syncMode: incremental + cursorField: + - starred_at + target: acmeCo/stargazers + - resource: + stream: tags + syncMode: full_refresh + target: acmeCo/tags + - resource: + stream: teams + syncMode: full_refresh + target: acmeCo/teams + - resource: + stream: team_members + syncMode: full_refresh + target: acmeCo/team_members + - resource: + stream: users + syncMode: full_refresh + target: acmeCo/users + - resource: + stream: workflows + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/workflows + - resource: + stream: workflow_runs + syncMode: incremental + cursorField: + - updated_at + target: acmeCo/workflow_runs + - resource: + stream: workflow_jobs + syncMode: incremental + cursorField: + - completed_at + target: acmeCo/workflow_jobs + - resource: + stream: team_memberships + syncMode: full_refresh + target: acmeCo/team_memberships + shards: + logLevel: debug diff --git a/source-github/tests/snapshots/source_github_tests_test_snapshots__capture__stdout.json b/source-github/tests/snapshots/source_github_tests_test_snapshots__capture__stdout.json new file mode 100644 index 0000000000..a3adea8e51 --- /dev/null +++ b/source-github/tests/snapshots/source_github_tests_test_snapshots__capture__stdout.json @@ -0,0 +1,661 @@ +[ + [ + "acmeCo/issue_timeline_events", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "issue_number": 1, + "repository": "sourcegithub1/testsource" + } + ], + [ + "acmeCo/assignees", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "avatar_url": "https://avatars.githubusercontent.com/u/168158797?v=4", + "events_url": "https://api.github.com/users/sourcegithub1/events{/privacy}", + "followers_url": "https://api.github.com/users/sourcegithub1/followers", + "following_url": "https://api.github.com/users/sourcegithub1/following{/other_user}", + "gists_url": "https://api.github.com/users/sourcegithub1/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/sourcegithub1", + "id": 168158797, + "login": "sourcegithub1", + "node_id": "U_kgDOCgXmTQ", + "organizations_url": "https://api.github.com/users/sourcegithub1/orgs", + "received_events_url": "https://api.github.com/users/sourcegithub1/received_events", + "repos_url": "https://api.github.com/users/sourcegithub1/repos", + "repository": "sourcegithub1/testsource", + "site_admin": false, + "starred_url": "https://api.github.com/users/sourcegithub1/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/sourcegithub1/subscriptions", + "type": "User", + "url": "https://api.github.com/users/sourcegithub1" + } + ], + [ + "acmeCo/branches", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "commit": { + "sha": "1e4df82f4ae52fabec8c693c44d0e10877816829", + "url": "https://api.github.com/repos/sourcegithub1/testsource/commits/1e4df82f4ae52fabec8c693c44d0e10877816829" + }, + "name": "main", + "protected": false, + "protection": { + "enabled": false, + "required_status_checks": { + "checks": [], + "contexts": [], + "enforcement_level": "off" + } + }, + "protection_url": "https://api.github.com/repos/sourcegithub1/testsource/branches/main/protection", + "repository": "sourcegithub1/testsource" + } + ], + [ + "acmeCo/collaborators", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "avatar_url": "https://avatars.githubusercontent.com/u/168158797?v=4", + "events_url": "https://api.github.com/users/sourcegithub1/events{/privacy}", + "followers_url": "https://api.github.com/users/sourcegithub1/followers", + "following_url": "https://api.github.com/users/sourcegithub1/following{/other_user}", + "gists_url": "https://api.github.com/users/sourcegithub1/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/sourcegithub1", + "id": 168158797, + "login": "sourcegithub1", + "node_id": "U_kgDOCgXmTQ", + "organizations_url": "https://api.github.com/users/sourcegithub1/orgs", + "permissions": { + "admin": true, + "maintain": true, + "pull": true, + "push": true, + "triage": true + }, + "received_events_url": "https://api.github.com/users/sourcegithub1/received_events", + "repos_url": "https://api.github.com/users/sourcegithub1/repos", + "repository": "sourcegithub1/testsource", + "role_name": "admin", + "site_admin": false, + "starred_url": "https://api.github.com/users/sourcegithub1/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/sourcegithub1/subscriptions", + "type": "User", + "url": "https://api.github.com/users/sourcegithub1" + } + ], + [ + "acmeCo/commit_comments", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "author_association": "OWNER", + "body": "comment for a0f73cb397a48afc587af027122fd4fbbdc52560 branch", + "commit_id": "a0f73cb397a48afc587af027122fd4fbbdc52560", + "created_at": "2024-04-26T05:10:14Z", + "html_url": "https://github.com/sourcegithub1/testsource/commit/a0f73cb397a48afc587af027122fd4fbbdc52560#commitcomment-141387134", + "id": 141387134, + "line": null, + "node_id": "CC_kwDOLzc5q84IbWV-", + "path": null, + "position": null, + "reactions": { + "+1": 0, + "-1": 0, + "confused": 0, + "eyes": 0, + "heart": 0, + "hooray": 0, + "laugh": 0, + "rocket": 0, + "total_count": 0, + "url": "https://api.github.com/repos/sourcegithub1/testsource/comments/141387134/reactions" + }, + "repository": "sourcegithub1/testsource", + "updated_at": "2024-04-26T05:10:14Z", + "url": "https://api.github.com/repos/sourcegithub1/testsource/comments/141387134", + "user": { + "avatar_url": "https://avatars.githubusercontent.com/u/168158797?v=4", + "events_url": "https://api.github.com/users/sourcegithub1/events{/privacy}", + "followers_url": "https://api.github.com/users/sourcegithub1/followers", + "following_url": "https://api.github.com/users/sourcegithub1/following{/other_user}", + "gists_url": "https://api.github.com/users/sourcegithub1/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/sourcegithub1", + "id": 168158797, + "login": "sourcegithub1", + "node_id": "U_kgDOCgXmTQ", + "organizations_url": "https://api.github.com/users/sourcegithub1/orgs", + "received_events_url": "https://api.github.com/users/sourcegithub1/received_events", + "repos_url": "https://api.github.com/users/sourcegithub1/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/sourcegithub1/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/sourcegithub1/subscriptions", + "type": "User", + "url": "https://api.github.com/users/sourcegithub1" + } + } + ], + [ + "acmeCo/commits", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "author": { + "avatar_url": "https://avatars.githubusercontent.com/u/168158797?v=4", + "events_url": "https://api.github.com/users/sourcegithub1/events{/privacy}", + "followers_url": "https://api.github.com/users/sourcegithub1/followers", + "following_url": "https://api.github.com/users/sourcegithub1/following{/other_user}", + "gists_url": "https://api.github.com/users/sourcegithub1/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/sourcegithub1", + "id": 168158797, + "login": "sourcegithub1", + "node_id": "U_kgDOCgXmTQ", + "organizations_url": "https://api.github.com/users/sourcegithub1/orgs", + "received_events_url": "https://api.github.com/users/sourcegithub1/received_events", + "repos_url": "https://api.github.com/users/sourcegithub1/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/sourcegithub1/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/sourcegithub1/subscriptions", + "type": "User", + "url": "https://api.github.com/users/sourcegithub1" + }, + "branch": "main", + "comments_url": "https://api.github.com/repos/sourcegithub1/testsource/commits/1e4df82f4ae52fabec8c693c44d0e10877816829/comments", + "commit": { + "author": { + "date": "2024-05-06T18:25:02Z", + "email": "168158797+sourcegithub1@users.noreply.github.com", + "name": "sourcegithub1" + }, + "comment_count": 0, + "committer": { + "date": "2024-05-06T18:25:02Z", + "email": "noreply@github.com", + "name": "GitHub" + }, + "message": "Upload random test data", + "tree": { + "sha": "fb0f8444cfc24520345828a03dcd4530e6613276", + "url": "https://api.github.com/repos/sourcegithub1/testsource/git/trees/fb0f8444cfc24520345828a03dcd4530e6613276" + }, + "url": "https://api.github.com/repos/sourcegithub1/testsource/git/commits/1e4df82f4ae52fabec8c693c44d0e10877816829", + "verification": { + "payload": "tree fb0f8444cfc24520345828a03dcd4530e6613276\nparent a0f73cb397a48afc587af027122fd4fbbdc52560\nauthor sourcegithub1 <168158797+sourcegithub1@users.noreply.github.com> 1715019902 -0300\ncommitter GitHub 1715019902 -0300\n\nUpload random test data", + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJmOSCLCRC1aQ7uu5UhlAAAfbAQAAHWkAFuVIW7+CHmxrE0dn8l\nBAO58VMe5lEbaRVXbvhc8L2fmBoeNmKm4gj8UEDqk+hsL+M7xUGMxK5JpxcO2P1t\no8wBlAlHH7XCZp7N58G8iYxvzuFRGvx/Vcmy7WSfdhf2a8PX/nMya1hzFAprmmv7\nIU/peExcf6zF9bIsLTIzSQ814wkFUKr5qd49GfE4s//nkrE+HKmTEuCsx5CyouRR\niR3eddTOEL6u7KLw/r45uBTVL0ECEnc4ybijdRtsa4lwBu8L6vQwADbYktsC0MZL\n4HOXWxmonDzGnSziKPc8t7leRiBOONEEqf+O73FILm+Dricj1xkMR2ZMmfSgqWMf\neYBHjmrEoiqTqvOBeqAc5KXXL3AJEKUc881Fx8yNEd4dOuEN7bMRE2x0GlQ+2mqp\n9KA54Q/EVJ1mLFwThmbsLAIzSLPk2yjhJiGbuTAubtGSL1yhaDXS9tWhNaZwFAdu\nEAXJxM4R592DLjqgR2RqVqar6oK6Bf8K4onBWGMtXApC4No/zFVpr/8hNShGrzxC\nCeSqmxAjwqveYAFx7/6o302wxD/fg4MvsZ2NbKiJNYWu4amkSXG2oCdOP1Vyxw6K\nqji1e8/WY4vID8dTJhoNaWzkxAHQdgA2R8Ijt2wYyV5cAEFpNZdk6zPw6V9QB/2O\n1OCwROmCCwYOOkyEghJV\n=BZBr\n-----END PGP SIGNATURE-----\n", + "verified": true + } + }, + "committer": { + "avatar_url": "https://avatars.githubusercontent.com/u/19864447?v=4", + "events_url": "https://api.github.com/users/web-flow/events{/privacy}", + "followers_url": "https://api.github.com/users/web-flow/followers", + "following_url": "https://api.github.com/users/web-flow/following{/other_user}", + "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/web-flow", + "id": 19864447, + "login": "web-flow", + "node_id": "MDQ6VXNlcjE5ODY0NDQ3", + "organizations_url": "https://api.github.com/users/web-flow/orgs", + "received_events_url": "https://api.github.com/users/web-flow/received_events", + "repos_url": "https://api.github.com/users/web-flow/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", + "type": "User", + "url": "https://api.github.com/users/web-flow" + }, + "created_at": "2024-05-06T18:25:02Z", + "html_url": "https://github.com/sourcegithub1/testsource/commit/1e4df82f4ae52fabec8c693c44d0e10877816829", + "node_id": "C_kwDOLzc5q9oAKDFlNGRmODJmNGFlNTJmYWJlYzhjNjkzYzQ0ZDBlMTA4Nzc4MTY4Mjk", + "parents": [ + { + "html_url": "https://github.com/sourcegithub1/testsource/commit/a0f73cb397a48afc587af027122fd4fbbdc52560", + "sha": "a0f73cb397a48afc587af027122fd4fbbdc52560", + "url": "https://api.github.com/repos/sourcegithub1/testsource/commits/a0f73cb397a48afc587af027122fd4fbbdc52560" + } + ], + "repository": "sourcegithub1/testsource", + "sha": "1e4df82f4ae52fabec8c693c44d0e10877816829", + "url": "https://api.github.com/repos/sourcegithub1/testsource/commits/1e4df82f4ae52fabec8c693c44d0e10877816829" + } + ], + [ + "acmeCo/commits", + { + "_meta": { + "op": "u", + "row_id": 1, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "author": { + "avatar_url": "https://avatars.githubusercontent.com/u/168158797?v=4", + "events_url": "https://api.github.com/users/sourcegithub1/events{/privacy}", + "followers_url": "https://api.github.com/users/sourcegithub1/followers", + "following_url": "https://api.github.com/users/sourcegithub1/following{/other_user}", + "gists_url": "https://api.github.com/users/sourcegithub1/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/sourcegithub1", + "id": 168158797, + "login": "sourcegithub1", + "node_id": "U_kgDOCgXmTQ", + "organizations_url": "https://api.github.com/users/sourcegithub1/orgs", + "received_events_url": "https://api.github.com/users/sourcegithub1/received_events", + "repos_url": "https://api.github.com/users/sourcegithub1/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/sourcegithub1/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/sourcegithub1/subscriptions", + "type": "User", + "url": "https://api.github.com/users/sourcegithub1" + }, + "branch": "main", + "comments_url": "https://api.github.com/repos/sourcegithub1/testsource/commits/a0f73cb397a48afc587af027122fd4fbbdc52560/comments", + "commit": { + "author": { + "date": "2024-04-26T04:33:02Z", + "email": "168158797+sourcegithub1@users.noreply.github.com", + "name": "sourcegithub1" + }, + "comment_count": 1, + "committer": { + "date": "2024-04-26T04:33:02Z", + "email": "noreply@github.com", + "name": "GitHub" + }, + "message": "Initial commit", + "tree": { + "sha": "ece24f04b9f720d2767e6f5df1ff58ad001451f1", + "url": "https://api.github.com/repos/sourcegithub1/testsource/git/trees/ece24f04b9f720d2767e6f5df1ff58ad001451f1" + }, + "url": "https://api.github.com/repos/sourcegithub1/testsource/git/commits/a0f73cb397a48afc587af027122fd4fbbdc52560", + "verification": { + "payload": "tree ece24f04b9f720d2767e6f5df1ff58ad001451f1\nauthor sourcegithub1 <168158797+sourcegithub1@users.noreply.github.com> 1714105982 -0300\ncommitter GitHub 1714105982 -0300\n\nInitial commit", + "reason": "valid", + "signature": "-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJmKy5+CRC1aQ7uu5UhlAAAM8UQAFX4G7gtv0BzLxYqIPjeZUHT\nx4bSAL+6qUwW/ECbsw4q76gIsGgQ5iTil4G0L2oMP0uM1F41yuVAaBsCLx3qwSCc\npMgThkEW8AIcTvu76RU41gKTg28aWS4WpgWeeCWs+7ukQLMr8RZekTNYkNh9K44T\nwcns/J/EM/0M9fgdRVpXAQ+3gm1yepc5/oQ+PSvhv7YmQL0fHzXUjKqOV+KTkPmt\nQMcC9ZIW4qhBx8+mq/sbMzPnOW5EuTZAr+lY0dc227QB3dM009KU0t+yBraiN8Vx\nwnO6+BljnZjL3l15iXZEBlfaUpXwfrIORAtk51MUbh0KRbcX2p3vjY4ougIoHmJ1\nQu0T7odqzndFf/F0q+n12ziDxHTN1iI+iM3zo/5VF4ji0n9rW55ECtoYyJ6lk12H\nBWUKbE+WpcI7VykdosoO3LmYsslTlB5G4CZr3X2zDimKiHSHbrUWCyAf2i7/fjGN\nUabTuX3IySQPTLUtM0oOayVBlpNabD6WH7fHSut2vHZ4fD4jUNnNxEaQ3/COIBYl\nBmOVwWMVkxFAljw2gyX5nTxWE4TQwNBrR15Zgh7O4KyPCq3ivt6XKLbi9BrgeLsO\nSZBsmNNMKWLmykHX31IU9Fm2AgCwxJkhfmNhRYaOm1c8Pw+tAIKwuLEdoxE1AqpI\nfWESb8Xc5ePIf/kpfgqL\n=YICL\n-----END PGP SIGNATURE-----\n", + "verified": true + } + }, + "committer": { + "avatar_url": "https://avatars.githubusercontent.com/u/19864447?v=4", + "events_url": "https://api.github.com/users/web-flow/events{/privacy}", + "followers_url": "https://api.github.com/users/web-flow/followers", + "following_url": "https://api.github.com/users/web-flow/following{/other_user}", + "gists_url": "https://api.github.com/users/web-flow/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/web-flow", + "id": 19864447, + "login": "web-flow", + "node_id": "MDQ6VXNlcjE5ODY0NDQ3", + "organizations_url": "https://api.github.com/users/web-flow/orgs", + "received_events_url": "https://api.github.com/users/web-flow/received_events", + "repos_url": "https://api.github.com/users/web-flow/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/web-flow/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/web-flow/subscriptions", + "type": "User", + "url": "https://api.github.com/users/web-flow" + }, + "created_at": "2024-04-26T04:33:02Z", + "html_url": "https://github.com/sourcegithub1/testsource/commit/a0f73cb397a48afc587af027122fd4fbbdc52560", + "node_id": "C_kwDOLzc5q9oAKGEwZjczY2IzOTdhNDhhZmM1ODdhZjAyNzEyMmZkNGZiYmRjNTI1NjA", + "parents": [], + "repository": "sourcegithub1/testsource", + "sha": "a0f73cb397a48afc587af027122fd4fbbdc52560", + "url": "https://api.github.com/repos/sourcegithub1/testsource/commits/a0f73cb397a48afc587af027122fd4fbbdc52560" + } + ], + [ + "acmeCo/contributor_activity", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "avatar_url": "https://avatars.githubusercontent.com/u/168158797?v=4", + "events_url": "https://api.github.com/users/sourcegithub1/events{/privacy}", + "followers_url": "https://api.github.com/users/sourcegithub1/followers", + "following_url": "https://api.github.com/users/sourcegithub1/following{/other_user}", + "gists_url": "https://api.github.com/users/sourcegithub1/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/sourcegithub1", + "id": 168158797, + "login": "sourcegithub1", + "node_id": "U_kgDOCgXmTQ", + "organizations_url": "https://api.github.com/users/sourcegithub1/orgs", + "received_events_url": "https://api.github.com/users/sourcegithub1/received_events", + "repos_url": "https://api.github.com/users/sourcegithub1/repos", + "repository": "sourcegithub1/testsource", + "site_admin": false, + "starred_url": "https://api.github.com/users/sourcegithub1/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/sourcegithub1/subscriptions", + "total": 2, + "type": "User", + "url": "https://api.github.com/users/sourcegithub1", + "weeks": [ + { + "a": 2, + "c": 1, + "d": 0, + "w": 1713657600 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1714262400 + }, + { + "a": 99000, + "c": 1, + "d": 0, + "w": 1714867200 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1715472000 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1716076800 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1716681600 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1717286400 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1717891200 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1718496000 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1719100800 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1719705600 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1720310400 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1720915200 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1721520000 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1722124800 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1722729600 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1723334400 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1723939200 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1724544000 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1725148800 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1725753600 + }, + { + "a": 0, + "c": 0, + "d": 0, + "w": 1726358400 + } + ] + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 0, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "d73a4a", + "default": true, + "description": "Something isn't working", + "id": 6873445279, + "name": "bug", + "node_id": "LA_kwDOLzc5q88AAAABmbBznw", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/bug" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 1, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "0075ca", + "default": true, + "description": "Improvements or additions to documentation", + "id": 6873445281, + "name": "documentation", + "node_id": "LA_kwDOLzc5q88AAAABmbBzoQ", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/documentation" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 2, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "cfd3d7", + "default": true, + "description": "This issue or pull request already exists", + "id": 6873445283, + "name": "duplicate", + "node_id": "LA_kwDOLzc5q88AAAABmbBzow", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/duplicate" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 3, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "a2eeef", + "default": true, + "description": "New feature or request", + "id": 6873445285, + "name": "enhancement", + "node_id": "LA_kwDOLzc5q88AAAABmbBzpQ", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/enhancement" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 5, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "008672", + "default": true, + "description": "Extra attention is needed", + "id": 6873445287, + "name": "help wanted", + "node_id": "LA_kwDOLzc5q88AAAABmbBzpw", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/help%20wanted" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 4, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "7057ff", + "default": true, + "description": "Good for newcomers", + "id": 6873445289, + "name": "good first issue", + "node_id": "LA_kwDOLzc5q88AAAABmbBzqQ", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/good%20first%20issue" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 6, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "e4e669", + "default": true, + "description": "This doesn't seem right", + "id": 6873445291, + "name": "invalid", + "node_id": "LA_kwDOLzc5q88AAAABmbBzqw", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/invalid" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 7, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "d876e3", + "default": true, + "description": "Further information is requested", + "id": 6873445293, + "name": "question", + "node_id": "LA_kwDOLzc5q88AAAABmbBzrQ", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/question" + } + ], + [ + "acmeCo/issue_labels", + { + "_meta": { + "op": "u", + "row_id": 8, + "uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef" + }, + "color": "ffffff", + "default": true, + "description": "This will not be worked on", + "id": 6873445296, + "name": "wontfix", + "node_id": "LA_kwDOLzc5q88AAAABmbBzsA", + "repository": "sourcegithub1/testsource", + "url": "https://api.github.com/repos/sourcegithub1/testsource/labels/wontfix" + } + ] +] diff --git a/source-github/tests/snapshots/source_github_tests_test_snapshots__discover__stdout.json b/source-github/tests/snapshots/source_github_tests_test_snapshots__discover__stdout.json new file mode 100644 index 0000000000..8169930b81 --- /dev/null +++ b/source-github/tests/snapshots/source_github_tests_test_snapshots__discover__stdout.json @@ -0,0 +1,1421 @@ +[ + { + "recommendedName": "issue_timeline_events", + "resourceConfig": { + "stream": "issue_timeline_events", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "issue_number" + ], + "additionalProperties": true, + "properties": { + "issue_number": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/issue_number" + ] + }, + { + "recommendedName": "assignees", + "resourceConfig": { + "stream": "assignees", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "branches", + "resourceConfig": { + "stream": "branches", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/name" + ] + }, + { + "recommendedName": "collaborators", + "resourceConfig": { + "stream": "collaborators", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "comments", + "resourceConfig": { + "stream": "comments", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "commit_comment_reactions", + "resourceConfig": { + "stream": "commit_comment_reactions", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "commit_comments", + "resourceConfig": { + "stream": "commit_comments", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "commits", + "resourceConfig": { + "stream": "commits", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "sha" + ], + "properties": { + "sha": { + "type": "string" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/sha" + ] + }, + { + "recommendedName": "contributor_activity", + "resourceConfig": { + "stream": "contributor_activity", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "title": "Contributor Activity", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "deployments", + "resourceConfig": { + "stream": "deployments", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "events", + "resourceConfig": { + "stream": "events", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "issue_comment_reactions", + "resourceConfig": { + "stream": "issue_comment_reactions", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "issue_events", + "resourceConfig": { + "stream": "issue_events", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "issue_labels", + "resourceConfig": { + "stream": "issue_labels", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "issue_milestones", + "resourceConfig": { + "stream": "issue_milestones", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "issue_reactions", + "resourceConfig": { + "stream": "issue_reactions", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "issues", + "resourceConfig": { + "stream": "issues", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "additionalProperties": true, + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "organizations", + "resourceConfig": { + "stream": "organizations", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "project_cards", + "resourceConfig": { + "stream": "project_cards", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "project_columns", + "resourceConfig": { + "stream": "project_columns", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "projects", + "resourceConfig": { + "stream": "projects", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "pull_request_comment_reactions", + "resourceConfig": { + "stream": "pull_request_comment_reactions", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "pull_request_commits", + "resourceConfig": { + "stream": "pull_request_commits", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "sha" + ], + "properties": { + "sha": { + "type": "string" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/sha" + ] + }, + { + "recommendedName": "pull_request_stats", + "resourceConfig": { + "stream": "pull_request_stats", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "projects_v2", + "resourceConfig": { + "stream": "projects_v2", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "pull_requests", + "resourceConfig": { + "stream": "pull_requests", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "releases", + "resourceConfig": { + "stream": "releases", + "syncMode": "incremental", + "cursorField": [ + "created_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "repositories", + "resourceConfig": { + "stream": "repositories", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "review_comments", + "resourceConfig": { + "stream": "review_comments", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "reviews", + "resourceConfig": { + "stream": "reviews", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "stargazers", + "resourceConfig": { + "stream": "stargazers", + "syncMode": "incremental", + "cursorField": [ + "starred_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "user_id", + "starred_at" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "starred_at": { + "type": "string", + "format": "date-time" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/user_id" + ] + }, + { + "recommendedName": "tags", + "resourceConfig": { + "stream": "tags", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/name" + ] + }, + { + "recommendedName": "teams", + "resourceConfig": { + "stream": "teams", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "team_members", + "resourceConfig": { + "stream": "team_members", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id", + "team_slug" + ], + "properties": { + "id": { + "type": "integer" + }, + "team_slug": { + "type": "string" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id", + "/team_slug" + ] + }, + { + "recommendedName": "users", + "resourceConfig": { + "stream": "users", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "workflows", + "resourceConfig": { + "stream": "workflows", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-04/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "workflow_runs", + "resourceConfig": { + "stream": "workflow_runs", + "syncMode": "incremental", + "cursorField": [ + "updated_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-04/schema#", + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "workflow_jobs", + "resourceConfig": { + "stream": "workflow_jobs", + "syncMode": "incremental", + "cursorField": [ + "completed_at" + ] + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-04/schema#", + "type": "object", + "required": [ + "id", + "run_id" + ], + "properties": { + "id": { + "type": "integer" + }, + "run_id": { + "type": "integer" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/id" + ] + }, + { + "recommendedName": "team_memberships", + "resourceConfig": { + "stream": "team_memberships", + "syncMode": "full_refresh" + }, + "documentSchema": { + "$schema": "https://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + }, + "_meta": { + "type": "object", + "properties": { + "row_id": { + "type": "integer" + } + }, + "required": [ + "row_id" + ] + } + }, + "x-infer-schema": true + }, + "key": [ + "/url" + ] + } +] diff --git a/source-github/tests/snapshots/source_github_tests_test_snapshots__spec__stdout.json b/source-github/tests/snapshots/source_github_tests_test_snapshots__spec__stdout.json new file mode 100644 index 0000000000..dda4700a1e --- /dev/null +++ b/source-github/tests/snapshots/source_github_tests_test_snapshots__spec__stdout.json @@ -0,0 +1,183 @@ +[ + { + "protocol": 3032023, + "configSchema": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "GitHub Source Spec", + "type": "object", + "required": [ + "start_date", + "repositories", + "credentials" + ], + "additionalProperties": true, + "properties": { + "credentials": { + "type": "object", + "title": "Authentication Method", + "description": "Choose either OAuth or Personal Access Token.", + "discriminator": { + "propertyName": "option_title" + }, + "oneOf": [ + { + "type": "object", + "title": "OAuth", + "x-oauth2-provider": "github", + "required": [ + "access_token" + ], + "properties": { + "option_title": { + "type": "string", + "const": "OAuth Credentials" + }, + "access_token": { + "type": "string", + "title": "Access Token", + "description": "OAuth access token", + "airbyte_secret": true + }, + "client_id": { + "type": "string", + "title": "client_id", + "description": "client_id", + "airbyte_secret": true + }, + "client_secret": { + "type": "string", + "title": "client_secret", + "description": "client_secret", + "airbyte_secret": true + } + } + }, + { + "type": "object", + "title": "Personal Access Token", + "required": [ + "personal_access_token" + ], + "properties": { + "option_title": { + "type": "string", + "const": "PAT Credentials" + }, + "personal_access_token": { + "type": "string", + "title": "Personal Access Tokens", + "description": "Log into GitHub and then generate a personal access token: https://github.com/settings/tokens. To load balance your API quota consumption across multiple API tokens, input multipletokens separated with \",\"", + "airbyte_secret": true + } + } + } + ] + }, + "repositories": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[\\w.-]+/(([\\w.-]*\\*)|[\\w.-]+(?