diff --git a/.changeset/soft-mugs-guess.md b/.changeset/soft-mugs-guess.md new file mode 100644 index 000000000..0062c04ac --- /dev/null +++ b/.changeset/soft-mugs-guess.md @@ -0,0 +1,5 @@ +--- +"openapi-typescript": minor +--- + +Add prefixItems support diff --git a/docs/package.json b/docs/package.json index 0b66381ad..651549b3d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -9,23 +9,23 @@ "update-contributors": "node scripts/update-contributors.js" }, "dependencies": { - "@algolia/client-search": "^4.17.2", + "@algolia/client-search": "^4.18.0", "@astrojs/preact": "^2.2.1", "@astrojs/react": "^2.2.1", "@docsearch/css": "^3.5.1", "@docsearch/react": "^3.5.1", - "@types/react": "^18.2.12", - "@types/react-dom": "^18.2.5", - "astro": "^2.6.4", + "@types/react": "^18.2.14", + "@types/react-dom": "^18.2.6", + "astro": "^2.8.0", "preact": "^10.15.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "sass": "^1.63.4" + "sass": "^1.63.6" }, "devDependencies": { "@astrojs/sitemap": "^1.3.3", - "@types/node": "^20.3.1", + "@types/node": "^20.4.0", "html-escaper": "^3.0.3", - "typescript": "^5.1.3" + "typescript": "^5.1.6" } } diff --git a/package.json b/package.json index 04d9c63b0..cecbf32f0 100644 --- a/package.json +++ b/package.json @@ -21,15 +21,15 @@ }, "devDependencies": { "@changesets/changelog-github": "^0.4.8", - "@changesets/cli": "^2.26.1", - "@typescript-eslint/eslint-plugin": "^5.59.11", - "@typescript-eslint/parser": "^5.59.11", + "@changesets/cli": "^2.26.2", + "@typescript-eslint/eslint-plugin": "^5.61.0", + "@typescript-eslint/parser": "^5.61.0", "del-cli": "^5.0.0", - "eslint": "^8.42.0", + "eslint": "^8.44.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "npm-run-all": "^4.1.5", "prettier": "^2.8.8", - "typescript": "^5.1.3" + "typescript": "^5.1.6" } } diff --git a/packages/openapi-fetch/package.json b/packages/openapi-fetch/package.json index 6bbb6cd48..a36be1f75 100644 --- a/packages/openapi-fetch/package.json +++ b/packages/openapi-fetch/package.json @@ -58,12 +58,12 @@ }, "devDependencies": { "del-cli": "^5.0.0", - "esbuild": "^0.18.3", - "nanostores": "^0.8.1", + "esbuild": "^0.18.11", + "nanostores": "^0.9.3", "openapi-typescript": "*", "prettier": "^2.8.8", - "typescript": "^5.1.3", - "vitest": "^0.32.0", + "typescript": "^5.1.6", + "vitest": "^0.33.0", "vitest-fetch-mock": "^0.2.2" } } diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/examples/python/oneClicks.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/examples/python/oneClicks.yml new file mode 100644 index 000000000..32ee00c88 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/examples/python/oneClicks.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.getenv("$DIGITALOCEAN_TOKEN")) + + one_click_apps = client.one_clicks.list() \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/examples/python/oneClicks_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/examples/python/oneClicks_create.yml new file mode 100644 index 000000000..13b29ae2d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/examples/python/oneClicks_create.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + install_req = { + "addon_slugs": ["kube-state-metrics", "loki"], + "cluster_uuid": "50a994b6-c303-438f-9495-7e896cfe6b08", + } + install_resp = client.one_clicks.install_kubernetes(install_req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_install_kubernetes.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_install_kubernetes.yml index 4da37f76c..51180956b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_install_kubernetes.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_install_kubernetes.yml @@ -36,6 +36,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/oneClicks_create.yml' + - $ref: 'examples/python/oneClicks_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_list.yml index 0ad165fbc..fe0be07b6 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/1-clicks/oneClicks_list.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/oneClicks.yml' + - $ref: 'examples/python/oneClicks.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/account/account_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/account/account_get.yml index ef910858e..e8f9ac38b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/account/account_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/account/account_get.yml @@ -26,6 +26,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/account_get.yml' + - $ref: 'examples/python/account_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/account/examples/python/account_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/account/examples/python/account_get.yml new file mode 100644 index 000000000..1f5f3c741 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/account/examples/python/account_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.getenv("$DIGITALOCEAN_TOKEN")) + + account_info = client.account.get() \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_get.yml index 5c5b5c49b..295adc49a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_get.yml @@ -33,7 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/actions_get.yml' - $ref: 'examples/go/actions_get.yml' - $ref: 'examples/ruby/actions_get.yml' - + - $ref: 'examples/python/actions_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_list.yml index 6d4686210..72f434655 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/actions_list.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/actions_list.yml' - $ref: 'examples/go/actions_list.yml' - $ref: 'examples/ruby/actions_list.yml' + - $ref: 'examples/python/actions_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/examples/python/actions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/examples/python/actions_get.yml new file mode 100644 index 000000000..6d6a303a8 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/examples/python/actions_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.getenv("$DIGITALOCEAN_TOKEN")) + + get_resp = client.actions.get(action_id=36804636) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/examples/python/actions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/examples/python/actions_list.yml new file mode 100644 index 000000000..bf009eafa --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/actions/examples/python/actions_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.getenv("$DIGITALOCEAN_TOKEN")) + + list_resp = client.actions.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_assign_alertDestinations.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_assign_alertDestinations.yml index 4160b5dd2..930b3062b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_assign_alertDestinations.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_assign_alertDestinations.yml @@ -41,6 +41,8 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_assign_alertDestinations.yml' + - $ref: 'examples/python/apps_assign_alertDestinations.yml' + security: - bearer_auth: - 'write' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_cancel_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_cancel_deployment.yml index 4238cb928..f9f2ed7fa 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_cancel_deployment.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_cancel_deployment.yml @@ -32,6 +32,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_cancel_deployment.yml' + - $ref: 'examples/python/apps_cancel_deployment.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_commit_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_commit_rollback.yml index 2b75311da..34f398750 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_commit_rollback.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_commit_rollback.yml @@ -32,6 +32,7 @@ responses: x-codeSamples: - $ref: "examples/curl/commit_app_rollback.yml" + - $ref: "examples/python/commit_app_rollback.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create.yml index 933b5a0e6..8c14b82e8 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create.yml @@ -54,6 +54,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_create.yml' + - $ref: 'examples/python/apps_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_deployment.yml index a26d4b8e8..58482fb14 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_deployment.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_deployment.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_create_deployment.yml' + - $ref: 'examples/python/apps_create_deployment.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_rollback.yml index c9cdf5c7a..0c3a4492f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_rollback.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_create_rollback.yml @@ -45,6 +45,7 @@ responses: x-codeSamples: - $ref: "examples/curl/apps_create_rollback.yml" + - $ref: "examples/python/apps_create_rollback.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_delete.yml index 4d790c260..9cc3f7e0c 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_delete.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_delete.yml' + - $ref: 'examples/python/apps_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get.yml index ce66f95a0..d351c4018 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get.yml @@ -35,6 +35,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get.yml' + - $ref: 'examples/python/apps_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_deployment.yml index c4c7d3d12..b7c5fdce5 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_deployment.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_deployment.yml @@ -32,6 +32,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get_deployment.yml' + - $ref: 'examples/python/apps_get_deployment.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_instanceSize.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_instanceSize.yml index ffa53d052..d209791f5 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_instanceSize.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_instanceSize.yml @@ -32,6 +32,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get_instanceSize.yml' + - $ref: 'examples/python/apps_get_instanceSize.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs.yml index e52a5cef0..b36827f40 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs.yml @@ -38,6 +38,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get_logs.yml' + - $ref: 'examples/python/apps_get_logs.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment.yml index e142102f5..22310ac03 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get_logs_active_deployment.yml' + - $ref: 'examples/python/apps_get_logs_active_deployment.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment_aggregate.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment_aggregate.yml index e8c1a4afb..940593cb3 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment_aggregate.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_active_deployment_aggregate.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get_logs_active_deployment_aggregate.yml' + - $ref: 'examples/python/apps_get_logs_active_deployment_aggregate.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_aggregate.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_aggregate.yml index 6c4ac2113..941bd4f9d 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_aggregate.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_logs_aggregate.yml @@ -38,6 +38,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get_logs_aggregate.yml' + - $ref: 'examples/python/apps_get_logs_aggregate.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_metrics_bandwidth_usage.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_metrics_bandwidth_usage.yml index e3220ae26..9a968f487 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_metrics_bandwidth_usage.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_metrics_bandwidth_usage.yml @@ -38,6 +38,7 @@ responses: x-codeSamples: - $ref: examples/curl/apps_get_metrics_bandwidth_usage.yml + - $ref: examples/python/apps_get_metrics_bandwidth_usage.yml security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_tier.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_tier.yml index 2c93eb1a9..1ccb9cf8d 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_tier.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_get_tier.yml @@ -31,6 +31,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_get_tier.yml' + - $ref: 'examples/python/apps_get_tier.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list.yml index 9891a7a49..e5f54b2ba 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list.yml @@ -31,6 +31,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_list.yml' + - $ref: 'examples/python/apps_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_alerts.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_alerts.yml index efe0689f7..bb5f962c2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_alerts.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_alerts.yml @@ -33,6 +33,8 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_list_alerts.yml' + - $ref: 'examples/python/apps_list_alerts.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_deployments.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_deployments.yml index 29600d54c..132c30b1f 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_deployments.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_deployments.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_list_deployments.yml' + - $ref: 'examples/python/apps_list_deployments.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_instanceSizes.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_instanceSizes.yml index 87c842e73..cae0b3a1b 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_instanceSizes.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_instanceSizes.yml @@ -25,6 +25,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_list_instanceSizes.yml' + - $ref: 'examples/python/apps_list_instanceSizes.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_metrics_bandwidth_usage.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_metrics_bandwidth_usage.yml index aa7319904..9ca738082 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_metrics_bandwidth_usage.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_metrics_bandwidth_usage.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: examples/curl/apps_list_metrics_bandwidth_usage.yml + - $ref: examples/python/apps_list_metrics_bandwidth_usage.yml security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_regions.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_regions.yml index 9c7934279..a735b5cf3 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_regions.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_regions.yml @@ -25,6 +25,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_list_regions.yml' + - $ref: 'examples/python/apps_list_regions.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_tiers.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_tiers.yml index 357b84f6c..09a560be0 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_tiers.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_list_tiers.yml @@ -25,6 +25,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_list_tiers.yml' + - $ref: 'examples/python/apps_list_tiers.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_revert_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_revert_rollback.yml index 745200ccc..20b900e22 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_revert_rollback.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_revert_rollback.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: "examples/curl/revert_app_rollback.yml" + - $ref: "examples/python/revert_app_rollback.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_update.yml index 2e7c1a655..e75dc7cad 100755 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_update.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_update.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/apps_update.yml' + - $ref: 'examples/python/apps_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_validate_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_validate_rollback.yml index b534fc299..25e9c03f5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_validate_rollback.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/apps_validate_rollback.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: "examples/curl/apps_validate_rollback.yml" + - $ref: "examples/python/apps_validate_rollback.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_assign_alertDestinations.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_assign_alertDestinations.yml new file mode 100644 index 000000000..1da37c728 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_assign_alertDestinations.yml @@ -0,0 +1,19 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "emails": ["sammy@digitalocean.com"], + "slack_webhooks": [ + { + "url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX", + "channel": "Channel Name", + } + ], + } + + post_resp = client.apps.assign_alert_destinations("12345", "24556", req) + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_cancel_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_cancel_deployment.yml new file mode 100644 index 000000000..b9c8a7f83 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_cancel_deployment.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + cancel_resp = client.apps.cancel_deployment("12345", "24556") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create.yml new file mode 100644 index 000000000..a1922ee8b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create.yml @@ -0,0 +1,26 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_resp = client.apps.create( + { + "spec": { + "name": "web-app", + "region": "nyc", + "services": [ + { + "name": "api", + "github": {}, + "run_command": "bin/api", + "environment_slug": "node-js", + "instance_count": 2, + "instance_size_slug": "basic-xxs", + "routes": [], + } + ], + } + } + ) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create_deployment.yml new file mode 100644 index 000000000..c50fc1100 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create_deployment.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_resp = client.apps.create_deployment(app_id="b6bdf840", body={"force_build": True}) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create_rollback.yml new file mode 100644 index 000000000..79f1038ed --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_create_rollback.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_resp = client.apps.create_rollback(app_id="b6bdf840") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_delete.yml new file mode 100644 index 000000000..d0ea500fd --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.apps.delete(id="b7d64052") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get.yml new file mode 100644 index 000000000..f0965d138 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_resp = client.apps.get(id="4f6c71e2") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_deployment.yml new file mode 100644 index 000000000..7b3e74a82 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_deployment.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.get_deployment(app_id="a6adf840", deployment_id="b6bdf840") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_instanceSize.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_instanceSize.yml new file mode 100644 index 000000000..fc0a037bc --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_instanceSize.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.get_instance_size(slug="basic-xxs") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs.yml new file mode 100644 index 000000000..f7c644642 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.get_logs(app_id="4f6c71e2", deployment_id="3aa4d20e", component_name="component") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_active_deployment.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_active_deployment.yml new file mode 100644 index 000000000..79768e534 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_active_deployment.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.get_logs_active_deployment(app_id="a6adf840", component_name="component") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_active_deployment_aggregate.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_active_deployment_aggregate.yml new file mode 100644 index 000000000..ccf2b6935 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_active_deployment_aggregate.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.get_logs_active_deployment_aggregate(app_id="a6adf840") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_aggregate.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_aggregate.yml new file mode 100644 index 000000000..1a102b661 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_logs_aggregate.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.get_logs_aggregate(app_id="b6bdf840", deployment_id="a6adf840") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_metrics_bandwidth_usage.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_metrics_bandwidth_usage.yml new file mode 100644 index 000000000..27fe8f0be --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_metrics_bandwidth_usage.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.get_metrics_bandwidth_daily(app_id="4f6c71e2") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_tier.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_tier.yml new file mode 100644 index 000000000..b7e3dfdef --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_get_tier.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_resp = client.apps.get_tier(slug="basic") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list.yml new file mode 100644 index 000000000..a17077e78 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_alerts.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_alerts.yml new file mode 100644 index 000000000..7cddd2d30 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_alerts.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.list_alerts(app_id="4f6c71e2") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_deployments.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_deployments.yml new file mode 100644 index 000000000..8b8af2d32 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_deployments.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.list_deployments(app_id="4f6c71e2") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_instanceSizes.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_instanceSizes.yml new file mode 100644 index 000000000..8fc8f9f1c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_instanceSizes.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.list_instance_sizes() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_metrics_bandwidth_usage.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_metrics_bandwidth_usage.yml new file mode 100644 index 000000000..d68f50587 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_metrics_bandwidth_usage.yml @@ -0,0 +1,16 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "app_ids": [ + "4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf", + "c2a93513-8d9b-4223-9d61-5e7272c81cf5", + ], + "date": "2023-01-17T00:00:00Z", + } + + get_resp = client.apps.list_metrics_bandwidth_daily(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_regions.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_regions.yml new file mode 100644 index 000000000..8a38f59f2 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_regions.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.list_regions() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_tiers.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_tiers.yml new file mode 100644 index 000000000..997b3136c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_list_tiers.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.apps.list_tiers() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_update.yml new file mode 100644 index 000000000..0fdbbda96 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_update.yml @@ -0,0 +1,206 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + req = { + "spec": { + "name": "web-app-01", + "region": "nyc", + "domains": [ + { + "domain": "app.example.com", + "type": "DEFAULT", + "wildcard": True, + "zone": "example.com", + "minimum_tls_version": "1.3", + } + ], + "services": [], + "static_sites": [ + { + "cors": { + "allow_origins": [ + {"exact": "https://www.example.com"}, + {"regex": "^.*example.com"}, + ], + "allow_methods": [ + "GET", + "OPTIONS", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + "allow_headers": ["Content-Type", "X-Custom-Header"], + "expose_headers": ["Content-Encoding", "X-Custom-Header"], + "max_age": "5h30m", + "allow_credentials": False, + }, + "routes": [{"path": "/api", "preserve_path_prefix": True}], + } + ], + "jobs": [ + { + "name": "api", + "gitlab": { + "branch": "main", + "deploy_on_push": True, + "repo": "digitalocean/sample-golang", + }, + "image": { + "registry": "registry.hub.docker.com", + "registry_type": "DOCR", + "repository": "origin/master", + "tag": "latest", + }, + "dockerfile_path": "path/to/Dockerfile", + "build_command": "npm run build", + "run_command": "bin/api", + "source_dir": "path/to/dir", + "envs": [ + { + "key": "BASE_URL", + "scope": "BUILD_TIME", + "type": "GENERAL", + "value": "http://example.com", + } + ], + "environment_slug": "node-js", + "log_destinations": { + "name": "my_log_destination", + "papertrail": { + "endpoint": "https://mypapertrailendpoint.com" + }, + "datadog": { + "endpoint": "https://mydatadogendpoint.com", + "api_key": "abcdefghijklmnopqrstuvwxyz0123456789", + }, + "logtail": { + "token": "abcdefghijklmnopqrstuvwxyz0123456789" + }, + }, + "instance_count": 2, + "instance_size_slug": "basic-xxs", + "kind": "PRE_DEPLOY", + } + ], + "workers": [ + { + "name": "api", + "gitlab": { + "branch": "main", + "deploy_on_push": True, + "repo": "digitalocean/sample-golang", + }, + "image": { + "registry": "registry.hub.docker.com", + "registry_type": "DOCR", + "repository": "origin/master", + "tag": "latest", + }, + "dockerfile_path": "path/to/Dockerfile", + "build_command": "npm run build", + "run_command": "bin/api", + "source_dir": "path/to/dir", + "envs": [ + { + "key": "BASE_URL", + "scope": "BUILD_TIME", + "type": "GENERAL", + "value": "http://example.com", + } + ], + "environment_slug": "node-js", + "log_destinations": { + "name": "my_log_destination", + "papertrail": { + "endpoint": "https://mypapertrailendpoint.com" + }, + "datadog": { + "endpoint": "https://mydatadogendpoint.com", + "api_key": "abcdefghijklmnopqrstuvwxyz0123456789", + }, + "logtail": { + "token": "abcdefghijklmnopqrstuvwxyz0123456789" + }, + }, + "instance_count": 2, + "instance_size_slug": "basic-xxs", + } + ], + "functions": [ + { + "cors": { + "allow_origins": [ + {"exact": "https://www.example.com"}, + {"regex": "^.*example.com"}, + ], + "allow_methods": [ + "GET", + "OPTIONS", + "POST", + "PUT", + "PATCH", + "DELETE", + ], + "allow_headers": ["Content-Type", "X-Custom-Header"], + "expose_headers": ["Content-Encoding", "X-Custom-Header"], + "max_age": "5h30m", + "allow_credentials": False, + }, + "routes": [{"path": "/api", "preserve_path_prefix": True}], + "name": "api", + "source_dir": "path/to/dir", + "alerts": [ + { + "rule": "CPU_UTILIZATION", + "disabled": False, + "operator": "GREATER_THAN", + "value": 2.32, + "window": "FIVE_MINUTES", + } + ], + "envs": [ + { + "key": "BASE_URL", + "scope": "BUILD_TIME", + "type": "GENERAL", + "value": "http://example.com", + } + ], + "gitlab": { + "branch": "main", + "deploy_on_push": True, + "repo": "digitalocean/sample-golang", + }, + "log_destinations": { + "name": "my_log_destination", + "papertrail": { + "endpoint": "https://mypapertrailendpoint.com" + }, + "datadog": { + "endpoint": "https://mydatadogendpoint.com", + "api_key": "abcdefghijklmnopqrstuvwxyz0123456789", + }, + "logtail": { + "token": "abcdefghijklmnopqrstuvwxyz0123456789" + }, + }, + } + ], + "databases": [ + { + "cluster_name": "cluster_name", + "db_name": "my_db", + "db_user": "superuser", + "engine": "PG", + "name": "prod-db", + "production": True, + "version": "12", + } + ], + } + } + update_resp = client.apps.update(id="bb245ba", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_validate_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_validate_rollback.yml new file mode 100644 index 000000000..ece0f5d9d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/apps_validate_rollback.yml @@ -0,0 +1,10 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + validate_req = {"deployment_id": "2", "skip_pin": False} + + validate_resp = client.apps.validate_rollback("1", validate_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/commit_app_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/commit_app_rollback.yml new file mode 100644 index 000000000..b5f056069 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/commit_app_rollback.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + commit_resp = client.apps.commit_rollback("1") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/revert_app_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/revert_app_rollback.yml new file mode 100644 index 000000000..1c7ba51a0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/revert_app_rollback.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + revert_resp = client.apps.revert_rollback("1") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/rollback_app.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/rollback_app.yml new file mode 100644 index 000000000..3598684e4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/rollback_app.yml @@ -0,0 +1,10 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + post_req = {"deployment_id": "2", "skip_pin": False} + + post_resp = client.apps.create_rollback("1", post_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/validate_app_rollback.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/validate_app_rollback.yml new file mode 100644 index 000000000..ece0f5d9d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/apps/examples/python/validate_app_rollback.yml @@ -0,0 +1,10 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + validate_req = {"deployment_id": "2", "skip_pin": False} + + validate_resp = client.apps.validate_rollback("1", validate_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/balance_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/balance_get.yml index fac32eac4..bfed76525 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/balance_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/balance_get.yml @@ -30,6 +30,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/balance_get.yml' + - $ref: 'examples/python/balance_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/billingHistory_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/billingHistory_list.yml index bcd0be5f3..1ca5f946f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/billingHistory_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/billingHistory_list.yml @@ -30,6 +30,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/billingHistory_list.yml' + - $ref: 'examples/python/billingHistory_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/balance_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/balance_get.yml new file mode 100644 index 000000000..630e9849c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/balance_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + balance = client.balance.get() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/billingHistory_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/billingHistory_list.yml new file mode 100644 index 000000000..aa5a53246 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/billingHistory_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + balance = client.billing_history.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_byUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_byUUID.yml new file mode 100644 index 000000000..8a3221338 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_byUUID.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + invoices = client.invoices.get_by_uuid(invoice_uuid=1) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_csvByUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_csvByUUID.yml new file mode 100644 index 000000000..c3cceff95 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_csvByUUID.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + invoices = client.invoices.get_csv_by_uuid(invoice_uuid=1) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_pdfByUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_pdfByUUID.yml new file mode 100644 index 000000000..32c84fe8c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_pdfByUUID.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + invoices = client.invoices.get_pdf_by_uuid(invoice_uuid=1) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_summaryByUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_summaryByUUID.yml new file mode 100644 index 000000000..6765b2aff --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_get_summaryByUUID.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + invoice = client.invoices.get_summary_by_uuid(invoice_uuid="1") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_list.yml new file mode 100644 index 000000000..508391b7a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/examples/python/invoices_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + balance = client.invoices.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_byUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_byUUID.yml index 98b74a203..6a41a86c2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_byUUID.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_byUUID.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/invoices_get_byUUID.yml' + - $ref: 'examples/python/invoices_get_byUUID.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_csvByUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_csvByUUID.yml index 2371e53ba..2208eed78 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_csvByUUID.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_csvByUUID.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/invoices_get_csvByUUID.yml' + - $ref: 'examples/python/invoices_get_csvByUUID.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_pdfByUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_pdfByUUID.yml index 13ab3d4c9..026bf8cf0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_pdfByUUID.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_pdfByUUID.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/invoices_get_pdfByUUID.yml' + - $ref: 'examples/python/invoices_get_pdfByUUID.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_summaryByUUID.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_summaryByUUID.yml index 26552af29..2e5af5fa4 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_summaryByUUID.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_get_summaryByUUID.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/invoices_get_summaryByUUID.yml' + - $ref: 'examples/python/invoices_get_summaryByUUID.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_list.yml index c0627eea0..97fb597d3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/billing/invoices_list.yml @@ -31,6 +31,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/invoices_list.yml' + - $ref: 'examples/python/invoices_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_create_endpoint.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_create_endpoint.yml index a43d4220e..7ef3abbb5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_create_endpoint.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_create_endpoint.yml @@ -55,6 +55,7 @@ x-codeSamples: - $ref: 'examples/curl/endpoints_create.yml' - $ref: 'examples/go/endpoints_create.yml' - $ref: 'examples/ruby/endpoints_create.yml' + - $ref: 'examples/python/endpoints_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_delete_endpoint.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_delete_endpoint.yml index fbf99a922..64f0e3c6c 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_delete_endpoint.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_delete_endpoint.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/endpoints_delete.yml' - $ref: 'examples/go/endpoints_delete.yml' - $ref: 'examples/ruby/endpoints_delete.yml' + - $ref: 'examples/python/endpoints_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_get_endpoint.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_get_endpoint.yml index 94ecad5d3..a4cfc90a1 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_get_endpoint.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_get_endpoint.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/endpoints_get.yml' - $ref: 'examples/go/endpoints_get.yml' - $ref: 'examples/ruby/endpoints_get.yml' + - $ref: 'examples/python/endpoints_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_list_endpoints.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_list_endpoints.yml index 46a4f1c5f..e80112637 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_list_endpoints.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_list_endpoints.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/endpoints_list.yml' - $ref: 'examples/go/endpoints_list.yml' - $ref: 'examples/ruby/endpoints_list.yml' + - $ref: 'examples/python/endpoints_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_purge_cache.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_purge_cache.yml index cd4a13e0b..2561aeed5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_purge_cache.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_purge_cache.yml @@ -48,6 +48,7 @@ x-codeSamples: - $ref: 'examples/curl/purge_cdn_cache.yml' - $ref: 'examples/go/purge_cdn_cache.yml' - $ref: 'examples/ruby/purge_cdn_cache.yml' + - $ref: 'examples/python/purge_cdn_cache.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_update_endpoint.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_update_endpoint.yml index 10ea0d6fd..b27aedc69 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_update_endpoint.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/cdn_update_endpoint.yml @@ -44,6 +44,7 @@ x-codeSamples: - $ref: 'examples/curl/endpoints_update.yml' - $ref: 'examples/go/endpoints_update.yml' - $ref: 'examples/ruby/endpoints_update.yml' + - $ref: 'examples/python/endpoints_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_create.yml new file mode 100644 index 000000000..6e2faef31 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_create.yml @@ -0,0 +1,9 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_req = {"origin": "static-images.nyc3.digitaloceanspaces.com", "ttl": 3600} + create_resp = client.cdn.create_endpoint(create_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_delete.yml new file mode 100644 index 000000000..235e19a29 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.cdn.delete_endpoint(cdn_id="bba23af") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_get.yml new file mode 100644 index 000000000..5d223243b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.cdn.get_endpoint(cdn_id="aa34ba1") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_list.yml new file mode 100644 index 000000000..0c70f244d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.cdn.list_endpoints() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_update.yml new file mode 100644 index 000000000..be1ef2de6 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/endpoints_update.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + update_req = { + "ttl": 3600, + "certificate_id": "892071a0-bb95-49bc-8021-3afd67a210bf", + "custom_domain": "static.example.com", + } + + update_resp = client.cdn.update_endpoints("19f06b6a", update_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/purge_cdn_cache.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/purge_cdn_cache.yml new file mode 100644 index 000000000..63069ce6b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/cdn/examples/python/purge_cdn_cache.yml @@ -0,0 +1,10 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + purge_req = {"files": ["path/to/image.png", "path/to/css/*"]} + + purge_resp = client.cdn.purge_cache("19f06b6a", purge_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_create.yml index 2c9f5fbce..3cd9bef4f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_create.yml @@ -46,6 +46,7 @@ x-codeSamples: - $ref: 'examples/curl/certificates_create.yml' - $ref: 'examples/go/certificates_create.yml' - $ref: 'examples/ruby/certificates_create.yml' + - $ref: 'examples/python/certificates_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_delete.yml index bc606068f..b755cc3dd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_delete.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/certificates_delete.yml' - $ref: 'examples/go/certificates_delete.yml' - $ref: 'examples/ruby/certificates_delete.yml' + - $ref: 'examples/python/certificates_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_get.yml index ec13aaf6f..85c99f5de 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/certificates_get.yml' - $ref: 'examples/go/certificates_get.yml' - $ref: 'examples/ruby/certificates_get.yml' + - $ref: 'examples/python/certificates_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_list.yml index b2d6b4716..0b7aced28 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/certificates_list.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/certificates_list.yml' - $ref: 'examples/go/certificates_list.yml' - $ref: 'examples/ruby/certificates_list.yml' + - $ref: 'examples/python/certificates_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_create.yml new file mode 100644 index 000000000..1eae01cf7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_create.yml @@ -0,0 +1,16 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_resp = client.certificates.create( + { + "name": "web-cert-01", + "type": "lets_encrypt", + "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDBIZMz8pnK6V52\nSVf+CYssOfCQHAx5f0Ou5rYbq3xNh8VHAIYJCQ1QxQIxKSP6+uODSYrb2KWyurP1\nDwGb8OYm0J3syEDtCUQik1cpCzpeNlAZ2f8FzXyYQAqPopxdRpsFz8DtZnVvu86X\nwrE4oFPl9MReICmZfBNWylpV5qgFPoXyJ70ZAsTm3cEe3n+LBXEnY4YrVDRWxA3w\nZ2mzZ03HZ1hHrxK9CMnS829U+8sK+UneZpCO7yLRPuxwhmps0wpK/YuZZfRAKF1F\nZRnak/SIQ28rnWufmdg16YqqHgl5JOgnb3aslKRvL4dI2Gwnkd2IHtpZnTR0gxFX\nfqqbQwuRAgMBAAECggEBAILLmkW0JzOkmLTDNzR0giyRkLoIROqDpfLtjKdwm95l\n9NUBJcU4vCvXQITKt/NhtnNTexcowg8pInb0ksJpg3UGE+4oMNBXVi2UW5MQZ5cm\ncVkQqgXkBF2YAY8FMaB6EML+0En2+dGR/3gIAr221xsFiXe1kHbB8Nb2c/d5HpFt\neRpLVJnK+TxSr78PcZA8DDGlSgwvgimdAaFUNO2OqB9/0E9UPyKk2ycdff/Z6ldF\n0hkCLtdYTTl8Kf/OwjcuTgmA2O3Y8/CoQX/L+oP9Rvt9pWCEfuebiOmHJVPO6Y6x\ngtQVEXwmF1pDHH4Qtz/e6UZTdYeMl9G4aNO2CawwcaYECgYEA57imgSOG4XsJLRh\nGGncV9R/xhy4AbDWLtAMzQRX4ktvKCaHWyQV2XK2we/cu29NLv2Y89WmerTNPOU+\nP8+pB31uty2ELySVn15QhKpQClVEAlxCnnNjXYrii5LOM80+lVmxvQwxVd8Yz8nj\nIntyioXNBEnYS7V2RxxFGgFun1cCgYEA1V3W+Uyamhq8JS5EY0FhyGcXdHd70K49\nW1ou7McIpncf9tM9acLS1hkI98rd2T69Zo8mKoV1V2hjFaKUYfNys6tTkYWeZCcJ\n3rW44j9DTD+FmmjcX6b8DzfybGLehfNbCw6n67/r45DXIV/fk6XZfkx6IEGO4ODt\nNfnvx4TuI1cCgYBACDiKqwSUvmkUuweOo4IuCxyb5Ee8v98P5JIE/VRDxlCbKbpx\npxEam6aBBQVcDi+n8o0H3WjjlKc6UqbW/01YMoMrvzotxNBLz8Y0QtQHZvR6KoCG\nRKCKstxTcWflzKuknbqN4RapAhNbKBDJ8PMSWfyDWNyaXzSmBdvaidbF1QKBgDI0\no4oD0Xkjg1QIYAUu9FBQmb9JAjRnW36saNBEQS/SZg4RRKknM683MtoDvVIKJk0E\nsAlfX+4SXQZRPDMUMtA+Jyrd0xhj6zmhbwClvDMr20crF3fWdgcqtft1BEFmsuyW\nJUMe5OWmRkjPI2+9ncDPRAllA7a8lnSV/Crph5N/AoGBAIK249temKrGe9pmsmAo\nQbNuYSmwpnMoAqdHTrl70HEmK7ob6SIVmsR8QFAkH7xkYZc4Bxbx4h1bdpozGB+/\nAangbiaYJcAOD1QyfiFbflvI1RFeHgrk7VIafeSeQv6qu0LLMi2zUbpgVzxt78Wg\neTuK2xNR0PIM8OI7pRpgyj1I\n-----END PRIVATE KEY-----", + "leaf_certificate": "-----BEGIN CERTIFICATE-----\nMIIFFjCCA/6gAwIBAgISA0AznUJmXhu08/89ZuSPC/kRMA0GCSqGSIb3DQEBCwUA\nMEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD\nExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNjExMjQwMDIzMDBaFw0x\nNzAyMjIwMDIzMDBaMCQxIjAgBgNVBAMTGWNsb3VkLmFuZHJld3NvbWV0aGluZy5j\nb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBIZMz8pnK6V52SVf+\nCYssOfCQHAx5f0Ou5rYbq3xNh8VWHIYJCQ1QxQIxKSP6+uODSYrb2KWyurP1DwGb\n8OYm0J3syEDtCUQik1cpCzpeNlAZ2f8FzXyYQAqPopxdRpsFz8DtZnVvu86XwrE4\noFPl9MReICmZfBNWylpV5qgFPoXyJ70ZAsTm3cEe3n+LBXEnY4YrVDRWxA3wZ2mz\nZ03HZ1hHrxK9CMnS829U+8sK+UneZpCO7yLRPuxwhmps0wpK/YuZZfRAKF1FZRna\nk/SIQ28rnWufmdg16YqqHgl5JOgnb3aslKRvL4dI2Gwnkd2IHtpZnTR0gxFXfqqb\nQwuRAgMBAAGjggIaMIICFjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYB\nBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLsAFcxAhFX1\nMbCnzr9hEO5rL4jqMB8GA1UdIwQYMBaAFKhKamMEfd265tE5t6ZFZe/zqOyhMHAG\nCCsGAQUFBwEBBGQwYjAvBggrBgEFBQcwAYYjaHR0cDovL29jc3AuaW50LXgzLmxl\ndHNlbmNyeXB0Lm9yZy8wLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14My5s\nZXRzZW5jcnlwdC5vcmcvMCQGA1UdEQQdMBuCGWNsb3VkLmFuZHJld3NvbWV0aGlu\nZy5jb20wgf4GA1UdIASB9jCB8zAIBgZngQwBAgWrgeYGCysGAQQBgt8TAQEBMIHW\nMCYGCCsGAQUFBwIBFhpodHRwOi8vY3BzLmxldHNlbmNyeXB0Lm9yZzCBqwYIKwYB\nBQUHAgIwgZ4MgZtUaGlzIENlcnRpZmljYXRlIG1heSBvbmx5IGJlIHJlbGllZCB1\ncG9uIGJ5IFJlbHlpbmcgUGFydGllcyBhbmQgb25seSQ2ziBhY2NvcmRhbmNlIHdp\ndGggdGhlIENlcnRpZmljYXRlIFBvbGljeSBmb3VuZCBhdCBodHRwczovL2xldHNl\nbmNyeXB0Lm9yZy9yZXBvc2l0b3J5LzANBgkqhkiG9w0BAQsFAAOCAQEAOZVQvrjM\nPKXLARTjB5XsgfyDN3/qwLl7SmwGkPe+B+9FJpfScYG1JzVuCj/SoaPaK34G4x/e\niXwlwOXtMOtqjQYzNu2Pr2C+I+rVmaxIrCUXFmC205IMuUBEeWXG9Y/HvXQLPabD\nD3Gdl5+Feink9SDRP7G0HaAwq13hI7ARxkL9p+UIY39X0dV3WOboW2Re8nrkFXJ7\nq9Z6shK5QgpBfsLjtjNsQzaGV3ve1gOg25aTJGearBWOvEjJNA1wGMoKVXOtYwm/\nWyWoVdCQ8HmconcbJB6xc0UZ1EjvzRr5ZIvSa5uHZD0L3m7/kpPWlAlFJ7hHASPu\nUlF1zblDmg2Iaw==\n-----END CERTIFICATE-----", + "certificate_chain": "-----BEGIN CERTIFICATE-----\nMIIFFjCCA/6gAwIBAgISA0AznUJmXhu08/89ZuSPC/kRMA0GCSqGSIb3DQEBCwUA\nMEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD\nExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xNjExMjQwMDIzMDBaFw0x\nNzAyMjIwMDIzMDBaMCQxIjAgBgNVBAMTGWNsb3VkLmFuZHJld3NvbWV0aGluZy5j\nb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBIZMz7tnK6V52SVf+\nCYssOfCQHAx5f0Ou5rYbq3xNh8VHAIYJCQ1QxQIxKSP6+uODSYrb2KWyurP1DwGb\n8OYm0J3syEDtCUQik1cpCzpeNlAZ2f8FzXyYQAqPopxdRpsFz8DtZnVvu86XwrE4\noFPl9MReICmZfBNWylpV5qgFPoXyJ70ZAsTm3cEe3n+LBXEnY4YrVDRWxA3wZ2mz\nZ03HZ1hHrxK9CMnS829U+8sK+UneZpCO7yLRPuxwhmps0wpK/YuZZfRAKF1FZRna\nk/SIQ28rnWufmdg16YqqHgl5JOgnb3aslKRvL4dI2Gwnkd2IHtpZnTR0gxFXfqqb\nQwuRAgMBAAGjggIaMIICFjAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYB\nBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFLsAFcxAhFX1\nMbCnzr9hEO5rL4jqMB8GA1UdIwQYMBaAFKhKamMEfd265tE5t6ZFZe/zqOyhMHAG\nCCsGAQUFBwEBBGQwYjAvBggrBgEFBQcwAYYjaHR0cDovL29jc3AuaW50LXgzLmxl\ndHNlbmNyeXB0Lm9yZy8wLwYIKwYBBQUHMAKGI2h0dHA6Ly9jZXJ0LmludC14My5s\nZXRzZW5jcnlwdC5vcmcvMCQGA1UdEQQdMBuCGWNsb3VkLmFuZHJld3NvbWV0aGlu\nZy5jb20wgf4GA1UdIASB9jCB8zAIBgZngQwBAgEwgeWECysGAQQBgt8TAQEBMIHW\nMCYGCCsGAQUFBwIBFhpodHRwOi8vY3BzLmxldHNlbmNyeXB0Lm9yZzCBqwYIKwYB\nBQUHAgIwgZ4MgZtUaGlzIENlcnRpZmljYXRlIG1heSBvbmx5IGJlIHJlbGllZCB1\ncG9uIGJ5IFJlbHlpbmcgUGFydGllcyBhbmQgb25seSQ2ziBhY2NvcmRhbmNlIHdp\ndGggdGhlIENlcnRpZmljYXRlIFBvbGljeSBmb3VuZCBhdCBsdHRwczovL2xldHNl\nbmNyeXB0Lm9yZy9yZXBvc2l0b3J5LzANBgkqhkiG9w0BAQsFAAOCAQEAOZVQvrjM\nPKXLARTjB5XsgfyDN3/qwLl7SmwGkPe+B+9FJpfScYG1JzVuCj/SoaPaK34G4x/e\niXwlwOXtMOtqjQYzNu2Pr2C+I+rVmaxIrCUXFmC205IMuUBEeWXG9Y/HvXQLPabD\nD3Gdl5+Feink9SDRP7G0HaAwq13hI7ARxkL3o+UIY39X0dV3WOboW2Re8nrkFXJ7\nq9Z6shK5QgpBfsLjtjNsQzaGV3ve1gOg25aTJGearBWOvEjJNA1wGMoKVXOtYwm/\nWyWoVdCQ8HmconcbJB6xc0UZ1EjvzRr5ZIvSa5uHZD0L3m7/kpPWlAlFJ7hHASPu\nUlF1zblDmg2Iaw==\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/\nMSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT\nDkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow\nSjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT\nGkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC\nAQ8AMIIBCgKCAQEAnNMM8FrlLsd3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF\nq6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8\nSMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0\nZ8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA\na6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj\n/PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIPOIUo4IBfTCCAXkwEgYDVR0T\nAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG\nCCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv\nbTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k\nc3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw\nVAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3xMBAQEwMDAuBggrBgEFBQcC\nARYiaHR0cDovL2Nwcy5yb290LXgxLmxldHNlbmNyeXB0Lm9yZzA8BgNVHR8ENTAz\nMDGgL6AthitodHRwOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu\nY3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF\nAAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo\nuM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/\nwApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu\nX4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG\nPfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6\nKOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==\n-----END CERTIFICATE-----", + } + ) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_delete.yml new file mode 100644 index 000000000..67ba81afe --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_delete.yml @@ -0,0 +1,10 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + del_resp = client.certificates.delete( + certificate_id="892071a0-bb95-49bc-8021-3afd67a210bf" + ) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_get.yml new file mode 100644 index 000000000..0bb5b20e8 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_get.yml @@ -0,0 +1,10 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.certificates.get( + certificate_id="892071a0-bb95-49bc-8021-3afd67a210bf" + ) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_list.yml new file mode 100644 index 000000000..5758044b5 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/certificates/examples/python/certificates_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.certificates.list() \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add.yml index 99ea7f28a..ce3f73fa2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add.yml @@ -48,6 +48,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_add.yml' - $ref: 'examples/go/databases_add.yml' + - $ref: 'examples/python/databases_add.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_connectionPool.yml index 1b92425c5..263e7b8bd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_connectionPool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_connectionPool.yml @@ -55,6 +55,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_add_connectionPool.yml' - $ref: 'examples/go/databases_add_connectionPool.yml' + - $ref: 'examples/python/databases_add_connectionPool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_user.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_user.yml index 1063049e3..72d816f25 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_user.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_add_user.yml @@ -74,6 +74,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_add_user.yml' - $ref: 'examples/go/databases_add_user.yml' + - $ref: 'examples/python/databases_add_user.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_cluster.yml index 0563ccbcd..cee50a914 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_cluster.yml @@ -103,6 +103,7 @@ responses: x-codeSamples: - $ref: "examples/curl/databases_create_cluster.yml" - $ref: "examples/go/databases_create_cluster.yml" + - $ref: "examples/python/databases_create_cluster.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_replica.yml index d1fe3b797..31a25079a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_replica.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_create_replica.yml @@ -61,6 +61,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_create_replica.yml' - $ref: 'examples/go/databases_create_replica.yml' + - $ref: 'examples/python/databases_create_replica.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete.yml index bd65839be..81c248b76 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_delete.yml' - $ref: 'examples/go/databases_delete.yml' + - $ref: 'examples/python/databases_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_connectionPool.yml index c760252db..ac6cb1ff0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_connectionPool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_connectionPool.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_delete_connectionPool.yml' - $ref: 'examples/go/databases_delete_connectionPool.yml' + - $ref: 'examples/python/databases_delete_connectionPool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_onlineMigration.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_onlineMigration.yml index 197624054..f1d5581a8 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_onlineMigration.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_onlineMigration.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_delete_onlineMigration.yml' + - $ref: 'examples/python/databases_delete_onlineMigration.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_user.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_user.yml index 94b2de4c0..c13a01daf 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_user.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_delete_user.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_delete_user.yml' - $ref: 'examples/go/databases_delete_user.yml' + - $ref: 'examples/python/databases_delete_user.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_cluster.yml index 21815a725..e1ef8b007 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_cluster.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_destroy_cluster.yml' - $ref: 'examples/go/databases_destroy_cluster.yml' + - $ref: 'examples/python/databases_destroy_cluster.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_replica.yml index 680425717..e9c7d3a22 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_replica.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_destroy_replica.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_destroy_replica.yml' - $ref: 'examples/go/databases_destroy_replica.yml' + - $ref: 'examples/python/databases_destroy_replica.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get.yml index 60e807260..83b39861f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get.yml' - $ref: 'examples/go/databases_get.yml' + - $ref: 'examples/python/databases_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_ca.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_ca.yml index 66de65019..10f47d434 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_ca.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_ca.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_ca.yml' - $ref: 'examples/go/databases_get_ca.yml' + - $ref: 'examples/python/databases_get_ca.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_cluster.yml index 7c46bbdf3..8d816e096 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_cluster.yml @@ -43,6 +43,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_cluster.yml' - $ref: 'examples/go/databases_get_cluster.yml' + - $ref: 'examples/python/databases_get_cluster.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_config.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_config.yml index 456de590d..439bfc8f9 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_config.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_config.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_config.yml' + - $ref: 'examples/python/databases_get_config.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_connectionPool.yml index ed4adc1f4..083be2b0e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_connectionPool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_connectionPool.yml @@ -38,6 +38,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_connectionPool.yml' - $ref: 'examples/go/databases_get_connectionPool.yml' + - $ref: 'examples/python/databases_get_connectionPool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_evictionPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_evictionPolicy.yml index b381ebaa0..2cc3c9d4f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_evictionPolicy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_evictionPolicy.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_evictionPolicy.yml' - $ref: 'examples/go/databases_get_evictionPolicy.yml' + - $ref: 'examples/python/databases_get_evictionPolicy.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_migrationStatus.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_migrationStatus.yml index 5f958a55a..95d70d99b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_migrationStatus.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_migrationStatus.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_migrationStatus.yml' + - $ref: 'examples/python/databases_get_migrationStatus.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_replica.yml index fe3b36cd4..f58f5adff 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_replica.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_replica.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_replica.yml' - $ref: 'examples/go/databases_get_replica.yml' + - $ref: 'examples/python/databases_get_replica.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_sql_mode.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_sql_mode.yml index 12b60f3b5..b7f42c8cd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_sql_mode.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_sql_mode.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_sql_mode.yml' - $ref: 'examples/go/databases_get_sql_mode.yml' + - $ref: 'examples/python/databases_get_sql_mode.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_user.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_user.yml index d273f04b6..be02e7830 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_user.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_get_user.yml @@ -43,6 +43,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_get_user.yml' - $ref: 'examples/go/databases_get_user.yml' + - $ref: 'examples/python/databases_get_user.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list.yml index 8f2ad7817..d1e08f463 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list.yml' - $ref: 'examples/go/databases_list.yml' + - $ref: 'examples/python/databases_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_backups.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_backups.yml index c2df2d393..84f919695 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_backups.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_backups.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list_backups.yml' - $ref: 'examples/go/databases_list_backups.yml' + - $ref: 'examples/python/databases_list_backups.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_clusters.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_clusters.yml index 4c71faf7a..7e3ad4fc3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_clusters.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_clusters.yml @@ -44,6 +44,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list_clusters.yml' - $ref: 'examples/go/databases_list_clusters.yml' + - $ref: 'examples/python/databases_list_clusters.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_connectionPools.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_connectionPools.yml index eb6c49143..14b30021d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_connectionPools.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_connectionPools.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list_connectionPools.yml' - $ref: 'examples/go/databases_list_connectionPools.yml' + - $ref: 'examples/python/databases_list_connectionPools.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_firewall_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_firewall_rules.yml index 316d85a81..e6e2da22b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_firewall_rules.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_firewall_rules.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list_firewall_rules.yml' - $ref: 'examples/go/databases_list_firewall_rules.yml' + - $ref: 'examples/python/databases_list_firewall_rules.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_options.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_options.yml index c91e75d2a..c4a89bb87 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_options.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_options.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list_options.yml' - $ref: 'examples/go/databases_list_options.yml' + - $ref: 'examples/python/databases_list_options.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_replicas.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_replicas.yml index 3c42db8a4..05ce8dcab 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_replicas.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_replicas.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list_replicas.yml' - $ref: 'examples/go/databases_list_replicas.yml' + - $ref: 'examples/python/databases_list_replicas.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_users.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_users.yml index 2a4fc7ccf..1c52c364d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_users.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_list_users.yml @@ -41,6 +41,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_list_users.yml' - $ref: 'examples/go/databases_list_users.yml' + - $ref: 'examples/python/databases_list_users.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_patch_config.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_patch_config.yml index 730e3db93..4bee6098c 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_patch_config.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_patch_config.yml @@ -43,6 +43,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_patch_config.yml' + - $ref: 'examples/python/databases_patch_config.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_promote_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_promote_replica.yml index d7a214340..34df5a28f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_promote_replica.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_promote_replica.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_promote_replica.yml' - $ref: 'examples/go/databases_promote_replica.yml' + - $ref: 'examples/python/databases_promote_replica.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_reset_auth.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_reset_auth.yml index a4e274e9c..137bd6bcd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_reset_auth.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_reset_auth.yml @@ -55,6 +55,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_reset_auth.yml' - $ref: 'examples/go/databases_reset_auth.yml' + - $ref: 'examples/python/databases_reset_auth.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_clusterSize.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_clusterSize.yml index 92e4ab024..abf039057 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_clusterSize.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_clusterSize.yml @@ -52,6 +52,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_clusterSize.yml' - $ref: 'examples/go/databases_update_clusterSize.yml' + - $ref: 'examples/python/databases_update_clusterSize.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_connectionPool.yml index 1869b0486..d40ba7f2d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_connectionPool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_connectionPool.yml @@ -47,6 +47,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_connectionPool.yml' - $ref: 'examples/go/databases_update_connectionPool.yml' + - $ref: 'examples/python/databases_update_connectionPool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_evictionPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_evictionPolicy.yml index ee8f30386..1b494a197 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_evictionPolicy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_evictionPolicy.yml @@ -49,6 +49,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_evictionPolicy.yml' - $ref: 'examples/go/databases_update_evictionPolicy.yml' + - $ref: 'examples/python/databases_update_evictionPolicy.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_firewall_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_firewall_rules.yml index 1ab775ed6..f9c03af22 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_firewall_rules.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_firewall_rules.yml @@ -67,6 +67,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_firewall_rules.yml' - $ref: 'examples/go/databases_update_firewall_rules.yml' + - $ref: 'examples/python/databases_update_firewall_rules.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_maintenanceWindow.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_maintenanceWindow.yml index 5066c694b..4728576fc 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_maintenanceWindow.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_maintenanceWindow.yml @@ -48,6 +48,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_maintenanceWindow.yml' - $ref: 'examples/go/databases_update_maintenanceWindow.yml' + - $ref: 'examples/python/databases_update_maintenanceWindow.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_onlineMigration.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_onlineMigration.yml index 795f2c6da..07c04ed69 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_onlineMigration.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_onlineMigration.yml @@ -53,6 +53,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_onlineMigration.yml' + - $ref: 'examples/python/databases_update_onlineMigration.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_region.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_region.yml index d86405a92..d14715ae4 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_region.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_region.yml @@ -58,6 +58,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_region.yml' - $ref: 'examples/go/databases_update_region.yml' + - $ref: 'examples/python/databases_update_region.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_sql_mode.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_sql_mode.yml index c1a837a5c..53071dfcd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_sql_mode.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_update_sql_mode.yml @@ -48,6 +48,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_update_sql_mode.yml' - $ref: 'examples/go/databases_update_sql_mode.yml' + - $ref: 'examples/python/databases_update_sql_mode.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_upgrade_major_version.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_upgrade_major_version.yml index ea16c9b3c..921d10301 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_upgrade_major_version.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/databases_upgrade_major_version.yml @@ -46,6 +46,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/databases_upgrade_version.yml' + - $ref: 'examples/python/databases_upgrade_version.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add.yml new file mode 100644 index 000000000..e159c4bef --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + add_resp = client.databases.add(database_cluster_uuid="9cc10173", body={"name": "alpha"}) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add_connectionPool.yml new file mode 100644 index 000000000..8c0f65254 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add_connectionPool.yml @@ -0,0 +1,16 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + add_conn_pool_req = { + "name": "backend-pool", + "mode": "transaction", + "size": 10, + "db": "defaultdb", + "user": "doadmin" + } + + add_conn_pool_resp = client.databases.add_connection_pool(database_cluster_uuid="9cc10173", body=add_conn_pool_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add_user.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add_user.yml new file mode 100644 index 000000000..967d5f3e7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_add_user.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + add_user_resp = client.databases.add_user(database_cluster_uuid="ab7bb7a", body={"name": "app-01"}) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_create_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_create_cluster.yml new file mode 100644 index 000000000..b7a2ad4e9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_create_cluster.yml @@ -0,0 +1,20 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_req = { + "name": "backend", + "engine": "pg", + "version": "14", + "region": "nyc3", + "size": "db-s-2vcpu-4gb", + "num_nodes": 2, + "tags": [ + "production" + ] + } + + create_resp = client.databases.create_cluster(body=create_req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_create_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_create_replica.yml new file mode 100644 index 000000000..5a833580a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_create_replica.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + create_req = { + "name": "read-nyc3-01", + "region": "nyc3", + "size": "db-s-2vcpu-4gb" + } + + create_resp = client.databases.create_replica(database_cluster_uuid="9cc10173", body=create_req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete.yml new file mode 100644 index 000000000..3f0bbe5ff --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.databases.delete(database_cluster_uuid="a7abda", database_name="ba1341") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_connectionPool.yml new file mode 100644 index 000000000..9589891d2 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_connectionPool.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_conn_pool = client.databases.delete_connection_pool(database_cluster_uuid="9cc10173", pool_name="backend-pool") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_onlineMigration.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_onlineMigration.yml new file mode 100644 index 000000000..85ec88fd2 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_onlineMigration.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.databases.delete_online_migration(database_cluster_uuid="9cc10173", migration="77b28fc8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_user.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_user.yml new file mode 100644 index 000000000..60606c5ff --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_delete_user.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.databases.delete_user(database_cluster_uuid="aba134a", username="backend_user1") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_destroy_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_destroy_cluster.yml new file mode 100644 index 000000000..a389bace0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_destroy_cluster.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.databases.destroy_cluster(database_cluster_uuid="a7abba8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_destroy_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_destroy_replica.yml new file mode 100644 index 000000000..da7115836 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_destroy_replica.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.databases.destroy_replica(database_cluster_uuid="ba88aab", replica_name="read_nyc_3") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get.yml new file mode 100644 index 000000000..5d4df421d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get(database_cluster_uuid="a9a8a77", database_name="admin") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_ca.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_ca.yml new file mode 100644 index 000000000..a05e82571 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_ca.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_ca(database_cluster_uuid="aba77ada") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_cluster.yml new file mode 100644 index 000000000..761822751 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_cluster.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_cluster(database_cluster_uuid="a7a89a") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_config.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_config.yml new file mode 100644 index 000000000..8fef3aafb --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_config.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_config(database_cluster_uuid="a7a90ab") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_connectionPool.yml new file mode 100644 index 000000000..be2483873 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_connectionPool.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_connection_pool(database_cluster_uuid="a7aba8a", pool_name="backend-pool") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_evictionPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_evictionPolicy.yml new file mode 100644 index 000000000..c280c258a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_evictionPolicy.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_eviction_policy(database_cluster_uuid="a7aa89a") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_migrationStatus.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_migrationStatus.yml new file mode 100644 index 000000000..43b86bdd0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_migrationStatus.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_migration_status(database_cluster_uuid="a7a7ab90") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_replica.yml new file mode 100644 index 000000000..99c0b7634 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_replica.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_replica(database_cluster_uuid="a7a90a", replica_name="backend-replica") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_sql_mode.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_sql_mode.yml new file mode 100644 index 000000000..5c796fe08 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_sql_mode.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_sql_mode(database_cluster_uuid="90abaa8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_user.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_user.yml new file mode 100644 index 000000000..f059eccc9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_get_user.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.get_user(database_cluster_uuid="9a9aba", username="admin") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list.yml new file mode 100644 index 000000000..1c93c155e --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list(database_cluster_uuid="a7aba9d") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_backups.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_backups.yml new file mode 100644 index 000000000..6e0aa2de4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_backups.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list_backups(database_cluster_uuid="a9a8a77") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_clusters.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_clusters.yml new file mode 100644 index 000000000..73815ec88 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_clusters.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list_clusters(tag_name="production") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_connectionPools.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_connectionPools.yml new file mode 100644 index 000000000..4cc4ece7b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_connectionPools.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list_connection_pools(database_cluster_uuid="a7aab9a") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_firewall_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_firewall_rules.yml new file mode 100644 index 000000000..382b5376c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_firewall_rules.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list_firewall_rules(database_cluster_uuid="a7aab9a") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_options.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_options.yml new file mode 100644 index 000000000..89697a914 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_options.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list_options() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_replicas.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_replicas.yml new file mode 100644 index 000000000..94d865fe1 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_replicas.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list_replicas(database_cluster_uuid="a7aba3") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_users.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_users.yml new file mode 100644 index 000000000..facc30b21 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_list_users.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.databases.list_users(database_cluster_uuid="a7aba3") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_patch_config.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_patch_config.yml new file mode 100644 index 000000000..b625fe611 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_patch_config.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.databases.patch_config(database_cluster_uuid="a7aba9d") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_promote_replica.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_promote_replica.yml new file mode 100644 index 000000000..e78b627c5 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_promote_replica.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.databases.promote_replica(database_cluster_uuid="a7a8bas", replica_name="ba8ab22") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_reset_auth.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_reset_auth.yml new file mode 100644 index 000000000..a563f9063 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_reset_auth.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "mysql_settings": { + "auth_plugin": "caching_sha2_password" + } + } + + get_resp = client.databases.reset_auth(database_cluster_uuid="a7a8bas", username="admin", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_clusterSize.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_clusterSize.yml new file mode 100644 index 000000000..58001ef33 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_clusterSize.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "size": "db-s-4vcpu-8gb", + "num_nodes": 3 + } + + update_resp = client.databases.update_cluster_size(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_connectionPool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_connectionPool.yml new file mode 100644 index 000000000..b26ebb293 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_connectionPool.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "mode": "transaction", + "size": 10, + "db": "defaultdb", + "user": "doadmin" + } + + update_resp = client.databases.update_connection_pool(database_cluster_uuid="a7a8bas", pool_name="conn_pool", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_evictionPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_evictionPolicy.yml new file mode 100644 index 000000000..1c8b3374d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_evictionPolicy.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "eviction_policy": "allkeys_lru" + } + + update_resp = client.databases.update_eviction_policy(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_firewall_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_firewall_rules.yml new file mode 100644 index 000000000..cfc6af1e0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_firewall_rules.yml @@ -0,0 +1,28 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "rules": [ + { + "type": "ip_addr", + "value": "192.168.1.1" + }, + { + "type": "k8s", + "value": "ff2a6c52-5a44-4b63-b99c-0e98e7a63d61" + }, + { + "type": "droplet", + "value": "163973392" + }, + { + "type": "tag", + "value": "backend" + } + ] + } + update_resp = client.databases.update_firewall_rules(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_maintenanceWindow.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_maintenanceWindow.yml new file mode 100644 index 000000000..de941650c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_maintenanceWindow.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "day": "tuesday", + "hour": "14:00" + } + + update_resp = client.databases.update_maintenance_window(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_onlineMigration.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_onlineMigration.yml new file mode 100644 index 000000000..c0d35d413 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_onlineMigration.yml @@ -0,0 +1,19 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "source": { + "host": "source-do-user-6607903-0.b.db.ondigitalocean.com", + "dbname": "defaultdb", + "port": 25060, + "username": "doadmin", + "password": "paakjnfe10rsrsmf" + }, + "disable_ssl": False + } + + update_resp = client.databases.update_online_migration(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_region.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_region.yml new file mode 100644 index 000000000..55899e73d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_region.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "region": "lon1" + } + + update_resp = client.databases.update_region(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_sql_mode.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_sql_mode.yml new file mode 100644 index 000000000..aa49a6bba --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_update_sql_mode.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE" + } + + update_resp = client.databases.update_sql_mode(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_upgrade_version.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_upgrade_version.yml new file mode 100644 index 000000000..da72d9eee --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/databases/examples/python/databases_upgrade_version.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "version": "14" + } + + update_resp = client.databases.update_major_version(database_cluster_uuid="a7a8bas", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create.yml index 720d9921f..d8c16681e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_create.yml' - $ref: 'examples/go/domains_create.yml' - $ref: 'examples/ruby/domains_create.yml' + - $ref: 'examples/python/domains_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create_record.yml index db6b5a032..ab7a45c22 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create_record.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_create_record.yml @@ -79,6 +79,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_create_record.yml' - $ref: 'examples/go/domains_create_record.yml' - $ref: 'examples/ruby/domains_create_record.yml' + - $ref: 'examples/python/domains_create_record.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete.yml index a3dbaa312..2b0de7360 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete.yml @@ -34,6 +34,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_delete.yml' - $ref: 'examples/go/domains_delete.yml' - $ref: 'examples/ruby/domains_delete.yml' + - $ref: 'examples/python/domains_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete_record.yml index 9747b8bb7..1a323f5c0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete_record.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_delete_record.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_delete_record.yml' - $ref: 'examples/go/domains_delete_record.yml' - $ref: 'examples/ruby/domains_delete_record.yml' + - $ref: 'examples/python/domains_delete_record.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get.yml index 38caaee86..23c0994ef 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_get.yml' - $ref: 'examples/go/domains_get.yml' - $ref: 'examples/ruby/domains_get.yml' + - $ref: 'examples/python/domains_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get_record.yml index 7251bbebb..138ed5243 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get_record.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_get_record.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_get_record.yml' - $ref: 'examples/go/domains_get_record.yml' - $ref: 'examples/ruby/domains_get_record.yml' + - $ref: 'examples/python/domains_get_record.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list.yml index 3a9448da8..fb2eaf7ca 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_list.yml' - $ref: 'examples/go/domains_list.yml' - $ref: 'examples/ruby/domains_list.yml' + - $ref: 'examples/python/domains_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list_records.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list_records.yml index 17cbed888..d127c742d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list_records.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_list_records.yml @@ -47,6 +47,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_list_records.yml' - $ref: 'examples/go/domains_list_records.yml' - $ref: 'examples/ruby/domains_list_records.yml' + - $ref: 'examples/python/domains_list_records.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_patch_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_patch_record.yml index f5fa17ec2..59f131810 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_patch_record.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_patch_record.yml @@ -48,6 +48,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/domains_patch_record.yml' + - $ref: 'examples/python/domains_patch_record.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_update_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_update_record.yml index f8292ad7e..35725b92f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_update_record.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/domains_update_record.yml @@ -50,6 +50,7 @@ x-codeSamples: - $ref: 'examples/curl/domains_update_record.yml' - $ref: 'examples/go/domains_update_record.yml' - $ref: 'examples/ruby/domains_update_record.yml' + - $ref: 'examples/python/domains_update_record.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_create.yml new file mode 100644 index 000000000..ff31f05a7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_create.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "example.com" + } + + resp = client.domains.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_create_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_create_record.yml new file mode 100644 index 000000000..092141457 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_create_record.yml @@ -0,0 +1,20 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "type": "A", + "name": "www", + "data": "162.10.66.0", + "priority": None, + "port": None, + "ttl": 1800, + "weight": None, + "flags": None, + "tag": None + } + + resp = client.domains.create_record(domain_name="example.com", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_delete.yml new file mode 100644 index 000000000..6f7ef3159 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + delete_resp = client.domains.delete(domain_name="example.com") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_delete_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_delete_record.yml new file mode 100644 index 000000000..420789908 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_delete_record.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "example.com" + } + + resp = client.domains.delete_record(domain_name="example.com", domain_record_id=3352896) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_get.yml new file mode 100644 index 000000000..b0b333705 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.domains.get(domain_name="example.com") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_get_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_get_record.yml new file mode 100644 index 000000000..2f06dc3ce --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_get_record.yml @@ -0,0 +1,9 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + get_resp = client.domains.get_record(domain_name="example.com", domain_record_id=3352896) + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_list.yml new file mode 100644 index 000000000..a3ec04049 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.domains.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_list_records.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_list_records.yml new file mode 100644 index 000000000..3c70e71a2 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_list_records.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.domains.list_records(domain_name="example.com") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_patch_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_patch_record.yml new file mode 100644 index 000000000..269477c9d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_patch_record.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "blog", + "type": "A" + } + + resp = client.domains.patch_record(domain_name="example.com", domain_record_id=2432342, body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_update_record.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_update_record.yml new file mode 100644 index 000000000..57ab0aba8 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/domains/examples/python/domains_update_record.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "blog", + "type": "CNAME" + } + + resp = client.domains.update_record(domain_name="example.com", domain_record_id=2432342, body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_get.yml index 5c495718b..24da1f457 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_get.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/dropletActions_get.yml' - $ref: 'examples/go/dropletActions_get.yml' - $ref: 'examples/ruby/dropletActions_get.yml' + - $ref: 'examples/python/dropletActions_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_list.yml index 7ac53220e..d905a7405 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_list.yml @@ -41,6 +41,7 @@ x-codeSamples: - $ref: 'examples/curl/dropletActions_list.yml' - $ref: 'examples/go/dropletActions_list.yml' - $ref: 'examples/ruby/dropletActions_list.yml' + - $ref: 'examples/python/dropletActions_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post.yml index 2cc16769f..061cc3a1d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post.yml @@ -90,6 +90,7 @@ x-codeSamples: - $ref: 'examples/curl/dropletActions_post.yml' - $ref: 'examples/go/dropletActions_post.yml' - $ref: 'examples/ruby/dropletActions_post.yml' + - $ref: 'examples/python/dropletActions_post.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post_byTag.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post_byTag.yml index 180162396..fb9c9b40e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post_byTag.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/dropletActions_post_byTag.yml @@ -68,6 +68,7 @@ x-codeSamples: - $ref: 'examples/curl/dropletActions_post_byTag.yml' - $ref: 'examples/go/dropletActions_post_byTag.yml' - $ref: 'examples/ruby/dropletActions_post_byTag.yml' + - $ref: 'examples/python/dropletActions_post_byTag.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_create.yml index 879b39c2d..00693cddb 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_create.yml @@ -66,6 +66,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_create.yml' - $ref: 'examples/go/droplets_create.yml' - $ref: 'examples/ruby/droplets_create.yml' + - $ref: 'examples/python/droplets_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy.yml index 603f7d82e..7b5fbbfd3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy.yml @@ -37,6 +37,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_destroy.yml' - $ref: 'examples/go/droplets_destroy.yml' - $ref: 'examples/ruby/droplets_destroy.yml' + - $ref: 'examples/python/droplets_destroy.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_byTag.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_byTag.yml index a79e41ab1..684eb78b2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_byTag.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_byTag.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_destroy_byTag.yml' - $ref: 'examples/go/droplets_destroy_byTag.yml' - $ref: 'examples/ruby/droplets_destroy_byTag.yml' + - $ref: 'examples/python/droplets_destroy_byTag.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_retryWithAssociatedResources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_retryWithAssociatedResources.yml index 52643fbae..57e31fa86 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_retryWithAssociatedResources.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_retryWithAssociatedResources.yml @@ -42,7 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/droplets_destroy_retryWithAssociatedResources.yml' - + - $ref: 'examples/python/droplets_destroy_retryWithAssociatedResources.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesDangerous.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesDangerous.yml index 5672716fa..848d3732b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesDangerous.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesDangerous.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/droplets_destroy_withAssociatedResourcesDangerous.yml' + - $ref: 'examples/python/droplets_destroy_withAssociatedResourcesDangerous.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesSelective.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesSelective.yml index 56baca086..e8b31fa78 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesSelective.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_destroy_withAssociatedResourcesSelective.yml @@ -48,6 +48,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/droplets_destroy_withAssociatedResourcesSelective.yml' + - $ref: 'examples/python/droplets_destroy_withAssociatedResourcesSelective.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get.yml index f774e8b7c..17bbfd01c 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_get.yml' - $ref: 'examples/go/droplets_get.yml' - $ref: 'examples/ruby/droplets_get.yml' + - $ref: 'examples/python/droplets_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get_destroyAssociatedResourcesStatus.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get_destroyAssociatedResourcesStatus.yml index 9d7bcd402..9fda4a29d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get_destroyAssociatedResourcesStatus.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_get_destroyAssociatedResourcesStatus.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/droplets_get_DestroyAssociatedResourcesStatus.yml' + - $ref: 'examples/python/droplets_get_DestroyAssociatedResourcesStatus.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list.yml index 91bfc91be..f6d075e8e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list.yml @@ -45,6 +45,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_list.yml' - $ref: 'examples/go/droplets_list.yml' - $ref: 'examples/ruby/droplets_list.yml' + - $ref: 'examples/python/droplets_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_associatedResources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_associatedResources.yml index c2bc7451c..5294b4373 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_associatedResources.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_associatedResources.yml @@ -38,6 +38,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/droplets_list_associatedResources.yml' + - $ref: 'examples/python/droplets_list_associatedResources.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_backups.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_backups.yml index e0914414f..ab2379253 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_backups.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_backups.yml @@ -41,6 +41,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_list_backups.yml' - $ref: 'examples/go/droplets_list_backups.yml' - $ref: 'examples/ruby/droplets_list_backups.yml' + - $ref: 'examples/python/droplets_list_backups.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_kernels.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_kernels.yml index 14437f98c..61ca30d52 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_kernels.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_kernels.yml @@ -41,6 +41,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_list_kernels.yml' - $ref: 'examples/go/droplets_list_kernels.yml' - $ref: 'examples/ruby/droplets_list_kernels.yml' + - $ref: 'examples/python/droplets_list_kernels.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighbors.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighbors.yml index eb1844cd8..144ce9b8f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighbors.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighbors.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/droplets_list_neighbors.yml' + - $ref: 'examples/python/droplets_list_neighbors.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighborsIds.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighborsIds.yml index d69decf7c..70209670e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighborsIds.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_neighborsIds.yml @@ -36,6 +36,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/droplets_list_neighborsIds.yml' + - $ref: 'examples/python/droplets_list_neighborsIds.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_snapshots.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_snapshots.yml index 215a532d9..7cd128692 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_snapshots.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/droplets_list_snapshots.yml @@ -41,6 +41,7 @@ x-codeSamples: - $ref: 'examples/curl/droplets_list_snapshots.yml' - $ref: 'examples/go/droplets_list_snapshots.yml' - $ref: 'examples/ruby/droplets_list_snapshots.yml' + - $ref: 'examples/python/droplets_list_snapshots.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_get.yml new file mode 100644 index 000000000..280d45704 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplet_actions.get(droplet_id=3934132, action_id=2432342) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_list.yml new file mode 100644 index 000000000..18c013b7b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_list.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "blog", + "type": "CNAME" + } + + resp = client.droplet_actions.list(droplet_id=3164494) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_post.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_post.yml new file mode 100644 index 000000000..499e024dc --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_post.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + # enable back ups example + req = { + "type": "enable_backups" + } + + resp = client.droplet_actions.post(droplet_id=346652, body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_post_byTag.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_post_byTag.yml new file mode 100644 index 000000000..99106bdfc --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/dropletActions_post_byTag.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "type": "enable_backups" + } + + resp = client.droplet_actions.post_by_tag(tag_name="production",body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_create.yml new file mode 100644 index 000000000..3f0a0b8bc --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_create.yml @@ -0,0 +1,28 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "example.com", + "region": "nyc3", + "size": "s-1vcpu-1gb", + "image": "ubuntu-20-04-x64", + "ssh_keys": [ + 289794, + "3b:16:e4:bf:8b:00:8b:b8:59:8c:a9:d3:f0:19:fa:45" + ], + "backups": True, + "ipv6": True, + "monitoring": True, + "tags": [ + "env:prod", + "web" + ], + "user_data": "#cloud-config\nruncmd:\n - touch /test.txt\n", + "vpc_uuid": "760e09ef-dc84-11e8-981e-3cfdfeaae000" + } + + resp = client.droplets.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy.yml new file mode 100644 index 000000000..b6d28fb13 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.destroy(droplet_id=553456) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_byTag.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_byTag.yml new file mode 100644 index 000000000..4b47861d9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_byTag.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.destroy_by_tag(tag_name="production") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_retryWithAssociatedResources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_retryWithAssociatedResources.yml new file mode 100644 index 000000000..d9ae625d9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_retryWithAssociatedResources.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.destroy_retry_with_associated_resources(droplet_id=524512) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_withAssociatedResourcesDangerous.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_withAssociatedResourcesDangerous.yml new file mode 100644 index 000000000..03fb80503 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_withAssociatedResourcesDangerous.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.destroy_with_associated_resources_dangerous(droplet_id=524512) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_withAssociatedResourcesSelective.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_withAssociatedResourcesSelective.yml new file mode 100644 index 000000000..5c14adcd4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_destroy_withAssociatedResourcesSelective.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.destroy_with_associated_resources_selective(droplet_id=524512) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_get.yml new file mode 100644 index 000000000..15fe7f889 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.get(droplet_id=594828) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_get_DestroyAssociatedResourcesStatus.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_get_DestroyAssociatedResourcesStatus.yml new file mode 100644 index 000000000..2fd9f8671 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_get_DestroyAssociatedResourcesStatus.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.get_destroy_associated_resources_status(droplet_id=5624512) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list.yml new file mode 100644 index 000000000..a40c459d0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_associatedResources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_associatedResources.yml new file mode 100644 index 000000000..e87b8a810 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_associatedResources.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.list_associated_resources(droplet_id=594828) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_backups.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_backups.yml new file mode 100644 index 000000000..1f5caa821 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_backups.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.list_backups(droplet_id=594828) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_kernels.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_kernels.yml new file mode 100644 index 000000000..c31e16ad0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_kernels.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.list_kernels(droplet_id=594828) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_neighbors.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_neighbors.yml new file mode 100644 index 000000000..9115ce77f --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_neighbors.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.list_neighbors(droplet_id=594828) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_neighborsIds.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_neighborsIds.yml new file mode 100644 index 000000000..2a11e7fc0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_neighborsIds.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.list_neighbors_ids() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_snapshots.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_snapshots.yml new file mode 100644 index 000000000..9ca545d8a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/droplets/examples/python/droplets_list_snapshots.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.droplets.list_snapshots(droplet_id=3929391) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_add_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_add_rules.yml new file mode 100644 index 000000000..3152659ca --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_add_rules.yml @@ -0,0 +1,33 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "inbound_rules": [ + { + "protocol": "tcp", + "ports": "3306", + "sources": { + "droplet_ids": [ + 49696269 + ] + } + } + ], + "outbound_rules": [ + { + "protocol": "tcp", + "ports": "3306", + "destinations": { + "droplet_ids": [ + 49696269 + ] + } + } + ] + } + + resp = client.firewalls.add_rules(firewall_id="39fa4gz", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_add_tags.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_add_tags.yml new file mode 100644 index 000000000..bd2c2bd41 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_add_tags.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "tags": [ + "frontend" + ] + } + + resp = client.firewalls.add_tags(firewall_id="39fa4gz", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_assign_droplet.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_assign_droplet.yml new file mode 100644 index 000000000..25ef2f1eb --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_assign_droplet.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "droplet_ids": [ + 49696269 + ] + } + + resp = client.firewalls.assign_droplets(firewall_id="39fa4gz", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_create.yml new file mode 100644 index 000000000..93e5804d7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_create.yml @@ -0,0 +1,50 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "firewall", + "inbound_rules": [ + { + "protocol": "tcp", + "ports": "80", + "sources": { + "load_balancer_uids": [ + "4de7ac8b-495b-4884-9a69-1050c6793cd6" + ] + } + }, + { + "protocol": "tcp", + "ports": "22", + "sources": { + "tags": [ + "gateway" + ], + "addresses": [ + "18.0.0.0/8" + ] + } + } + ], + "outbound_rules": [ + { + "protocol": "tcp", + "ports": "80", + "destinations": { + "addresses": [ + "0.0.0.0/0", + "::/0" + ] + } + } + ], + "droplet_ids": [ + 8043964 + ] + } + + resp = client.firewalls.create(body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete.yml new file mode 100644 index 000000000..a8982d151 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.firewalls.delete(firewall_id= "as9di9d") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_droplets.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_droplets.yml new file mode 100644 index 000000000..8648f003b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_droplets.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "droplet_ids": [ + 49696269 + ] + } + + resp = client.firewalls.delete_droplets(firewall_id="39fa4gz", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_rules.yml new file mode 100644 index 000000000..52df67f72 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_rules.yml @@ -0,0 +1,33 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "inbound_rules": [ + { + "protocol": "tcp", + "ports": "3306", + "sources": { + "droplet_ids": [ + 49696269 + ] + } + } + ], + "outbound_rules": [ + { + "protocol": "tcp", + "ports": "3306", + "destinations": { + "droplet_ids": [ + 49696269 + ] + } + } + ] + } + + resp = client.firewalls.delete_rules(firewall_id="39fa4gz", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_tags.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_tags.yml new file mode 100644 index 000000000..f4bdcf031 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_delete_tags.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "tags": [ + "frontend" + ] + } + + resp = client.firewalls.delete_tags(firewall_id="39fa4gz", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_get.yml new file mode 100644 index 000000000..4097ddaf3 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.firewalls.get(firewall_id= "as9di9d") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_list.yml new file mode 100644 index 000000000..345394fff --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.firewalls.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_update.yml new file mode 100644 index 000000000..221e672fa --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/examples/python/firewalls_update.yml @@ -0,0 +1,53 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "frontend-firewall", + "inbound_rules": [ + { + "protocol": "tcp", + "ports": "8080", + "sources": { + "load_balancer_uids": [ + "4de7ac8b-495b-4884-9a69-1050c6793cd6" + ] + } + }, + { + "protocol": "tcp", + "ports": "22", + "sources": { + "tags": [ + "gateway" + ], + "addresses": [ + "18.0.0.0/8" + ] + } + } + ], + "outbound_rules": [ + { + "protocol": "tcp", + "ports": "8080", + "destinations": { + "addresses": [ + "0.0.0.0/0", + "::/0" + ] + } + } + ], + "droplet_ids": [ + 8043964 + ], + "tags": [ + "frontend" + ] + } + + resp = client.firewalls.update(firewall_id="3afda9", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_rules.yml index 420d30f6c..7a3cba5e9 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_rules.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_rules.yml @@ -72,6 +72,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_add_rules.yml' - $ref: 'examples/go/firewalls_add_rules.yml' - $ref: 'examples/ruby/firewalls_add_rules.yml' + - $ref: 'examples/python/firewalls_add_rules.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_tags.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_tags.yml index f1bd30b07..d4eceeeda 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_tags.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_add_tags.yml @@ -62,6 +62,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_add_tags.yml' - $ref: 'examples/go/firewalls_add_tags.yml' - $ref: 'examples/ruby/firewalls_add_tags.yml' + - $ref: 'examples/python/firewalls_add_tags.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_assign_droplets.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_assign_droplets.yml index a62aa40c4..6a41c0703 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_assign_droplets.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_assign_droplets.yml @@ -65,6 +65,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_assign_droplet.yml' - $ref: 'examples/go/firewalls_assign_droplet.yml' - $ref: 'examples/ruby/firewalls_assign_droplet.yml' + - $ref: 'examples/python/firewalls_assign_droplet.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_create.yml index 35957aa46..0b5c4d548 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_create.yml @@ -73,6 +73,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_create.yml' - $ref: 'examples/go/firewalls_create.yml' - $ref: 'examples/ruby/firewalls_create.yml' + - $ref: 'examples/python/firewalls_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete.yml index f118c7b7c..72248b471 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_delete.yml' - $ref: 'examples/go/firewalls_delete.yml' - $ref: 'examples/ruby/firewalls_delete.yml' + - $ref: 'examples/python/firewalls_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_droplets.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_droplets.yml index aed31a6b0..30d854d38 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_droplets.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_droplets.yml @@ -65,6 +65,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_delete_droplets.yml' - $ref: 'examples/go/firewalls_delete_droplets.yml' - $ref: 'examples/ruby/firewalls_delete_droplets.yml' + - $ref: 'examples/python/firewalls_delete_droplets.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_rules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_rules.yml index 1e66f6337..95b485e9f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_rules.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_rules.yml @@ -72,6 +72,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_delete_rules.yml' - $ref: 'examples/go/firewalls_delete_rules.yml' - $ref: 'examples/ruby/firewalls_delete_rules.yml' + - $ref: 'examples/python/firewalls_delete_rules.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_tags.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_tags.yml index 5e96db534..6d1b37c4a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_tags.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_delete_tags.yml @@ -62,6 +62,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_delete_tags.yml' - $ref: 'examples/go/firewalls_delete_tags.yml' - $ref: 'examples/ruby/firewalls_delete_tags.yml' + - $ref: 'examples/python/firewalls_delete_tags.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_get.yml index e452c1e9a..c3aea7ef8 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_get.yml' - $ref: 'examples/go/firewalls_get.yml' - $ref: 'examples/ruby/firewalls_get.yml' + - $ref: 'examples/python/firewalls_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_list.yml index c8312b9d9..6c89ad437 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_list.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_list.yml' - $ref: 'examples/go/firewalls_list.yml' - $ref: 'examples/ruby/firewalls_list.yml' + - $ref: 'examples/python/firewalls_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_update.yml index 4faec4393..300dc25cc 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_update.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/firewalls/firewalls_update.yml @@ -83,6 +83,7 @@ x-codeSamples: - $ref: 'examples/curl/firewalls_update.yml' - $ref: 'examples/go/firewalls_update.yml' - $ref: 'examples/ruby/firewalls_update.yml' + - $ref: 'examples/python/firewalls_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/create_namespace.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/create_namespace.yml new file mode 100644 index 000000000..015a08309 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/create_namespace.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "region": "nyc1", + "label": "my namespace" + } + + resp = client.functions.create_namespace(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/create_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/create_trigger.yml new file mode 100644 index 000000000..9ac034866 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/create_trigger.yml @@ -0,0 +1,22 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "my trigger", + "function": "hello", + "type": "SCHEDULED", + "is_enabled": True, + "scheduled_details": { + "cron": "* * * * *", + "body": { + "name": "Welcome to DO!" + } + } + } + + resp = client.functions.create_trigger(namespace_id="aff93af3", body=req) + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/delete_namespace.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/delete_namespace.yml new file mode 100644 index 000000000..4038dac49 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/delete_namespace.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.functions.delete_namespace(namespace_id="aff93af3") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/delete_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/delete_trigger.yml new file mode 100644 index 000000000..d102970b0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/delete_trigger.yml @@ -0,0 +1,9 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.functions.delete_trigger(namespace_id="aff93af3", trigger_name="trig_name") + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/get_namespace.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/get_namespace.yml new file mode 100644 index 000000000..c040cd166 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/get_namespace.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.functions.get_namespace(namespace_id="aff93af3") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/get_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/get_trigger.yml new file mode 100644 index 000000000..2ca907fa9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/get_trigger.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.functions.get_trigger(namespace_id="aff93af3", trigger_name="trig_name") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/list_namespaces.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/list_namespaces.yml new file mode 100644 index 000000000..be2d2c1cb --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/list_namespaces.yml @@ -0,0 +1,9 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.functions.list_namespaces() + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/list_triggers.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/list_triggers.yml new file mode 100644 index 000000000..7b17cb992 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/list_triggers.yml @@ -0,0 +1,9 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.functions.list_triggers(namespace_id="39f3ca") + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/update_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/update_trigger.yml new file mode 100644 index 000000000..8e850edaa --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/examples/python/update_trigger.yml @@ -0,0 +1,18 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "is_enabled": true, + "scheduled_details": { + "cron": "* * * * *", + "body": { + "name": "Welcome to DO!" + } + } + } + + resp = client.functions.update_trigger(namespace_id="39f3ca", trigger_name="trig_name", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_namespace.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_namespace.yml index af655025e..c9e3be35e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_namespace.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_namespace.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/create_namespace.yml' + - $ref: 'examples/python/create_namespace.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_trigger.yml index aefd24246..f53b1bc1e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_trigger.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_create_trigger.yml @@ -45,6 +45,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/create_trigger.yml' + - $ref: 'examples/python/create_trigger.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_namespace.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_namespace.yml index 2a7d9dbb2..09b37a2b3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_namespace.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_namespace.yml @@ -38,6 +38,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/delete_namespace.yml' + - $ref: 'examples/python/delete_namespace.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_trigger.yml index a5a68202d..fd52fa0b1 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_trigger.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_delete_trigger.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/delete_trigger.yml' + - $ref: 'examples/python/delete_trigger.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_namespace.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_namespace.yml index 52e3d8c76..480d89a8a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_namespace.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_namespace.yml @@ -36,6 +36,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/get_namespace.yml' + - $ref: 'examples/python/get_namespace.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_trigger.yml index f22faaa1e..b06555217 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_trigger.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_get_trigger.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/get_trigger.yml' + - $ref: 'examples/python/get_trigger.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_namespaces.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_namespaces.yml index 267b4c7af..5266a0c00 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_namespaces.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_namespaces.yml @@ -27,6 +27,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/list_namespaces.yml' + - $ref: 'examples/python/list_namespaces.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_triggers.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_triggers.yml index 90a0cc3c6..55f1ea1d0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_triggers.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_list_triggers.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/list_triggers.yml' + - $ref: 'examples/python/list_triggers.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_update_trigger.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_update_trigger.yml index 609c0cead..6a6f2b88a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_update_trigger.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/functions/functions_update_trigger.yml @@ -43,6 +43,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/update_trigger.yml' + - $ref: 'examples/python/update_trigger.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_get.yml new file mode 100644 index 000000000..ef075b085 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.image_actions.get(image_id="fd9391a") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_list.yml new file mode 100644 index 000000000..bca3325d4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.image_actions.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_post.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_post.yml new file mode 100644 index 000000000..8f21dad23 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/imageActions_post.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "type": "convert" + } + resp = client.image_actions.post(image_id=342341, body=req) + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_create_custom.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_create_custom.yml new file mode 100644 index 000000000..6301762c9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_create_custom.yml @@ -0,0 +1,20 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "ubuntu-18.04-minimal", + "url": "http://cloud-images.ubuntu.com/minimal/releases/bionic/release/ubuntu-18.04-minimal-cloudimg-amd64.img", + "distribution": "Ubuntu", + "region": "nyc3", + "description": "Cloud-optimized image w/ small footprint", + "tags": [ + "base-image", + "prod" + ] + } + + resp = client.images.create_custom(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_delete.yml new file mode 100644 index 000000000..bd92fbf95 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_delete.yml @@ -0,0 +1,9 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.images.delete(image_id=134215) + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_get.yml new file mode 100644 index 000000000..4a18b22f0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.images.get(image_id=134215) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_list.yml new file mode 100644 index 000000000..6b2526d4f --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.images.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_update.yml new file mode 100644 index 000000000..8cf6214be --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/examples/python/images_update.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "Nifty New Snapshot", + "distribution": "Ubuntu", + "description": " " + } + + resp = client.images.update(image_id=234532, body=req) + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_get.yml index 8b83469dd..f0dee7f21 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_get.yml @@ -36,6 +36,7 @@ x-codeSamples: - $ref: 'examples/curl/imageActions_get.yml' - $ref: 'examples/go/imageActions_get.yml' - $ref: 'examples/ruby/imageActions_get.yml' + - $ref: 'examples/python/imageActions_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_list.yml index d2fb3330a..b6ebe4fb2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_list.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/imageActions_list.yml' - $ref: 'examples/go/imageActions_list.yml' + - $ref: 'examples/python/imageActions_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_post.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_post.yml index b52d8f8a7..246782864 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_post.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/imageActions_post.yml @@ -59,6 +59,7 @@ x-codeSamples: - $ref: 'examples/curl/imageActions_post.yml' - $ref: 'examples/go/imageActions_post.yml' - $ref: 'examples/ruby/imageActions_post.yml' + - $ref: 'examples/python/imageActions_post.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_create_custom.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_create_custom.yml index 02f0df360..6a09216ce 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_create_custom.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_create_custom.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/images_create_custom.yml' + - $ref: 'examples/python/images_create_custom.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_delete.yml index eaf3d20e4..fe9d8ca2d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_delete.yml @@ -34,6 +34,7 @@ x-codeSamples: - $ref: 'examples/curl/images_delete.yml' - $ref: 'examples/go/images_delete.yml' - $ref: 'examples/ruby/images_delete.yml' + - $ref: 'examples/python/images_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_get.yml index 7bab5911e..7b14138f0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_get.yml @@ -55,6 +55,7 @@ x-codeSamples: - $ref: 'examples/curl/images_get.yml' - $ref: 'examples/go/images_get.yml' - $ref: 'examples/ruby/images_get.yml' + - $ref: 'examples/python/images_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_list.yml index 765f78f78..ccc7930d1 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_list.yml @@ -58,6 +58,7 @@ x-codeSamples: - $ref: 'examples/curl/images_list.yml' - $ref: 'examples/go/images_list.yml' - $ref: 'examples/ruby/images_list.yml' + - $ref: 'examples/python/images_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_update.yml index 158a89ae9..e38b8d705 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_update.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/images/images_update.yml @@ -44,6 +44,7 @@ x-codeSamples: - $ref: 'examples/curl/images_update.yml' - $ref: 'examples/go/images_update.yml' - $ref: 'examples/ruby/images_update.yml' + - $ref: 'examples/python/images_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_add_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_add_nodePool.yml new file mode 100644 index 000000000..d9b9aa5e1 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_add_nodePool.yml @@ -0,0 +1,20 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "size": "s-1vcpu-2gb", + "count": 3, + "name": "new-pool", + "tags": [ + "frontend" + ], + "auto_scale": True, + "min_nodes": 3, + "max_nodes": 6 + } + + resp = client.kubernetes.add_node_pool(cluster_id="ba9d8da", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_add_registry.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_add_registry.yml new file mode 100644 index 000000000..a342364fa --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_add_registry.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "cluster_uuids": [ + "bd5f5959-5e1e-4205-a714-a914373942af", + "50c2f44c-011d-493e-aee5-361a4a0d1844" + ] + } + + resp = client.kubernetes.add_registry(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_create_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_create_cluster.yml new file mode 100644 index 000000000..fba917c1c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_create_cluster.yml @@ -0,0 +1,21 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "prod-cluster-01", + "region": "nyc1", + "version": "1.18.6-do.0", + "node_pools": [ + { + "size": "s-1vcpu-2gb", + "count": 3, + "name": "worker-pool" + } + ] + } + + resp = client.kubernetes.create_cluster(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_cluster.yml new file mode 100644 index 000000000..401a254d0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_cluster.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.delete_cluster(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_node.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_node.yml new file mode 100644 index 000000000..a59d54fb3 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_node.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.delete_node(cluster_id="da8fda8", node_pool_id="a8f3da", node_id="fa09daf") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_nodePool.yml new file mode 100644 index 000000000..31b807f75 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_delete_nodePool.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.delete_node_pool(cluster_id="da8fda8", node_pool_id="a8f3da") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_destroy_associatedResourcesDangerous.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_destroy_associatedResourcesDangerous.yml new file mode 100644 index 000000000..505314928 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_destroy_associatedResourcesDangerous.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.destroy_associated_resources_dangerous(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_destroy_associatedResourcesSelective.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_destroy_associatedResourcesSelective.yml new file mode 100644 index 000000000..cd7a3e656 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_destroy_associatedResourcesSelective.yml @@ -0,0 +1,20 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "load_balancers": [ + "4de7ac8b-495b-4884-9a69-1050c6793cd6" + ], + "volumes": [ + "ba49449a-7435-11ea-b89e-0a58ac14480f" + ], + "volume_snapshots": [ + "edb0478d-7436-11ea-86e6-0a58ac144b91" + ] + } + + resp = client.kubernetes.destroy_associated_resources_selective(cluster_id="da8fda8", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_availableUpgrades.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_availableUpgrades.yml new file mode 100644 index 000000000..0d77ed717 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_availableUpgrades.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.get_available_upgrades(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_cluster.yml new file mode 100644 index 000000000..faf923346 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_cluster.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.get_cluster(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_clusterLintResults.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_clusterLintResults.yml new file mode 100644 index 000000000..f800b9bf4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_clusterLintResults.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.get_cluster_lint_results(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_clusterUser.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_clusterUser.yml new file mode 100644 index 000000000..c6bd0ed2c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_clusterUser.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.get_cluster_user(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_credentials.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_credentials.yml new file mode 100644 index 000000000..20e31e2e7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_credentials.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.get_credentials(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_kubeconfig.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_kubeconfig.yml new file mode 100644 index 000000000..32503b685 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_kubeconfig.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.get_kubeconfig(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_nodePool.yml new file mode 100644 index 000000000..2dc3ef1f9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_get_nodePool.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.get_node_pool(cluster_id="da8fda8", node_pool_id="a8a8fsa") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_associatedResources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_associatedResources.yml new file mode 100644 index 000000000..9229bd028 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_associatedResources.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.list_associated_resources(cluster_id="da8fda8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_clusters.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_clusters.yml new file mode 100644 index 000000000..81d6cac69 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_clusters.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.list_clusters() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_nodePools.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_nodePools.yml new file mode 100644 index 000000000..4e118d737 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_nodePools.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.list_node_pools(cluster_id="a8fsa8d") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_options.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_options.yml new file mode 100644 index 000000000..9e781444d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_list_options.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.kubernetes.list_options() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_remove_registry.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_remove_registry.yml new file mode 100644 index 000000000..ea496bb5f --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_remove_registry.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "cluster_uuids": [ + "bd5f5959-5e1e-4205-a714-a914373942af", + "50c2f44c-011d-493e-aee5-361a4a0d1844" + ] + } + + resp = client.kubernetes.remove_registry(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_run_clusterLint.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_run_clusterLint.yml new file mode 100644 index 000000000..b8a36e6f7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_run_clusterLint.yml @@ -0,0 +1,26 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "include_groups": [ + "basic", + "doks", + "security" + ], + "include_checks": [ + "bare-pods", + "resource-requirements" + ], + "exclude_groups": [ + "workload-health" + ], + "exclude_checks": [ + "default-namespace" + ] + } + + resp = client.kubernetes.run_cluster_lint(cluster_id="1fd32a", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_update_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_update_cluster.yml new file mode 100644 index 000000000..01c886d37 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_update_cluster.yml @@ -0,0 +1,25 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "prod-cluster-01", + "tags": [ + "k8s", + "k8s:bd5f5959-5e1e-4205-a714-a914373942af", + "production", + "web-team" + ], + "maintenance_policy": { + "start_time": "12:00", + "day": "any" + }, + "auto_upgrade": True, + "surge_upgrade": True, + "ha": True + } + + resp = client.kubernetes.update_cluster(cluster_id="1fd32a", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_update_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_update_nodePool.yml new file mode 100644 index 000000000..d096a64e2 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_update_nodePool.yml @@ -0,0 +1,31 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "frontend-pool", + "count": 3, + "tags": [ + "k8s", + "k8s:bd5f5959-5e1e-4205-a714-a914373942af", + "k8s-worker", + "production", + "web-team" + ], + "labels": None, + "taints": [ + { + "key": "priority", + "value": "high", + "effect": "NoSchedule" + } + ], + "auto_scale": True, + "min_nodes": 3, + "max_nodes": 6 + } + + resp = client.kubernetes.update_node_pool(cluster_id="1fd32a", node_pool_id="392fa3a", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_upgrade_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_upgrade_cluster.yml new file mode 100644 index 000000000..4559283eb --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/examples/python/kubernetes_upgrade_cluster.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "version": "1.16.13-do.0" + } + + resp = client.kubernetes.upgrade_cluster(cluster_id="1fd32a", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_nodePool.yml index 3a7807e01..28da92d22 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_nodePool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_nodePool.yml @@ -54,6 +54,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_add_nodePool.yml' - $ref: 'examples/go/kubernetes_add_nodePool.yml' - $ref: 'examples/ruby/kubernetes_add_nodePool.yml' + - $ref: 'examples/python/kubernetes_add_nodePool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_registry.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_registry.yml index 7806f2b67..9c204d65d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_registry.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_add_registry.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_add_registry.yml' - $ref: 'examples/go/kubernetes_add_registry.yml' + - $ref: 'examples/python/kubernetes_add_registry.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_create_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_create_cluster.yml index bdbff940a..1943c7879 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_create_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_create_cluster.yml @@ -50,6 +50,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_create_cluster.yml' - $ref: 'examples/go/kubernetes_create_cluster.yml' - $ref: 'examples/ruby/kubernetes_create_cluster.yml' + - $ref: 'examples/python/kubernetes_create_cluster.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_cluster.yml index 0c1a30603..8ca28acdf 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_cluster.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_delete_cluster.yml' - $ref: 'examples/go/kubernetes_delete_cluster.yml' - $ref: 'examples/ruby/kubernetes_delete_cluster.yml' + - $ref: 'examples/python/kubernetes_delete_cluster.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_node.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_node.yml index ee82d7865..b4073d953 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_node.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_node.yml @@ -46,6 +46,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_delete_node.yml' - $ref: 'examples/go/kubernetes_delete_node.yml' + - $ref: 'examples/python/kubernetes_delete_node.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_nodePool.yml index 811a9c24a..7c69a55d0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_nodePool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_delete_nodePool.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_delete_nodePool.yml' - $ref: 'examples/go/kubernetes_delete_nodePool.yml' - $ref: 'examples/ruby/kubernetes_delete_nodePool.yml' + - $ref: 'examples/python/kubernetes_delete_nodePool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesDangerous.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesDangerous.yml index 39ca5f2f1..5e3539a19 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesDangerous.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesDangerous.yml @@ -35,6 +35,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_destroy_associatedResourcesDangerous.yml' - $ref: 'examples/go/kubernetes_destroy_associatedResourcesDangerous.yml' + - $ref: 'examples/python/kubernetes_destroy_associatedResourcesDangerous.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesSelective.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesSelective.yml index a19ef9efa..3a564a66e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesSelective.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_destroy_associatedResourcesSelective.yml @@ -50,6 +50,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_destroy_associatedResourcesSelective.yml' - $ref: 'examples/go/kubernetes_destroy_associatedResourcesSelective.yml' + - $ref: 'examples/python/kubernetes_destroy_associatedResourcesSelective.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_availableUpgrades.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_availableUpgrades.yml index 33c6c4f9c..9d75d1e38 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_availableUpgrades.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_availableUpgrades.yml @@ -35,6 +35,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_get_availableUpgrades.yml' - $ref: 'examples/go/kubernetes_get_availableUpgrades.yml' + - $ref: 'examples/python/kubernetes_get_availableUpgrades.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_cluster.yml index 568305acc..b6f619df6 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_cluster.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_get_cluster.yml' - $ref: 'examples/go/kubernetes_get_cluster.yml' - $ref: 'examples/ruby/kubernetes_get_cluster.yml' + - $ref: 'examples/python/kubernetes_get_cluster.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterLintResults.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterLintResults.yml index f5d1c24d3..2fc7a565c 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterLintResults.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterLintResults.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_get_clusterLintResults.yml' + - $ref: 'examples/python/kubernetes_get_clusterLintResults.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterUser.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterUser.yml index 47862021a..616dd7279 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterUser.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_clusterUser.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_get_clusterUser.yml' + - $ref: 'examples/python/kubernetes_get_clusterUser.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_credentials.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_credentials.yml index 945532206..9337f1732 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_credentials.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_credentials.yml @@ -50,6 +50,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_get_credentials.yml' - $ref: 'examples/go/kubernetes_get_credentials.yml' - $ref: 'examples/ruby/kubernetes_get_credentials.yml' + - $ref: 'examples/python/kubernetes_get_credentials.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_kubeconfig.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_kubeconfig.yml index c3a55b8c2..a2e0115f2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_kubeconfig.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_kubeconfig.yml @@ -51,6 +51,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_get_kubeconfig.yml' - $ref: 'examples/go/kubernetes_get_kubeconfig.yml' - $ref: 'examples/ruby/kubernetes_get_kubeconfig.yml' + - $ref: 'examples/python/kubernetes_get_kubeconfig.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_nodePool.yml index 337ac10f0..4a847ca55 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_nodePool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_get_nodePool.yml @@ -36,6 +36,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_get_nodePool.yml' - $ref: 'examples/go/kubernetes_get_nodePool.yml' - $ref: 'examples/ruby/kubernetes_get_nodePool.yml' + - $ref: 'examples/python/kubernetes_get_nodePool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_associatedResources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_associatedResources.yml index 593c5047a..74c5e6573 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_associatedResources.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_associatedResources.yml @@ -36,6 +36,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_list_associatedResources.yml' - $ref: 'examples/go/kubernetes_list_associatedResources.yml' + - $ref: 'examples/python/kubernetes_list_associatedResources.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_clusters.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_clusters.yml index f7e813e3c..dfddf129d 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_clusters.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_clusters.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_list_clusters.yml' - $ref: 'examples/go/kubernetes_list_clusters.yml' - $ref: 'examples/ruby/kubernetes_list_clusters.yml' + - $ref: 'examples/python/kubernetes_list_clusters.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_nodePools.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_nodePools.yml index e147b5727..a917c92ee 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_nodePools.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_nodePools.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_list_nodePools.yml' - $ref: 'examples/go/kubernetes_list_nodePools.yml' - $ref: 'examples/ruby/kubernetes_list_nodePools.yml' + - $ref: 'examples/python/kubernetes_list_nodePools.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_options.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_options.yml index 10ecce1ea..305424118 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_options.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_list_options.yml @@ -32,6 +32,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_list_options.yml' - $ref: 'examples/go/kubernetes_list_options.yml' - $ref: 'examples/ruby/kubernetes_list_options.yml' + - $ref: 'examples/python/kubernetes_list_options.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_remove_registry.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_remove_registry.yml index 3abfde4ac..1de09cccc 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_remove_registry.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_remove_registry.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_remove_registry.yml' - $ref: 'examples/go/kubernetes_remove_registry.yml' + - $ref: 'examples/python/kubernetes_remove_registry.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_run_clusterLint.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_run_clusterLint.yml index ca350c946..d9c87dc44 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_run_clusterLint.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_run_clusterLint.yml @@ -48,6 +48,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_run_clusterLint.yml' + - $ref: 'examples/python/kubernetes_run_clusterLint.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_cluster.yml index 08f2a685b..c162cdd37 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_cluster.yml @@ -44,6 +44,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_update_cluster.yml' - $ref: 'examples/go/kubernetes_update_cluster.yml' - $ref: 'examples/ruby/kubernetes_update_cluster.yml' + - $ref: 'examples/python/kubernetes_update_cluster.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_nodePool.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_nodePool.yml index 26464227b..b2d9bd160 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_nodePool.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_update_nodePool.yml @@ -46,6 +46,7 @@ x-codeSamples: - $ref: 'examples/curl/kubernetes_update_nodePool.yml' - $ref: 'examples/go/kubernetes_update_nodePool.yml' - $ref: 'examples/ruby/kubernetes_update_nodePool.yml' + - $ref: 'examples/python/kubernetes_update_nodePool.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_upgrade_cluster.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_upgrade_cluster.yml index 24af10697..887e41512 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_upgrade_cluster.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/kubernetes/kubernetes_upgrade_cluster.yml @@ -51,6 +51,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/kubernetes_upgrade_cluster.yml' - $ref: 'examples/go/kubernetes_upgrade_cluster.yml' + - $ref: 'examples/python/kubernetes_upgrade_cluster.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_add_droplets.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_add_droplets.yml new file mode 100644 index 000000000..38742806c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_add_droplets.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "droplet_ids": [ + 3164444, + 3164445 + ] + } + + resp = client.load_balancers.add_droplets(lb_id="1fd32a", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_add_forwardingRules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_add_forwardingRules.yml new file mode 100644 index 000000000..a29dcdc13 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_add_forwardingRules.yml @@ -0,0 +1,21 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "forwarding_rules": [ + { + "entry_protocol": "https", + "entry_port": 443, + "target_protocol": "http", + "target_port": 80, + "certificate_id": "892071a0-bb95-49bc-8021-3afd67a210bf", + "tls_passthrough": False + } + ] + } + + resp = client.load_balancers.add_forwarding_rules(lb_id="1fd32a", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_create.yml new file mode 100644 index 000000000..9e78a2883 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_create.yml @@ -0,0 +1,44 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "example-lb-01", + "region": "nyc3", + "forwarding_rules": [ + { + "entry_protocol": "http", + "entry_port": 80, + "target_protocol": "http", + "target_port": 80 + }, + { + "entry_protocol": "https", + "entry_port": 443, + "target_protocol": "https", + "target_port": 443, + "tls_passthrough": True + } + ], + "droplet_ids": [ + 3164444, + 3164445 + ], + "project_id": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30", + "http_idle_timeout_seconds": 60, + "firewall": { + "deny": [ + "cidr:1.2.0.0/16", + "ip:2.3.4.5" + ], + "allow": [ + "ip:1.2.3.4", + "cidr:2.3.4.0/24" + ] + } + } + + resp = client.load_balancers.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_delete.yml new file mode 100644 index 000000000..e41bc60e4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.load_balancers.delete(lb_id="afda3ad") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_get.yml new file mode 100644 index 000000000..af6c7340d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.load_balancers.get(lb_id="afda3ad") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_list.yml new file mode 100644 index 000000000..8eff11452 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.load_balancers.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_remove_droplets.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_remove_droplets.yml new file mode 100644 index 000000000..bc178e801 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_remove_droplets.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "droplet_ids": [ + 3164444, + 3164445 + ] + } + + resp = client.load_balancers.remove_droplets(lb_id="fda9fda", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_remove_forwardingRules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_remove_forwardingRules.yml new file mode 100644 index 000000000..c61d45aa9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_remove_forwardingRules.yml @@ -0,0 +1,21 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "forwarding_rules": [ + { + "entry_protocol": "https", + "entry_port": 443, + "target_protocol": "http", + "target_port": 80, + "certificate_id": "892071a0-bb95-49bc-8021-3afd67a210bf", + "tls_passthrough": False + } + ] + } + + resp = client.load_balancers.remove_forwarding_rules(lb_id="fda9fda", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_update.yml new file mode 100644 index 000000000..53209da28 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/examples/python/loadBalancers_update.yml @@ -0,0 +1,63 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "updated-example-lb-01", + "region": "nyc3", + "droplet_ids": [ + 3164444, + 3164445 + ], + "algorithm": "round_robin", + "forwarding_rules": [ + { + "entry_protocol": "http", + "entry_port": 80, + "target_protocol": "http", + "target_port": 80, + "certificate_id": "", + "tls_passthrough": false + }, + { + "entry_protocol": "https", + "entry_port": 443, + "target_protocol": "https", + "target_port": 443, + "certificate_id": "", + "tls_passthrough": true + } + ], + "health_check": { + "protocol": "http", + "port": 80, + "path": "/", + "check_interval_seconds": 10, + "response_timeout_seconds": 5, + "healthy_threshold": 5, + "unhealthy_threshold": 3 + }, + "sticky_sessions": { + "type": "none" + }, + "redirect_http_to_https": False, + "enable_proxy_protocol": True, + "enable_backend_keepalive": True, + "vpc_uuid": "c33931f2-a26a-4e61-b85c-4e95a2ec431b", + "project_id": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30", + "http_idle_timeout_seconds": 60, + "firewall": { + "deny": [ + "cidr:1.2.0.0/16", + "ip:2.3.4.5" + ], + "allow": [ + "ip:1.2.3.4", + "cidr:2.3.4.0/24" + ] + } + } + resp = client.load_balancers.update(lb_id="fda9fda", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_droplets.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_droplets.yml index 17f1651a6..f13a8583e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_droplets.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_droplets.yml @@ -54,6 +54,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_add_droplets.yml' - $ref: 'examples/go/loadBalancers_add_droplets.yml' - $ref: 'examples/ruby/loadBalancers_add_droplets.yml' + - $ref: 'examples/python/loadBalancers_add_droplets.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_forwardingRules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_forwardingRules.yml index 3551f9e23..7fa4cfec5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_forwardingRules.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_add_forwardingRules.yml @@ -56,6 +56,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_add_forwardingRules.yml' - $ref: 'examples/go/loadBalancers_add_forwardingRules.yml' - $ref: 'examples/ruby/loadBalancers_add_forwardingRules.yml' + - $ref: 'examples/python/loadBalancers_add_forwardingRules.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_create.yml index 7aa42e481..b12b1c848 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_create.yml @@ -57,6 +57,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_create.yml' - $ref: 'examples/go/loadBalancers_create.yml' - $ref: 'examples/ruby/loadBalancers_create.yml' + - $ref: 'examples/python/loadBalancers_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_delete.yml index 761805c2d..e40295ba6 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_delete.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_delete.yml' - $ref: 'examples/go/loadBalancers_delete.yml' - $ref: 'examples/ruby/loadBalancers_delete.yml' + - $ref: 'examples/python/loadBalancers_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_get.yml index c60b32f57..32039372f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_get.yml' - $ref: 'examples/go/loadBalancers_get.yml' - $ref: 'examples/ruby/loadBalancers_get.yml' + - $ref: 'examples/python/loadBalancers_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_list.yml index e2d1709ee..83c51b8a3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_list.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_list.yml' - $ref: 'examples/go/loadBalancers_list.yml' - $ref: 'examples/ruby/loadBalancers_list.yml' + - $ref: 'examples/python/loadBalancers_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_droplets.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_droplets.yml index c313fd4a4..9e2c563ec 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_droplets.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_droplets.yml @@ -51,6 +51,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_remove_droplets.yml' - $ref: 'examples/go/loadBalancers_remove_droplets.yml' - $ref: 'examples/ruby/loadBalancers_remove_droplets.yml' + - $ref: 'examples/python/loadBalancers_remove_droplets.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_forwardingRules.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_forwardingRules.yml index 5128ddecf..3d48c6acb 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_forwardingRules.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_remove_forwardingRules.yml @@ -56,6 +56,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_remove_forwardingRules.yml' - $ref: 'examples/go/loadBalancers_remove_forwardingRules.yml' - $ref: 'examples/ruby/loadBalancers_remove_forwardingRules.yml' + - $ref: 'examples/python/loadBalancers_remove_forwardingRules.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_update.yml index 6e7933570..8d5c78113 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_update.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/load_balancers/loadBalancers_update.yml @@ -51,6 +51,7 @@ x-codeSamples: - $ref: 'examples/curl/loadBalancers_update.yml' - $ref: 'examples/go/loadBalancers_update.yml' - $ref: 'examples/ruby/loadBalancers_update.yml' + - $ref: 'examples/python/loadBalancers_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_create_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_create_alertPolicy.yml new file mode 100644 index 000000000..748b75a5e --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_create_alertPolicy.yml @@ -0,0 +1,34 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "alerts": { + "email": [ + "bob@exmaple.com" + ], + "slack": [ + { + "channel": "Production Alerts", + "url": "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ" + } + ] + }, + "compare": "GreaterThan", + "description": "CPU Alert", + "enabled": True, + "entities": [ + "192018292" + ], + "tags": [ + "droplet_tag" + ], + "type": "v1/insights/droplet/cpu", + "value": 80, + "window": "5m" + } + + resp = client.monitoring.create_alert_policy(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_delete_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_delete_alertPolicy.yml new file mode 100644 index 000000000..a406c8800 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_delete_alertPolicy.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.delete_alert_policy(alert_uuid="dfa8da") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_DropletCpuMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_DropletCpuMetrics.yml new file mode 100644 index 000000000..febc5de51 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_DropletCpuMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_cpu_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_alertPolicy.yml new file mode 100644 index 000000000..f7eefd0f5 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_alertPolicy.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_alert_policy(alert_uuid="dfa8da") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletBandwidthMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletBandwidthMetrics.yml new file mode 100644 index 000000000..a1018b7d6 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletBandwidthMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_bandwidth_metrics(alert_uuid="dfa8da", host_id="17209102", interface="private", direction="inbound", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletFilesystemFreeMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletFilesystemFreeMetrics.yml new file mode 100644 index 000000000..1c8ba7959 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletFilesystemFreeMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_filesystem_free_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletFilesystemSizeMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletFilesystemSizeMetrics.yml new file mode 100644 index 000000000..851fea542 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletFilesystemSizeMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_filesystem_size_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad15Metrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad15Metrics.yml new file mode 100644 index 000000000..540c77b27 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad15Metrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_load15_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad1Metrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad1Metrics.yml new file mode 100644 index 000000000..ca4b673a7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad1Metrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_load1_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad5Metrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad5Metrics.yml new file mode 100644 index 000000000..adff35e75 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletLoad5Metrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_load5_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryAvailableMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryAvailableMetrics.yml new file mode 100644 index 000000000..a402b353b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryAvailableMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_memory_available_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryCachedMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryCachedMetrics.yml new file mode 100644 index 000000000..9b67550e5 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryCachedMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_memory_cached_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryFreeMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryFreeMetrics.yml new file mode 100644 index 000000000..17cb89fe4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryFreeMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_memory_free_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryTotalMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryTotalMetrics.yml new file mode 100644 index 000000000..2ad77c638 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_get_dropletMemoryTotalMetrics.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.get_droplet_memory_total_metrics(host_id="17209102", start="1620683817", end="1620705417") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_list_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_list_alertPolicy.yml new file mode 100644 index 000000000..c96ef5017 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_list_alertPolicy.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.monitoring.list_alert_policy() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_update_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_update_alertPolicy.yml new file mode 100644 index 000000000..b08221ce4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/examples/python/monitoring_update_alertPolicy.yml @@ -0,0 +1,34 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "alerts": { + "email": [ + "bob@exmaple.com" + ], + "slack": [ + { + "channel": "Production Alerts", + "url": "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ" + } + ] + }, + "compare": "GreaterThan", + "description": "CPU Alert", + "enabled": True, + "entities": [ + "192018292" + ], + "tags": [ + "droplet_tag" + ], + "type": "v1/insights/droplet/cpu", + "value": 80, + "window": "5m" + } + + resp = client.monitoring.update_alert_policy(alert_uuid="fda9da", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_create_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_create_alertPolicy.yml index f2c15c0b0..52b8cc5d2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_create_alertPolicy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_create_alertPolicy.yml @@ -65,6 +65,7 @@ requestBody: x-codeSamples: - $ref: 'examples/curl/monitoring_create_alertPolicy.yml' + - $ref: 'examples/python/monitoring_create_alertPolicy.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_delete_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_delete_alertPolicy.yml index 0a41e799f..50f5764df 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_delete_alertPolicy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_delete_alertPolicy.yml @@ -30,6 +30,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_delete_alertPolicy.yml' + - $ref: 'examples/python/monitoring_delete_alertPolicy.yml' + security: - bearer_auth: - 'write' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_DropletCpuMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_DropletCpuMetrics.yml index 0f2bfba3e..ca19d8bb2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_DropletCpuMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_DropletCpuMetrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_DropletCpuMetrics.yml' + - $ref: 'examples/python/monitoring_get_DropletCpuMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_alertPolicy.yml index aaeaf8302..740a70733 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_alertPolicy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_alertPolicy.yml @@ -30,6 +30,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_alertPolicy.yml' + - $ref: 'examples/python/monitoring_get_alertPolicy.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletBandwidthMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletBandwidthMetrics.yml index 5b29edcd7..e68c81cfe 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletBandwidthMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletBandwidthMetrics.yml @@ -37,6 +37,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletBandwidthMetrics.yml' + - $ref: 'examples/python/monitoring_get_dropletBandwidthMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemFreeMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemFreeMetrics.yml index 1f70dcaa3..6a02e4581 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemFreeMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemFreeMetrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletFilesystemFreeMetrics.yml' + - $ref: 'examples/python/monitoring_get_dropletFilesystemFreeMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemSizeMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemSizeMetrics.yml index 66ffb7305..427e5c655 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemSizeMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletFilesystemSizeMetrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletFilesystemSizeMetrics.yml' + - $ref: 'examples/python/monitoring_get_dropletFilesystemSizeMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad15Metrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad15Metrics.yml index 961e33bf2..aefe48fde 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad15Metrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad15Metrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletLoad15Metrics.yml' + - $ref: 'examples/python/monitoring_get_dropletLoad15Metrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad1Metrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad1Metrics.yml index 9fb98292e..4dc8e88f5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad1Metrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad1Metrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletLoad1Metrics.yml' + - $ref: 'examples/python/monitoring_get_dropletLoad1Metrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad5Metrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad5Metrics.yml index 6bab231be..82f817bbd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad5Metrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletLoad5Metrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletLoad5Metrics.yml' + - $ref: 'examples/python/monitoring_get_dropletLoad5Metrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryAvailableMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryAvailableMetrics.yml index 5dbeef807..cd2f56239 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryAvailableMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryAvailableMetrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletMemoryAvailableMetrics.yml' + - $ref: 'examples/python/monitoring_get_dropletMemoryAvailableMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryCachedMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryCachedMetrics.yml index 4cef212f1..44d7a84f4 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryCachedMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryCachedMetrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletMemoryCachedMetrics.yml' + - $ref: 'examples/python/monitoring_get_dropletMemoryCachedMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryFreeMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryFreeMetrics.yml index 636d53365..8b7d07b50 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryFreeMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryFreeMetrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletMemoryFreeMetrics.yml' + - $ref: 'examples/python/monitoring_get_dropletMemoryFreeMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryTotalMetrics.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryTotalMetrics.yml index df0bf69ff..8623e31dd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryTotalMetrics.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_get_dropletMemoryTotalMetrics.yml @@ -31,6 +31,8 @@ parameters: x-codeSamples: - $ref: 'examples/curl/monitoring_get_dropletMemoryTotalMetrics.yml' + - $ref: 'examples/python/monitoring_get_dropletMemoryTotalMetrics.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_list_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_list_alertPolicy.yml index dae1c1a5d..52fdeeb68 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_list_alertPolicy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_list_alertPolicy.yml @@ -31,7 +31,8 @@ responses: x-codeSamples: - $ref: 'examples/curl/monitoring_list_alertPolicy.yml' - + - $ref: 'examples/python/monitoring_list_alertPolicy.yml' + security: - bearer_auth: - 'read' diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_update_alertPolicy.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_update_alertPolicy.yml index e39461284..0d6641a0a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_update_alertPolicy.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/monitoring/monitoring_update_alertPolicy.yml @@ -70,6 +70,7 @@ requestBody: x-codeSamples: - $ref: 'examples/curl/monitoring_update_alertPolicy.yml' + - $ref: 'examples/python/monitoring_update_alertPolicy.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_assign_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_assign_resources.yml new file mode 100644 index 000000000..0ea040fab --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_assign_resources.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "resources": [ + "do:droplet:13457723", + "do:domain:example.com" + ] + } + + resp = client.projects.assign_resources(project_id="8dafda", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_assign_resources_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_assign_resources_default.yml new file mode 100644 index 000000000..ad3cbf789 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_assign_resources_default.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "resources": [ + "do:droplet:13457723", + "do:domain:example.com" + ] + } + + resp = client.projects.assign_resources_default(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_create.yml new file mode 100644 index 000000000..c268ca643 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_create.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "my-web-api", + "description": "My website API", + "purpose": "Service or API", + "environment": "Production" + } + + resp = client.projects.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_delete.yml new file mode 100644 index 000000000..50f818257 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.projects.delete(project_id="fda9fda") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_get.yml new file mode 100644 index 000000000..96821dd99 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.projects.get(project_id="4e1bfbc3") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_get_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_get_default.yml new file mode 100644 index 000000000..83f5d29a7 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_get_default.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.projects.get_default() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list.yml new file mode 100644 index 000000000..0599d0271 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.projects.list() \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list_resources.yml new file mode 100644 index 000000000..db089e94e --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list_resources.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.projects.list_resources(project_id="4e1bfbc3") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list_resources_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list_resources_default.yml new file mode 100644 index 000000000..29380ab30 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_list_resources_default.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.projects.list_resources_default() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_patch.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_patch.yml new file mode 100644 index 000000000..da86b777a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_patch.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "my-web-api" + } + + resp = client.projects.patch(project_id="4e1bfbc3", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_patch_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_patch_default.yml new file mode 100644 index 000000000..e26a2e46c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_patch_default.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "my-web-api" + } + + resp = client.projects.patch_default(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_update.yml new file mode 100644 index 000000000..b104a3064 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_update.yml @@ -0,0 +1,16 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "my-web-api", + "description": "My website API", + "purpose": "Service or API", + "environment": "Production", + "is_default": False + } + + resp = client.projects.update_default(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_update_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_update_default.yml new file mode 100644 index 000000000..b104a3064 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/examples/python/projects_update_default.yml @@ -0,0 +1,16 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "my-web-api", + "description": "My website API", + "purpose": "Service or API", + "environment": "Production", + "is_default": False + } + + resp = client.projects.update_default(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources.yml index 79ddb6991..020003ee0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources.yml @@ -49,6 +49,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_assign_resources.yml' - $ref: 'examples/go/projects_assign_resources.yml' - $ref: 'examples/ruby/projects_assign_resources.yml' + - $ref: 'examples/python/projects_assign_resources.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources_default.yml index 9fa33dfba..162546435 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources_default.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_assign_resources_default.yml @@ -46,6 +46,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_assign_resources_default.yml' - $ref: 'examples/go/projects_assign_resources_default.yml' - $ref: 'examples/ruby/projects_assign_resources_default.yml' + - $ref: 'examples/python/projects_assign_resources_default.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_create.yml index bc158fe3c..f4796fd7e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_create.yml @@ -41,6 +41,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_create.yml' - $ref: 'examples/go/projects_create.yml' - $ref: 'examples/ruby/projects_create.yml' + - $ref: 'examples/python/projects_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_delete.yml index b66150e32..24a2995f7 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_delete.yml @@ -42,6 +42,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_delete.yml' - $ref: 'examples/go/projects_delete.yml' - $ref: 'examples/ruby/projects_delete.yml' + - $ref: 'examples/python/projects_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get.yml index c7f18bd62..4e53052a4 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get.yml @@ -33,6 +33,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_get.yml' - $ref: 'examples/go/projects_get.yml' - $ref: 'examples/ruby/projects_get.yml' + - $ref: 'examples/python/projects_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get_default.yml index 7bbff2a27..179da3ce3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get_default.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_get_default.yml @@ -30,6 +30,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_get_default.yml' - $ref: 'examples/go/projects_get_default.yml' - $ref: 'examples/ruby/projects_get_default.yml' + - $ref: 'examples/python/projects_get_default.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list.yml index 75ce09168..f5906627e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list.yml @@ -31,6 +31,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_list.yml' - $ref: 'examples/go/projects_list.yml' - $ref: 'examples/ruby/projects_list.yml' + - $ref: 'examples/python/projects_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources.yml index 5f1e50d84..dcfefefe5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources.yml @@ -36,6 +36,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_list_resources.yml' - $ref: 'examples/go/projects_list_resources.yml' - $ref: 'examples/ruby/projects_list_resources.yml' + - $ref: 'examples/python/projects_list_resources.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources_default.yml index 7df516ea4..73a0daea5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources_default.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_list_resources_default.yml @@ -31,6 +31,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_list_resources_default.yml' - $ref: 'examples/go/projects_list_resources_default.yml' - $ref: 'examples/ruby/projects_list_resources_default.yml' + - $ref: 'examples/python/projects_list_resources_default.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch.yml index e19362573..d88ada8d4 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch.yml @@ -46,6 +46,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_patch.yml' - $ref: 'examples/go/projects_patch.yml' - $ref: 'examples/ruby/projects_patch.yml' + - $ref: 'examples/python/projects_patch.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch_default.yml index 8de6f14a6..6678bfa04 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch_default.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_patch_default.yml @@ -43,6 +43,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_patch_default.yml' - $ref: 'examples/go/projects_patch_default.yml' - $ref: 'examples/ruby/projects_patch_default.yml' + - $ref: 'examples/python/projects_patch_default.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update.yml index 253d9fa87..2f49f5628 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update.yml @@ -50,6 +50,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_update.yml' - $ref: 'examples/go/projects_update.yml' - $ref: 'examples/ruby/projects_update.yml' + - $ref: 'examples/python/projects_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update_default.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update_default.yml index e98d49aad..bab9b0d38 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update_default.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/projects/projects_update_default.yml @@ -47,6 +47,7 @@ x-codeSamples: - $ref: 'examples/curl/projects_update_default.yml' - $ref: 'examples/go/projects_update_default.yml' - $ref: 'examples/ruby/projects_update_default.yml' + - $ref: 'examples/python/projects_update_default.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/regions/examples/python/regions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/regions/examples/python/regions_list.yml new file mode 100644 index 000000000..e6c1f3499 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/regions/examples/python/regions_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.regions.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/regions/regions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/regions/regions_list.yml index 9729002a8..b2ab1f9c2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/regions/regions_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/regions/regions_list.yml @@ -37,6 +37,7 @@ x-codeSamples: - $ref: 'examples/curl/regions_list.yml' - $ref: 'examples/go/regions_list.yml' - $ref: 'examples/ruby/regions_list.yml' + - $ref: 'examples/python/regions_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_create.yml new file mode 100644 index 000000000..62540a7a0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_create.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "example", + "subscription_tier_slug": "basic", + "region": "fra1" + } + + resp = client.registry.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete.yml new file mode 100644 index 000000000..ea00ff0a6 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.delete() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete_repositoryManifest.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete_repositoryManifest.yml new file mode 100644 index 000000000..192165e21 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete_repositoryManifest.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.delete_repository_manifest(registry_name="example", repository_name="repo-1", manifest_digest="sha256:cb8a924afd") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete_repositoryTag.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete_repositoryTag.yml new file mode 100644 index 000000000..c080ddf1e --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_delete_repositoryTag.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.delete_repository_tag(registry_name="example", repository_name="repo-1", repository_tag="06a447a") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get.yml new file mode 100644 index 000000000..c6d413a90 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.get() \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_dockerCredentials.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_dockerCredentials.yml new file mode 100644 index 000000000..a767e55fb --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_dockerCredentials.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.get_docker_credentials() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_garbageCollection.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_garbageCollection.yml new file mode 100644 index 000000000..36d359405 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_garbageCollection.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.get_garbage_collection(registry_name="example") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_options.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_options.yml new file mode 100644 index 000000000..da7d305f0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_options.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.get_options() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_subscription.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_subscription.yml new file mode 100644 index 000000000..35ba62d9c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_get_subscription.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.get_subscription() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_garbageCollections.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_garbageCollections.yml new file mode 100644 index 000000000..a93a17278 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_garbageCollections.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.list_garbage_collections(registry_name="example") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositories.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositories.yml new file mode 100644 index 000000000..330ef4eea --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositories.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.list_repositories(registry_name="example") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoriesV2.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoriesV2.yml new file mode 100644 index 000000000..236b99603 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoriesV2.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.list_repositories_v2(registry_name="example") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoryManifests.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoryManifests.yml new file mode 100644 index 000000000..4072a36b6 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoryManifests.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.list_repository_manifests(registry_name="example", repository_name="repo01") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoryTags.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoryTags.yml new file mode 100644 index 000000000..1b233062b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_list_repositoryTags.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.list_repository_tags(registry_name="example", repository_name="repo01") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_run_garbageCollection.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_run_garbageCollection.yml new file mode 100644 index 000000000..a3058a363 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_run_garbageCollection.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.run_garbage_collection(registry_name="example") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_update_garbageCollection.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_update_garbageCollection.yml new file mode 100644 index 000000000..a3058a363 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_update_garbageCollection.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.registry.run_garbage_collection(registry_name="example") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_update_subscription.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_update_subscription.yml new file mode 100644 index 000000000..ce40ce155 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_update_subscription.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "tier_slug": "basic" + } + + resp = client.registry.update_subscription(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_validate_name.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_validate_name.yml new file mode 100644 index 000000000..1ff10b848 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/examples/python/registry_validate_name.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "example" + } + + resp = client.registry.validate_name(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_create.yml index 2bb2860f6..273679875 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_create.yml @@ -38,6 +38,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_create.yml' + - $ref: 'examples/python/registry_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete.yml index e02defd6d..27422667a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete.yml @@ -29,6 +29,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_delete.yml' + - $ref: 'examples/python/registry_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryManifest.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryManifest.yml index c5f275f48..4c3a06660 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryManifest.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryManifest.yml @@ -43,6 +43,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_delete_repositoryManifest.yml' + - $ref: 'examples/python/registry_delete_repositoryManifest.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryTag.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryTag.yml index 0b63b60e6..ab591d2b0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryTag.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_delete_repositoryTag.yml @@ -43,6 +43,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_delete_repositoryTag.yml' + - $ref: 'examples/python/registry_delete_repositoryTag.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get.yml index b38f629a8..f690d8ab2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get.yml @@ -26,6 +26,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_get.yml' + - $ref: 'examples/python/registry_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_dockerCredentials.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_dockerCredentials.yml index a2d6b10a2..bba897df0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_dockerCredentials.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_dockerCredentials.yml @@ -51,6 +51,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_get_dockerCredentials.yml' + - $ref: 'examples/python/registry_get_dockerCredentials.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_garbageCollection.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_garbageCollection.yml index ec73e85c1..b281a3eca 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_garbageCollection.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_garbageCollection.yml @@ -32,6 +32,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_get_garbageCollection.yml' + - $ref: 'examples/python/registry_get_garbageCollection.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_options.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_options.yml index 2e883c88b..d3df86351 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_options.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_options.yml @@ -37,6 +37,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_get_options.yml' + - $ref: 'examples/python/registry_get_options.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_subscription.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_subscription.yml index b70e85ada..8ffe04586 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_subscription.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_get_subscription.yml @@ -27,6 +27,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_get_subscription.yml' + - $ref: 'examples/python/registry_get_subscription.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_garbageCollections.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_garbageCollections.yml index a079652d2..20f24fa5e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_garbageCollections.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_garbageCollections.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_list_garbageCollections.yml' + - $ref: 'examples/python/registry_list_garbageCollections.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositories.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositories.yml index 113aec34f..e2aac1954 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositories.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositories.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_list_repositories.yml' + - $ref: 'examples/python/registry_list_repositories.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoriesV2.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoriesV2.yml index 280ecb715..f40c3878e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoriesV2.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoriesV2.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_list_repositoriesV2.yml' - $ref: 'examples/curl/registry_list_repositoriesV2_next_page.yml' + - $ref: 'examples/python/registry_list_repositoriesV2.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryManifests.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryManifests.yml index 0ca14a17c..3bd76fa79 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryManifests.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryManifests.yml @@ -41,6 +41,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_list_repositoryManifests.yml' + - $ref: 'examples/python/registry_list_repositoryManifests.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryTags.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryTags.yml index c8ef297cf..6ca5ea2f2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryTags.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_list_repositoryTags.yml @@ -41,6 +41,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_list_repositoryTags.yml' + - $ref: 'examples/python/registry_list_repositoryTags.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_run_garbageCollection.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_run_garbageCollection.yml index ec12eded3..10d81207c 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_run_garbageCollection.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_run_garbageCollection.yml @@ -52,6 +52,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_run_garbageCollection.yml' + - $ref: 'examples/python/registry_run_garbageCollection.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_garbageCollection.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_garbageCollection.yml index 509d94db1..e942e6254 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_garbageCollection.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_garbageCollection.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_update_garbageCollection.yml' + - $ref: 'examples/python/registry_update_garbageCollection.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_subscription.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_subscription.yml index 0bf0bde68..3260cb35e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_subscription.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_update_subscription.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_update_subscription.yml' + - $ref: 'examples/python/registry_update_subscription.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_validate_name.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_validate_name.yml index a5a7a176d..5e28e03e1 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_validate_name.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/registry/registry_validate_name.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/registry_validate_name.yml' + - $ref: 'examples/python/registry_validate_name.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/create_reserved_ip.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/create_reserved_ip.yml new file mode 100644 index 000000000..78da5928b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/create_reserved_ip.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "droplet_id": 2457247 + } + + resp = client.reserved_ips.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/delete_reserved_ip.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/delete_reserved_ip.yml new file mode 100644 index 000000000..b946238ec --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/delete_reserved_ip.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.reserved_ips.delete(reserved_ip="45.55.96.47") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/get_reserved_ip.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/get_reserved_ip.yml new file mode 100644 index 000000000..39e69c296 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/get_reserved_ip.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.reserved_ips.get(reserved_ip="45.55.96.47") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/get_reserved_ip_action.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/get_reserved_ip_action.yml new file mode 100644 index 000000000..0a0e42c8e --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/get_reserved_ip_action.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.reserved_ips_actions.get(reserved_ip="45.55.96.47") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/list_reserved_ip_actions.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/list_reserved_ip_actions.yml new file mode 100644 index 000000000..88d3f5a17 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/list_reserved_ip_actions.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.reserved_ips_actions.list(reserved_ip="45.55.96.47") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/list_reserved_ips.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/list_reserved_ips.yml new file mode 100644 index 000000000..642a9af6d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/list_reserved_ips.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.reserved_ips.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/post_reserved_ip_action.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/post_reserved_ip_action.yml new file mode 100644 index 000000000..b60e3a5fc --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/examples/python/post_reserved_ip_action.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req={ + "type": "unassign" + } + + resp = client.reserved_ips_actions.post(reserved_ip="49.32.13.21", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_get.yml index cd2f02653..caf0b14a0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/get_reserved_ip_action.yml' - $ref: 'examples/go/get_reserved_ip_action.yml' - $ref: 'examples/ruby/get_reserved_ip_action.yml' + - $ref: 'examples/python/get_reserved_ip_action.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_list.yml index 1b8a4de36..13afa0a72 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_list.yml @@ -34,6 +34,7 @@ x-codeSamples: - $ref: 'examples/curl/list_reserved_ip_actions.yml' - $ref: 'examples/go/list_reserved_ip_actions.yml' - $ref: 'examples/ruby/list_reserved_ip_actions.yml' + - $ref: 'examples/python/list_reserved_ip_actions.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_post.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_post.yml index b5ec411fd..4fdf52097 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_post.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPsActions_post.yml @@ -58,6 +58,7 @@ x-codeSamples: - $ref: 'examples/curl/post_reserved_ip_action.yml' - $ref: 'examples/go/post_reserved_ip_action.yml' - $ref: 'examples/ruby/post_reserved_ip_action.yml' + - $ref: 'examples/python/post_reserved_ip_action.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_create.yml index 4a7dcb556..4159156c4 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_create.yml @@ -46,6 +46,7 @@ x-codeSamples: - $ref: 'examples/curl/create_reserved_ip.yml' - $ref: 'examples/go/create_reserved_ip.yml' - $ref: 'examples/ruby/create_reserved_ip.yml' + - $ref: 'examples/python/create_reserved_ip.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_delete.yml index d0c5bdb67..0af22624a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_delete.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/delete_reserved_ip.yml' - $ref: 'examples/go/delete_reserved_ip.yml' - $ref: 'examples/ruby/delete_reserved_ip.yml' + - $ref: 'examples/python/delete_reserved_ip.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_get.yml index 6b298da58..a78b27bca 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_get.yml @@ -34,6 +34,7 @@ x-codeSamples: - $ref: 'examples/curl/get_reserved_ip.yml' - $ref: 'examples/go/get_reserved_ip.yml' - $ref: 'examples/ruby/get_reserved_ip.yml' + - $ref: 'examples/python/get_reserved_ip.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_list.yml index 342198266..78f012b1b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/reserved_ips/reservedIPs_list.yml @@ -32,6 +32,7 @@ x-codeSamples: - $ref: 'examples/curl/list_reserved_ips.yml' - $ref: 'examples/go/list_reserved_ips.yml' - $ref: 'examples/ruby/list_reserved_ips.yml' + - $ref: 'examples/python/list_reserved_ips.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/sizes/examples/python/sizes_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/sizes/examples/python/sizes_list.yml new file mode 100644 index 000000000..4c2541f2d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/sizes/examples/python/sizes_list.yml @@ -0,0 +1,9 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.sizes.list() + diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/sizes/sizes_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/sizes/sizes_list.yml index 9ab753cc8..79639c0a1 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/sizes/sizes_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/sizes/sizes_list.yml @@ -36,6 +36,7 @@ x-codeSamples: - $ref: 'examples/curl/sizes_list.yml' - $ref: 'examples/go/sizes_list.yml' - $ref: 'examples/ruby/sizes_list.yml' + - $ref: 'examples/python/sizes_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_delete.yml new file mode 100644 index 000000000..28d2de834 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.snapshots.delete(snapshot_id="fbe805e8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_get.yml new file mode 100644 index 000000000..a862dd6d4 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_get.yml @@ -0,0 +1,8 @@ +lang: cURL +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.snapshots.get(snapshot_id="fbe805e8") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_list.yml new file mode 100644 index 000000000..d0c33f45e --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/examples/python/snapshots_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.snapshots.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_delete.yml index a497e242b..af56c5a4f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_delete.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/snapshots_delete.yml' - $ref: 'examples/go/snapshots_delete.yml' - $ref: 'examples/ruby/snapshots_delete.yml' + - $ref: 'examples/python/snapshots_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_get.yml index ae4882dac..90eb501f8 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_get.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/snapshots_get.yml' - $ref: 'examples/go/snapshots_get.yml' - $ref: 'examples/ruby/snapshots_get.yml' + - $ref: 'examples/python/snapshots_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_list.yml index a41cc87bc..da0fae421 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/snapshots/snapshots_list.yml @@ -52,6 +52,7 @@ x-codeSamples: - $ref: 'examples/curl/snapshots_list.yml' - $ref: 'examples/go/snapshots_list.yml' - $ref: 'examples/ruby/snapshots_list.yml' + - $ref: 'examples/python/snapshots_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_create.yml new file mode 100644 index 000000000..71fe5903b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_create.yml @@ -0,0 +1,13 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "public_key": "ssh-rsa AEXAMPLEaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy4yALcK4JyWbVkPRaWmhck3IgCoeOO3z1e2dBowLh64QAM+Qb72pxekALga2oi4GvT+TlWNhzPH4V example", + "name": "My SSH Public Key" + } + + resp = client.ssh_keys.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_delete.yml new file mode 100644 index 000000000..b19d6e1aa --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.ssh_keys.delete(ssh_key_identifier=512190) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_get.yml new file mode 100644 index 000000000..f0c0ab0d3 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.ssh_keys.get(ssh_key_identifier=512190) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_list.yml new file mode 100644 index 000000000..6e604b60f --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.ssh_keys.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_patch.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_patch.yml new file mode 100644 index 000000000..904c2ef2a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/examples/python/sshKeys_patch.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "My SSH Public Key" + } + + resp = client.ssh_keys.update(ssh_key_identifier=512190, body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_create.yml index ee4a389a8..f9fe4cd63 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_create.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/sshKeys_create.yml' - $ref: 'examples/go/sshKeys_create.yml' - $ref: 'examples/ruby/sshKeys_create.yml' + - $ref: 'examples/python/sshKeys_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_delete.yml index 6f7a1db56..5510a6864 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_delete.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/sshKeys_delete.yml' - $ref: 'examples/go/sshKeys_delete.yml' - $ref: 'examples/ruby/sshKeys_delete.yml' + - $ref: 'examples/python/sshKeys_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_get.yml index b4e84c8b3..447e91ee1 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_get.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/sshKeys_get.yml' - $ref: 'examples/go/sshKeys_get.yml' - $ref: 'examples/ruby/sshKeys_get.yml' + - $ref: 'examples/python/sshKeys_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_list.yml index a273c21ca..394a1ad9f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_list.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/sshKeys_list.yml' - $ref: 'examples/go/sshKeys_list.yml' - $ref: 'examples/ruby/sshKeys_list.yml' + - $ref: 'examples/python/sshKeys_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_update.yml index b27aaaa7f..c692038f1 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_update.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/ssh_keys/sshKeys_update.yml @@ -49,6 +49,7 @@ x-codeSamples: - $ref: 'examples/curl/sshKeys_patch.yml' - $ref: 'examples/go/sshKeys_patch.yml' - $ref: 'examples/ruby/sshKeys_patch.yml' + - $ref: 'examples/python/sshKeys_patch.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_assign_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_assign_resources.yml new file mode 100644 index 000000000..60694c10b --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_assign_resources.yml @@ -0,0 +1,25 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "resources": [ + { + "resource_id": "9569411", + "resource_type": "droplet" + }, + { + "resource_id": "7555620", + "resource_type": "image" + }, + { + "resource_id": "3d80cb72-342b-4aaa-b92e-4e4abb24a933", + "resource_type": "volume" + } + ] + } + + resp = client.tags.assign_resources(tag_id="awesome", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_create.yml new file mode 100644 index 000000000..86bad4b2e --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_create.yml @@ -0,0 +1,32 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "tag": { + "name": "extra-awesome", + "resources": { + "count": 0, + "droplets": { + "count": 0 + }, + "images": { + "count": 0 + }, + "volumes": { + "count": 0 + }, + "volume_snapshots": { + "count": 0 + }, + "databases": { + "count": 0 + } + } + } + } + + resp = client.tags.create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_delete.yml new file mode 100644 index 000000000..d5730a34a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.tags.delete(tag_id="awesome") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_get.yml new file mode 100644 index 000000000..ffe9b5832 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.tags.get(tag_id="awesome") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_list.yml new file mode 100644 index 000000000..7ba5ec0a6 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.tags.list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_unassign_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_unassign_resources.yml new file mode 100644 index 000000000..cbdfb6ea0 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/examples/python/tags_unassign_resources.yml @@ -0,0 +1,25 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "resources": [ + { + "resource_id": "9569411", + "resource_type": "droplet" + }, + { + "resource_id": "7555620", + "resource_type": "image" + }, + { + "resource_id": "3d80cb72-342b-4aaa-b92e-4e4abb24a933", + "resource_type": "volume" + } + ] + } + + resp = client.tags.unassign_resources(tag_id="awesome", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_assign_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_assign_resources.yml index 0d48112e6..f5a25694b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_assign_resources.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_assign_resources.yml @@ -48,6 +48,7 @@ x-codeSamples: - $ref: 'examples/curl/tags_assign_resources.yml' - $ref: 'examples/go/tags_assign_resources.yml' - $ref: 'examples/ruby/tags_assign_resources.yml' + - $ref: 'examples/python/tags_assign_resources.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_create.yml index 1a4ab31cd..c35d1bff4 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_create.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/tags_create.yml' - $ref: 'examples/go/tags_create.yml' - $ref: 'examples/ruby/tags_create.yml' + - $ref: 'examples/python/tags_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_delete.yml index 7906f202a..5ba6d6c08 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_delete.yml @@ -36,6 +36,7 @@ x-codeSamples: - $ref: 'examples/curl/tags_delete.yml' - $ref: 'examples/go/tags_delete.yml' - $ref: 'examples/ruby/tags_delete.yml' + - $ref: 'examples/python/tags_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_get.yml index 8b4584470..1698b8fbf 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/tags_get.yml' - $ref: 'examples/go/tags_get.yml' - $ref: 'examples/ruby/tags_get.yml' + - $ref: 'examples/python/tags_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_list.yml index 75b65a9c1..4a84e1221 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_list.yml @@ -31,6 +31,7 @@ x-codeSamples: - $ref: 'examples/curl/tags_list.yml' - $ref: 'examples/go/tags_list.yml' - $ref: 'examples/ruby/tags_list.yml' + - $ref: 'examples/python/tags_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_unassign_resources.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_unassign_resources.yml index 9267cc6d8..349ae56d9 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_unassign_resources.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/tags/tags_unassign_resources.yml @@ -48,6 +48,7 @@ x-codeSamples: - $ref: 'examples/curl/tags_unassign_resources.yml' - $ref: 'examples/go/tags_unassign_resources.yml' - $ref: 'examples/ruby/tags_unassign_resources.yml' + - $ref: 'examples/python/tags_unassign_resources.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_alert.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_alert.yml index 7ccf1ce7b..7af00f1d2 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_alert.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_alert.yml @@ -58,6 +58,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/alert_create.yml' + - $ref: 'examples/python/alert_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_check.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_check.yml index 7048a0d0e..9ee793c7e 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_check.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/create_check.yml @@ -45,6 +45,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/check_create.yml' + - $ref: 'examples/python/check_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_alert.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_alert.yml index 4fcc448cb..3e5097460 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_alert.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_alert.yml @@ -36,6 +36,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/alert_delete.yml' + - $ref: 'examples/python/alert_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_check.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_check.yml index 3ddd44e57..7ad6f9bd8 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_check.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/delete_check.yml @@ -36,6 +36,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/check_delete.yml' + - $ref: 'examples/python/check_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_create.yml new file mode 100644 index 000000000..e8d016ead --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_create.yml @@ -0,0 +1,27 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "Landing page degraded performance", + "type": "latency", + "threshold": 300, + "comparison": "greater_than", + "notifications": { + "email": [ + "bob@example.com" + ], + "slack": [ + { + "channel": "Production Alerts", + "url": "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ" + } + ] + }, + "period": "2m" + } + + resp = client.uptime.alert_create(check_id="4de7ac8b", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_delete.yml new file mode 100644 index 000000000..e24ba8666 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.uptime.alert_delete(check_id="4de7ac8b", alert_id="da9da9") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_get.yml new file mode 100644 index 000000000..48e8b8c09 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.uptime.alert_get(check_id="4de7ac8b", alert_id="da9da9") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_list.yml new file mode 100644 index 000000000..8c7db1108 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.uptime.check_alerts_list(check_id="4de7ac8b") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_update.yml new file mode 100644 index 000000000..a48bda6c8 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/alert_update.yml @@ -0,0 +1,27 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "Landing page degraded performance", + "type": "latency", + "threshold": 300, + "comparison": "greater_than", + "notifications": { + "email": [ + "bob@example.com" + ], + "slack": [ + { + "channel": "Production Alerts", + "url": "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ" + } + ] + }, + "period": "2m" + } + + resp = client.uptime.alert_update(check_id="4de7ac8b", alert_id="da9da9", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_create.yml new file mode 100644 index 000000000..e88e02f83 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_create.yml @@ -0,0 +1,19 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "Landing page check", + "type": "https", + "target": "https://www.landingpage.com", + "regions": [ + "us_east", + "eu_west" + ], + "enabled": True + } + + resp = client.uptime.check_create(body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_delete.yml new file mode 100644 index 000000000..b3b8be570 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.uptime.check_delete(check_id="fd9dfa") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_get.yml new file mode 100644 index 000000000..0fdcc293c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.uptime.check_get(check_id="fd9dfa") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_list.yml new file mode 100644 index 000000000..cb64e1c79 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.uptime.checks_list() diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_state_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_state_get.yml new file mode 100644 index 000000000..0723173cf --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_state_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.uptime.check_state_get(check_id="fd9fda") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_update.yml new file mode 100644 index 000000000..b94b04702 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/examples/python/check_update.yml @@ -0,0 +1,19 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "Landing page check", + "type": "https", + "target": "https://www.landingpage.com", + "regions": [ + "us_east", + "eu_west" + ], + "enabled": True + } + + resp = client.uptime.check_update(check_id="fd9fda", body=req) diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_alert.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_alert.yml index 1d9b2fbcf..dcc896a3b 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_alert.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_alert.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/alert_get.yml' + - $ref: 'examples/python/alert_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check.yml index d97489713..98d61de57 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check.yml @@ -32,6 +32,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/check_get.yml' + - $ref: 'examples/python/check_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check_state.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check_state.yml index aadbbeeb8..ced239377 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check_state.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/get_check_state.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/check_state_get.yml' + - $ref: 'examples/python/check_state_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_alerts.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_alerts.yml index f4982f6b1..408694bfa 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_alerts.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_alerts.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/alert_list.yml' + - $ref: 'examples/python/alert_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_checks.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_checks.yml index 782f63064..9f0ff26e0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_checks.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/list_checks.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/check_list.yml' + - $ref: 'examples/python/check_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_alert.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_alert.yml index cf188fc6e..7cf3d712f 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_alert.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_alert.yml @@ -43,6 +43,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/alert_update.yml' + - $ref: 'examples/python/alert_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_check.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_check.yml index c7ae5730b..5cb9e42bd 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_check.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/uptime/update_check.yml @@ -42,6 +42,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/check_update.yml' + - $ref: 'examples/python/check_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_attach.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_attach.yml new file mode 100644 index 000000000..060ffd529 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_attach.yml @@ -0,0 +1,18 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "type": "attach", + "volume_name": "example", + "droplet_id": 11612190, + "region": "nyc1", + "tags": [ + "aninterestingtag" + ] + } + + resp = client.volume_actions.post(body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_attach_byId.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_attach_byId.yml new file mode 100644 index 000000000..815126c7a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_attach_byId.yml @@ -0,0 +1,17 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "type": "attach", + "droplet_id": 11612190, + "region": "nyc1", + "tags": [ + "aninterestingtag" + ] + } + + resp = client.volume_actions.post_by_id(volume_id="7724db7c", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_get.yml new file mode 100644 index 000000000..660143ac8 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.volume_actions.get(volume_id="7724db7c") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_list.yml new file mode 100644 index 000000000..e6b81a500 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeActions_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.volume_actions.list(volume_id="7724db7c") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_create.yml new file mode 100644 index 000000000..026f73ee2 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_create.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "big-data-snapshot1475261774" + } + + resp = client.volume_snapshots.create(volume_id="da3aa3a", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_delete_byId.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_delete_byId.yml new file mode 100644 index 000000000..2e4777056 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_delete_byId.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "big-data-snapshot1475261774" + } + + resp = client.volume_snapshots.delete_by_id(snapshot_id="da3aa3a") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_get_byId.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_get_byId.yml new file mode 100644 index 000000000..a23608139 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_get_byId.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "big-data-snapshot1475261774" + } + + resp = client.volume_snapshots.get_by_id(snapshot_id="da3aa3a") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_list.yml new file mode 100644 index 000000000..1d2bf1a4a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumeSnapshots_list.yml @@ -0,0 +1,12 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "big-data-snapshot1475261774" + } + + resp = client.volume_snapshots.list(snapshot_id="da3aa3a") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_create.yml new file mode 100644 index 000000000..69817867d --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_create.yml @@ -0,0 +1,17 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "size_gigabytes": 10, + "name": "ext4-example", + "description": "Block store for examples", + "region": "nyc1", + "filesystem_type": "ext4", + "filesystem_label": "ext4_volume_01" + } + + resp = client.volumes.create(body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_delete.yml new file mode 100644 index 000000000..dd79524a5 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.volumes.delete(volume_id="7724db7c") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_delete_byName.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_delete_byName.yml new file mode 100644 index 000000000..b18bdc20a --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_delete_byName.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.volumes.delete_by_name(name="ext4-ex") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_get.yml new file mode 100644 index 000000000..e9f709189 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.volumes.get(volume_id="7724db7c") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_list.yml new file mode 100644 index 000000000..0468a3a6c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/examples/python/volumes_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.volumes.list(region="nyc3") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_get.yml index e64547fcb..6e901204c 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_get.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/volumeActions_get.yml' - $ref: 'examples/go/volumeActions_get.yml' - $ref: 'examples/ruby/volumeActions_get.yml' + - $ref: 'examples/python/volumeActions_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_list.yml index 5d16ed3a5..0d405f3e3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_list.yml @@ -37,6 +37,7 @@ x-codeSamples: - $ref: 'examples/curl/volumeActions_list.yml' - $ref: 'examples/go/volumeActions_list.yml' - $ref: 'examples/ruby/volumeActions_list.yml' + - $ref: 'examples/python/volumeActions_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post.yml index f526138c0..0419f0fe5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post.yml @@ -92,6 +92,7 @@ responses: x-codeSamples: - $ref: "examples/curl/volumeActions_attach.yml" + - $ref: "examples/python/volumeActions_attach.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post_byId.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post_byId.yml index e432cca39..de0ff0eda 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post_byId.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeActions_post_byId.yml @@ -109,6 +109,7 @@ x-codeSamples: - $ref: "examples/curl/volumeActions_attach_byId.yml" - $ref: "examples/go/volumeActions_attach_byId.yml" - $ref: "examples/ruby/volumeActions_attach_byId.yml" + - $ref: "examples/python/volumeActions_attach_byId.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_create.yml index 5d8a6adbb..b940f9f08 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_create.yml @@ -57,6 +57,7 @@ x-codeSamples: - $ref: 'examples/curl/volumeSnapshots_create.yml' - $ref: 'examples/go/volumeSnapshots_create.yml' - $ref: 'examples/ruby/volumeSnapshots_create.yml' + - $ref: 'examples/python/volumeSnapshots_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_delete_byId.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_delete_byId.yml index 623460f17..52c6873de 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_delete_byId.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_delete_byId.yml @@ -38,6 +38,7 @@ x-codeSamples: - $ref: 'examples/curl/volumeSnapshots_delete_byId.yml' - $ref: 'examples/go/volumeSnapshots_delete_byId.yml' - $ref: 'examples/ruby/volumeSnapshots_delete_byId.yml' + - $ref: 'examples/python/volumeSnapshots_delete_byId.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_get_byId.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_get_byId.yml index e791a3f3d..350cc4062 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_get_byId.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_get_byId.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/volumeSnapshots_get_byId.yml' + - $ref: 'examples/python/volumeSnapshots_get_byId.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_list.yml index 1b9463f65..f7e979753 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumeSnapshots_list.yml @@ -37,6 +37,7 @@ x-codeSamples: - $ref: 'examples/curl/volumeSnapshots_list.yml' - $ref: 'examples/go/volumeSnapshots_list.yml' - $ref: 'examples/ruby/volumeSnapshots_list.yml' + - $ref: 'examples/python/volumeSnapshots_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_create.yml index 16121b62d..88fdd1e01 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_create.yml @@ -77,6 +77,7 @@ x-codeSamples: - $ref: 'examples/curl/volumes_create.yml' - $ref: 'examples/go/volumes_create.yml' - $ref: 'examples/ruby/volumes_create.yml' + - $ref: 'examples/python/volumes_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete.yml index f18d8e373..2ebad04c8 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete.yml @@ -39,6 +39,7 @@ x-codeSamples: - $ref: 'examples/curl/volumes_delete.yml' - $ref: 'examples/go/volumes_delete.yml' - $ref: 'examples/ruby/volumes_delete.yml' + - $ref: 'examples/python/volumes_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete_byName.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete_byName.yml index 7a7a35881..eaea80d73 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete_byName.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_delete_byName.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/volumes_delete_byName.yml' + - $ref: 'examples/python/volumes_delete_byName.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_get.yml index e49e45533..0fa65f65a 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_get.yml @@ -35,6 +35,7 @@ x-codeSamples: - $ref: 'examples/curl/volumes_get.yml' - $ref: 'examples/go/volumes_get.yml' - $ref: 'examples/ruby/volumes_get.yml' + - $ref: 'examples/python/volumes_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_list.yml index 89820189f..9985b7292 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/volumes/volumes_list.yml @@ -59,6 +59,7 @@ x-codeSamples: - $ref: "examples/curl/volumes_list.yml" - $ref: "examples/go/volumes_list.yml" - $ref: "examples/ruby/volumes_list.yml" + - $ref: "examples/python/volumes_list.yml" security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_create.yml new file mode 100644 index 000000000..5d741c0e3 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_create.yml @@ -0,0 +1,15 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "env.prod-vpc", + "description": "VPC for production environment", + "region": "nyc1", + "ip_range": "10.10.10.0/24" + } + + resp = client.vpcs.create(body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_delete.yml new file mode 100644 index 000000000..424b069cb --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_delete.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.vpcs.delete(vpc_id="e0fe0f4d") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_get.yml new file mode 100644 index 000000000..91dcdabff --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_get.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.vpcs.get(vpc_id="e0fe0f4d") diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_list.yml new file mode 100644 index 000000000..8e3cb5fca --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_list.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.vpcs.list() \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_list_members.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_list_members.yml new file mode 100644 index 000000000..80f135cde --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_list_members.yml @@ -0,0 +1,8 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + resp = client.vpcs.list_members(vpc_id="e0fe0f4d") \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_patch.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_patch.yml new file mode 100644 index 000000000..2c9b68dd9 --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_patch.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "env.prod-vpc", + "description": "VPC for production environment", + "default": True + } + + resp = client.vpcs.patch(vpc_id="8fdsfa", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_update.yml new file mode 100644 index 000000000..af8e42c3c --- /dev/null +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/examples/python/vpcs_update.yml @@ -0,0 +1,14 @@ +lang: Python +source: |- + import os + from pydo import Client + + client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN")) + + req = { + "name": "env.prod-vpc", + "description": "VPC for production environment", + "default": True + } + + resp = client.vpcs.update(vpc_id="8fdsfa", body=req) \ No newline at end of file diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_create.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_create.yml index 24d76e7d2..eb56c7668 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_create.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_create.yml @@ -47,6 +47,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/vpcs_create.yml' - $ref: 'examples/go/vpcs_create.yml' + - $ref: 'examples/python/vpcs_create.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_delete.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_delete.yml index d34ecaeb7..c2f4300d0 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_delete.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_delete.yml @@ -39,6 +39,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/vpcs_delete.yml' - $ref: 'examples/go/vpcs_delete.yml' + - $ref: 'examples/python/vpcs_delete.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_get.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_get.yml index faa341d2f..3f7d7fda5 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_get.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_get.yml @@ -33,6 +33,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/vpcs_get.yml' - $ref: 'examples/go/vpcs_get.yml' + - $ref: 'examples/python/vpcs_get.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list.yml index a099a895c..0b69fa7e3 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list.yml @@ -34,6 +34,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/vpcs_list.yml' - $ref: 'examples/go/vpcs_list.yml' + - $ref: 'examples/python/vpcs_list.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list_members.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list_members.yml index 8f9c40a4e..b0e5002bb 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list_members.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_list_members.yml @@ -40,6 +40,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/vpcs_list_members.yml' + - $ref: 'examples/python/vpcs_list_members.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_patch.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_patch.yml index 3ec39ba85..e8b17d2d9 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_patch.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_patch.yml @@ -44,6 +44,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/vpcs_patch.yml' - $ref: 'examples/go/vpcs_patch.yml' + - $ref: 'examples/python/vpcs_patch.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_update.yml b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_update.yml index a4e1c0d0b..20cea7d36 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_update.yml +++ b/packages/openapi-typescript/examples/digital-ocean-api/resources/vpcs/vpcs_update.yml @@ -47,6 +47,7 @@ responses: x-codeSamples: - $ref: 'examples/curl/vpcs_update.yml' - $ref: 'examples/go/vpcs_update.yml' + - $ref: 'examples/python/vpcs_update.yml' security: - bearer_auth: diff --git a/packages/openapi-typescript/examples/github-api-next.ts b/packages/openapi-typescript/examples/github-api-next.ts index 90ea9cd5e..eb93c2286 100644 --- a/packages/openapi-typescript/examples/github-api-next.ts +++ b/packages/openapi-typescript/examples/github-api-next.ts @@ -161,7 +161,7 @@ export interface paths { "/applications/{client_id}/token/scoped": { /** * Create a scoped access token - * @description Use a non-scoped user-to-server access token to create a repository scoped and/or permission scoped user-to-server access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. + * @description Use a non-scoped user access token to create a repository scoped and/or permission scoped user access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. */ post: operations["apps/scope-token"]; }; @@ -391,7 +391,7 @@ export interface paths { * Get a subscription plan for an account * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/get-subscription-plan-for-account"]; }; @@ -400,7 +400,7 @@ export interface paths { * List plans * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-plans"]; }; @@ -409,7 +409,7 @@ export interface paths { * List accounts for a plan * @description Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-accounts-for-plan"]; }; @@ -418,7 +418,7 @@ export interface paths { * Get a subscription plan for an account (stubbed) * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/get-subscription-plan-for-account-stubbed"]; }; @@ -427,7 +427,7 @@ export interface paths { * List plans (stubbed) * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-plans-stubbed"]; }; @@ -436,7 +436,7 @@ export interface paths { * List accounts for a plan (stubbed) * @description Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-accounts-for-plan-stubbed"]; }; @@ -665,95 +665,6 @@ export interface paths { */ put: operations["actions/set-github-actions-default-workflow-permissions-organization"]; }; - "/orgs/{org}/actions/required_workflows": { - /** - * List required workflows - * @description List all required workflows in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-required-workflows"]; - /** - * Create a required workflow - * @description Create a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - post: operations["actions/create-required-workflow"]; - }; - "/orgs/{org}/actions/required_workflows/{required_workflow_id}": { - /** - * Get a required workflow - * @description Get a required workflow configured in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/get-required-workflow"]; - /** - * Delete a required workflow - * @description Deletes a required workflow configured in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - delete: operations["actions/delete-required-workflow"]; - /** - * Update a required workflow - * @description Update a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - patch: operations["actions/update-required-workflow"]; - }; - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories": { - /** - * List selected repositories for a required workflow - * @description Lists the selected repositories that are configured for a required workflow in an organization. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-selected-repositories-required-workflow"]; - /** - * Sets repositories for a required workflow - * @description Sets the repositories for a required workflow that is required for selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - put: operations["actions/set-selected-repos-to-required-workflow"]; - }; - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}": { - /** - * Add a repository to a required workflow - * @description Adds a repository to a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - put: operations["actions/add-selected-repo-to-required-workflow"]; - /** - * Remove a selected repository from required workflow - * @description Removes a repository from a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - delete: operations["actions/remove-selected-repo-from-required-workflow"]; - }; "/orgs/{org}/actions/runners": { /** * List self-hosted runners for an organization @@ -1126,14 +1037,22 @@ export interface paths { * Add users to Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ post: operations["codespaces/set-codespaces-billing-users"]; /** - * Removes users from Codespaces billing for an organization + * Remove users from Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will no longer be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ delete: operations["codespaces/delete-codespaces-billing-users"]; }; @@ -2474,31 +2393,6 @@ export interface paths { */ get: operations["rate-limit/get"]; }; - "/repos/{org}/{repo}/actions/required_workflows": { - /** - * List repository required workflows - * @description Lists the required workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-repo-required-workflows"]; - }; - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}": { - /** - * Get a required workflow entity for a repository - * @description Gets a specific required workflow present in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/get-repo-required-workflow"]; - }; - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing": { - /** - * Get required workflow usage - * @description Gets the number of billable minutes used by a specific required workflow during the current billing cycle. - * - * Billable minutes only apply to required workflows running in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)." - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. - */ - get: operations["actions/get-repo-required-workflow-usage"]; - }; "/repos/{owner}/{repo}": { /** * Get a repository @@ -2716,15 +2610,6 @@ export interface paths { */ put: operations["actions/set-github-actions-default-workflow-permissions-repository"]; }; - "/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs": { - /** - * List workflow runs for a required workflow - * @description List all workflow runs for a required workflow. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-required-workflow-runs"]; - }; "/repos/{owner}/{repo}/actions/runners": { /** * List self-hosted runners for a repository @@ -3561,7 +3446,7 @@ export interface paths { * Get a check run * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ get: operations["checks/get"]; /** @@ -3575,7 +3460,7 @@ export interface paths { "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": { /** * List check run annotations - * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. + * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. */ get: operations["checks/list-annotations"]; }; @@ -3611,7 +3496,7 @@ export interface paths { * Get a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ get: operations["checks/get-suite"]; }; @@ -3620,7 +3505,7 @@ export interface paths { * List check runs in a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ get: operations["checks/list-for-suite"]; }; @@ -4235,6 +4120,8 @@ export interface paths { /** * List pull requests associated with a commit * @description Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + * + * To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. */ get: operations["repos/list-pull-requests-associated-with-commit"]; }; @@ -4285,7 +4172,7 @@ export interface paths { * List check runs for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ get: operations["checks/list-for-ref"]; }; @@ -4294,7 +4181,7 @@ export interface paths { * List check suites for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ get: operations["checks/list-suites-for-ref"]; }; @@ -4699,7 +4586,7 @@ export interface paths { * Create a deployment status * @description Users with `push` access can create deployment statuses for a given deployment. * - * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth apps require the `repo_deployment` scope. */ post: operations["repos/create-deployment-status"]; }; @@ -4882,7 +4769,7 @@ export interface paths { "/repos/{owner}/{repo}/git/commits": { /** * Create a commit - * @description Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * @description Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). * * **Signature verification object** * @@ -4919,6 +4806,7 @@ export interface paths { /** * Get a commit object * @description Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). + * * To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)." * * **Signature verification object** @@ -6711,7 +6599,7 @@ export interface paths { * * This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. * - * **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + * **Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." */ get: operations["search/issues-and-pull-requests"]; }; @@ -7537,7 +7425,7 @@ export interface paths { * List app installations accessible to the user access token * @description Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * @@ -7552,7 +7440,7 @@ export interface paths { * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The access the user has to each repository is included in the hash under the `permissions` key. */ @@ -7630,14 +7518,14 @@ export interface paths { "/user/marketplace_purchases": { /** * List subscriptions for the authenticated user - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ get: operations["apps/list-subscriptions-for-authenticated-user"]; }; "/user/marketplace_purchases/stubbed": { /** * List subscriptions for the authenticated user (stubbed) - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ get: operations["apps/list-subscriptions-for-authenticated-user-stubbed"]; }; @@ -8863,7 +8751,7 @@ export interface webhooks { * * A GitHub App receives this webhook by default and cannot unsubscribe from this event. * - * Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about user-to-server requests, which require GitHub App authorization, see "[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)." + * Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about requests with a user access token, which require GitHub App authorization, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)." * @description Someone revoked their authorization of a GitHub App. */ post: operations["github-app-authorization/revoked"]; @@ -11071,7 +10959,7 @@ export interface components { }; /** * App Permissions - * @description The permissions granted to the user-to-server access token. + * @description The permissions granted to the user access token. * @example { * "contents": "read", * "issues": "read", @@ -12731,6 +12619,14 @@ export interface components { /** @enum {string} */ status?: "enabled" | "disabled"; }; + /** @description Enable or disable Dependabot security updates for the repository. */ + dependabot_security_updates?: { + /** + * @description The enablement status of Dependabot security updates for the repository. + * @enum {string} + */ + status?: "enabled" | "disabled"; + }; secret_scanning?: { /** @enum {string} */ status?: "enabled" | "disabled"; @@ -12959,8 +12855,6 @@ export interface components { following: number; /** Format: uri */ html_url: string; - /** Format: date-time */ - created_at: string; type: string; total_private_repos?: number; owned_private_repos?: number; @@ -12988,8 +12882,6 @@ export interface components { members_can_create_private_pages?: boolean; members_can_fork_private_repositories?: OneOf<[boolean, null]>; web_commit_signoff_required?: boolean; - /** Format: date-time */ - updated_at: string; /** * @description Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization. * @@ -13035,6 +12927,12 @@ export interface components { secret_scanning_push_protection_custom_link_enabled?: boolean; /** @description An optional URL string to display to contributors who are blocked from pushing a secret. */ secret_scanning_push_protection_custom_link?: OneOf<[string, null]>; + /** Format: date-time */ + created_at: string; + /** Format: date-time */ + updated_at: string; + /** Format: date-time */ + archived_at: OneOf<[string, null]>; }; "actions-cache-usage-org-enterprise": { /** @description The count of active caches across all repositories of an enterprise or an organization. */ @@ -13113,33 +13011,6 @@ export interface components { default_workflow_permissions?: components["schemas"]["actions-default-workflow-permissions"]; can_approve_pull_request_reviews?: components["schemas"]["actions-can-approve-pull-request-reviews"]; }; - "required-workflow": { - /** @description Unique identifier for a required workflow */ - id: number; - /** @description Name present in the workflow file */ - name: string; - /** @description Path of the workflow file */ - path: string; - /** - * @description Scope of the required workflow - * @enum {string} - */ - scope: "all" | "selected"; - /** @description Ref at which the workflow file will be selected */ - ref: string; - /** - * @description State of the required workflow - * @enum {string} - */ - state: "active" | "deleted"; - /** Format: uri */ - selected_repositories_url?: string; - /** Format: date-time */ - created_at: string; - /** Format: date-time */ - updated_at: string; - repository: components["schemas"]["minimal-repository"]; - }; /** * Self hosted runner label * @description A label for a self hosted runner @@ -13276,7 +13147,7 @@ export interface components { * @description State of a code scanning alert. * @enum {string} */ - "code-scanning-alert-state": "open" | "closed" | "dismissed" | "fixed"; + "code-scanning-alert-state-query": "open" | "closed" | "dismissed" | "fixed"; /** * @description Severity of a code scanning alert. * @enum {string} @@ -13287,6 +13158,11 @@ export interface components { * @description The REST API URL for fetching the list of instances for an alert. */ readonly "alert-instances-url": string; + /** + * @description State of a code scanning alert. + * @enum {string} + */ + "code-scanning-alert-state": "open" | "dismissed" | "fixed"; /** * @description **Required when the state is dismissed.** The reason for dismissing or closing the alert. * @enum {string|null} @@ -13958,12 +13834,17 @@ export interface components { */ "repository-ruleset-bypass-actor": { /** @description The ID of the actor that can bypass a ruleset */ - actor_id?: number; + actor_id: number; /** * @description The type of actor that can bypass a ruleset * @enum {string} */ - actor_type?: "Team" | "Integration"; + actor_type: "RepositoryRole" | "Team" | "Integration" | "OrganizationAdmin"; + /** + * @description When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. + * @enum {string} + */ + bypass_mode: "always" | "pull_request"; }; /** * Repository ruleset conditions for ref names @@ -13982,7 +13863,7 @@ export interface components { * @description Parameters for a repository name condition */ "repository-ruleset-conditions-repository-name-target": { - repository_name?: { + repository_name: { /** @description 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. */ include?: (string)[]; /** @description Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match. */ @@ -13991,11 +13872,21 @@ export interface components { protected?: boolean; }; }; + /** + * Repository ruleset conditions for repository IDs + * @description Parameters for a repository ID condition + */ + "repository-ruleset-conditions-repository-id-target": { + repository_id: { + /** @description The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. */ + repository_ids?: (number)[]; + }; + }; /** * Organization ruleset conditions * @description Conditions for a organization ruleset */ - "org-ruleset-conditions": components["schemas"]["repository-ruleset-conditions"] & components["schemas"]["repository-ruleset-conditions-repository-name-target"]; + "org-ruleset-conditions": (components["schemas"]["repository-ruleset-conditions"] & components["schemas"]["repository-ruleset-conditions-repository-name-target"]) | (components["schemas"]["repository-ruleset-conditions"] & components["schemas"]["repository-ruleset-conditions-repository-id-target"]); /** * creation * @description Only allow users with bypass permission to create matching refs. @@ -14003,6 +13894,15 @@ export interface components { "repository-rule-creation": { /** @enum {string} */ type: "creation"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * update @@ -14011,6 +13911,15 @@ export interface components { "repository-rule-update": { /** @enum {string} */ type: "update"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description Branch can pull changes from its upstream repository */ update_allows_fetch_and_merge: boolean; @@ -14023,6 +13932,15 @@ export interface components { "repository-rule-deletion": { /** @enum {string} */ type: "deletion"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * required_linear_history @@ -14031,6 +13949,15 @@ export interface components { "repository-rule-required-linear-history": { /** @enum {string} */ type: "required_linear_history"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * required_deployments @@ -14039,6 +13966,15 @@ export interface components { "repository-rule-required-deployments": { /** @enum {string} */ type: "required_deployments"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description The environments that must be successfully deployed to before branches can be merged. */ required_deployment_environments: (string)[]; @@ -14051,6 +13987,15 @@ export interface components { "repository-rule-required-signatures": { /** @enum {string} */ type: "required_signatures"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * pull_request @@ -14059,6 +14004,15 @@ export interface components { "repository-rule-pull-request": { /** @enum {string} */ type: "pull_request"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description New, reviewable commits pushed will dismiss previous pull request review approvals. */ dismiss_stale_reviews_on_push: boolean; @@ -14089,6 +14043,15 @@ export interface components { "repository-rule-required-status-checks": { /** @enum {string} */ type: "required_status_checks"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description Status checks that are required. */ required_status_checks: (components["schemas"]["repository-rule-params-status-check-configuration"])[]; @@ -14103,6 +14066,15 @@ export interface components { "repository-rule-non-fast-forward": { /** @enum {string} */ type: "non_fast_forward"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * commit_message_pattern @@ -14111,6 +14083,15 @@ export interface components { "repository-rule-commit-message-pattern": { /** @enum {string} */ type: "commit_message_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -14132,6 +14113,15 @@ export interface components { "repository-rule-commit-author-email-pattern": { /** @enum {string} */ type: "commit_author_email_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -14153,6 +14143,15 @@ export interface components { "repository-rule-committer-email-pattern": { /** @enum {string} */ type: "committer_email_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -14174,6 +14173,15 @@ export interface components { "repository-rule-branch-name-pattern": { /** @enum {string} */ type: "branch_name_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -14195,6 +14203,15 @@ export interface components { "repository-rule-tag-name-pattern": { /** @enum {string} */ type: "tag_name_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -14236,13 +14253,13 @@ export interface components { /** @description The name of the source */ source: string; enforcement: components["schemas"]["repository-rule-enforcement"]; - /** - * @description The permission level required to bypass this ruleset. "repository" allows those with bypass permission at the repository level to bypass. "organization" allows those with bypass permission at the organization level to bypass. "none" prevents anyone from bypassing. - * @enum {string} - */ - bypass_mode?: "none" | "repository" | "organization"; /** @description The actors that can bypass the rules in this ruleset */ bypass_actors?: (components["schemas"]["repository-ruleset-bypass-actor"])[]; + /** + * @description Whether the user making this API request is able to bypass the ruleset. This field is only returned when + * querying the repository-level endpoint. + */ + current_user_can_bypass?: boolean; node_id?: string; _links?: { self?: { @@ -14385,6 +14402,8 @@ export interface components { web_commit_signoff_required?: boolean; /** Format: date-time */ updated_at: string; + /** Format: date-time */ + archived_at: OneOf<[string, null]>; }; /** * Full Team @@ -14746,6 +14765,11 @@ export interface components { watchers: number; master_branch?: string; }; + /** + * @description The CodeQL query suite to use. + * @enum {string} + */ + "code-scanning-query-suite": "default" | "extended"; /** * Project Card * @description Project cards represent a scope of work. @@ -14828,43 +14852,6 @@ export interface components { }; rate: components["schemas"]["rate-limit"]; }; - /** - * Required workflow - * @description A GitHub Actions required workflow - */ - "repo-required-workflow": { - id: number; - node_id: string; - name: string; - path: string; - /** @enum {string} */ - state: "active" | "deleted"; - source_repository: components["schemas"]["minimal-repository"]; - /** Format: date-time */ - created_at: string; - /** Format: date-time */ - updated_at: string; - url: string; - html_url: string; - badge_url: string; - }; - /** - * Workflow Usage - * @description Workflow Usage - */ - "workflow-usage": { - billable: { - UBUNTU?: { - total_ms?: number; - }; - MACOS?: { - total_ms?: number; - }; - WINDOWS?: { - total_ms?: number; - }; - }; - }; /** * Code Of Conduct Simple * @description Code of Conduct Simple @@ -15339,6 +15326,7 @@ export interface components { /** @description The URL to the workflow run. */ url: string; html_url: string; + /** @description Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run. */ pull_requests: OneOf<[(components["schemas"]["pull-request-minimal"])[], null]>; /** Format: date-time */ created_at: string; @@ -15550,6 +15538,23 @@ export interface components { /** Format: date-time */ deleted_at?: string; }; + /** + * Workflow Usage + * @description Workflow Usage + */ + "workflow-usage": { + billable: { + UBUNTU?: { + total_ms?: number; + }; + MACOS?: { + total_ms?: number; + }; + WINDOWS?: { + total_ms?: number; + }; + }; + }; /** * Autolink reference * @description An autolink reference. @@ -16032,6 +16037,7 @@ export interface components { id: number; }, null]>; app: null | components["schemas"]["integration"]; + /** @description Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check. */ pull_requests: (components["schemas"]["pull-request-minimal"])[]; deployment?: components["schemas"]["deployment-simple"]; }; @@ -16241,7 +16247,7 @@ export interface components { */ state?: "configured" | "not-configured"; /** @description Languages to be analysed. */ - languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "javascript" | "python" | "ruby" | "typescript")[]; + languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "javascript" | "python" | "ruby" | "typescript" | "swift")[]; /** * @description CodeQL query suite to be used. * @enum {string} @@ -16260,13 +16266,9 @@ export interface components { * @enum {string} */ state: "configured" | "not-configured"; - /** - * @description CodeQL query suite to be used. - * @enum {string} - */ - query_suite?: "default" | "extended"; + query_suite?: components["schemas"]["code-scanning-query-suite"]; /** @description CodeQL languages to be analyzed. Supported values are: `c-cpp`, `csharp`, `go`, `java-kotlin`, `javascript-typescript`, `python`, and `ruby`. */ - languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby")[]; + languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; /** * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. @@ -19221,7 +19223,7 @@ export interface components { * @description The package's language or package management ecosystem. * @enum {string} */ - "security-advisory-ecosystems": "rubygems" | "npm" | "pip" | "maven" | "nuget" | "composer" | "go" | "rust" | "erlang" | "actions" | "pub" | "other"; + "security-advisory-ecosystems": "rubygems" | "npm" | "pip" | "maven" | "nuget" | "composer" | "go" | "rust" | "erlang" | "actions" | "pub" | "other" | "swift"; /** @description A product affected by the vulnerability detailed in a repository security advisory. */ "repository-advisory-vulnerability": { /** @description The name of the package affected by the vulnerability. */ @@ -20967,7 +20969,6 @@ export interface components { "webhook-check-suite-completed": { /** @enum {string} */ action: "completed"; - actions_meta?: OneOf<[Record, null]>; /** @description The [check_suite](https://docs.github.com/rest/reference/checks#suites). */ check_suite: { after: OneOf<[string, null]>; @@ -21209,7 +21210,6 @@ export interface components { "webhook-check-suite-requested": { /** @enum {string} */ action: "requested"; - actions_meta?: OneOf<[Record, null]>; /** @description The [check_suite](https://docs.github.com/rest/reference/checks#suites). */ check_suite: { after: OneOf<[string, null]>; @@ -21451,12 +21451,6 @@ export interface components { "webhook-check-suite-rerequested": { /** @enum {string} */ action: "rerequested"; - actions_meta?: OneOf<[{ - rerun_info?: { - plan_id?: string; - job_ids?: (string)[]; - }; - }, null]>; /** @description The [check_suite](https://docs.github.com/rest/reference/checks#suites). */ check_suite: { after: OneOf<[string, null]>; @@ -25336,6 +25330,7 @@ export interface components { }; "webhook-installation-target-renamed": { account: { + archived_at?: OneOf<[string, null]>; avatar_url: string; created_at?: string; description?: null; @@ -78042,8 +78037,6 @@ export interface components { org: string; /** @description The unique identifier of the repository. */ "repository-id": number; - /** @description The unique identifier of the required workflow. */ - "required-workflow-id": number; /** @description Unique identifier of the self-hosted runner. */ "runner-id": number; /** @description The name of a self-hosted runner's custom label. */ @@ -78124,8 +78117,6 @@ export interface components { "card-id": number; /** @description The unique identifier of the column. */ "column-id": number; - /** @description The ID of the required workflow that has run at least once in a repository. */ - "repo-required-workflow-id": number; /** @description The unique identifier of the artifact. */ "artifact-id": number; /** @description The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`. */ @@ -78702,7 +78693,7 @@ export interface operations { }; /** * Create a scoped access token - * @description Use a non-scoped user-to-server access token to create a repository scoped and/or permission scoped user-to-server access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. + * @description Use a non-scoped user access token to create a repository scoped and/or permission scoped user access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. */ "apps/scope-token": { parameters: { @@ -78715,13 +78706,13 @@ export interface operations { "application/json": { /** @description The access token used to authenticate to the GitHub API. */ access_token: string; - /** @description The name of the user or organization to scope the user-to-server access token to. **Required** unless `target_id` is specified. */ + /** @description The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified. */ target?: string; - /** @description The ID of the user or organization to scope the user-to-server access token to. **Required** unless `target` is specified. */ + /** @description The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. */ target_id?: number; - /** @description The list of repository names to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified. */ + /** @description The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified. */ repositories?: (string)[]; - /** @description The list of repository IDs to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified. */ + /** @description The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified. */ repository_ids?: (number)[]; permissions?: components["schemas"]["app-permissions"]; }; @@ -79635,7 +79626,7 @@ export interface operations { * Get a subscription plan for an account * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/get-subscription-plan-for-account": { parameters: { @@ -79663,7 +79654,7 @@ export interface operations { * List plans * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-plans": { parameters: { @@ -79690,7 +79681,7 @@ export interface operations { * List accounts for a plan * @description Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-accounts-for-plan": { parameters: { @@ -79724,7 +79715,7 @@ export interface operations { * Get a subscription plan for an account (stubbed) * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/get-subscription-plan-for-account-stubbed": { parameters: { @@ -79748,7 +79739,7 @@ export interface operations { * List plans (stubbed) * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-plans-stubbed": { parameters: { @@ -79774,7 +79765,7 @@ export interface operations { * List accounts for a plan (stubbed) * @description Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-accounts-for-plan-stubbed": { parameters: { @@ -80605,272 +80596,6 @@ export interface operations { 204: never; }; }; - /** - * List required workflows - * @description List all required workflows in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-required-workflows": { - parameters: { - query?: { - per_page?: components["parameters"]["per-page"]; - page?: components["parameters"]["page"]; - }; - path: { - org: components["parameters"]["org"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": { - total_count: number; - required_workflows: (components["schemas"]["required-workflow"])[]; - }; - }; - }; - }; - }; - /** - * Create a required workflow - * @description Create a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/create-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - }; - }; - requestBody: { - content: { - "application/json": { - /** @description Path of the workflow file to be configured as a required workflow. */ - workflow_file_path: string; - /** @description The ID of the repository that contains the workflow file. */ - repository_id: string; - /** - * @description Enable the required workflow for all repositories or selected repositories in the organization. - * @default all - * @enum {string} - */ - scope?: "selected" | "all"; - /** @description A list of repository IDs where you want to enable the required workflow. You can only provide a list of repository ids when the `scope` is set to `selected`. */ - selected_repository_ids?: (number)[]; - }; - }; - }; - responses: { - /** @description Response */ - 201: { - content: { - "application/json": components["schemas"]["required-workflow"]; - }; - }; - 422: components["responses"]["validation_failed_simple"]; - }; - }; - /** - * Get a required workflow - * @description Get a required workflow configured in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/get-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["required-workflow"]; - }; - }; - }; - }; - /** - * Delete a required workflow - * @description Deletes a required workflow configured in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/delete-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 204: never; - }; - }; - /** - * Update a required workflow - * @description Update a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/update-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - requestBody: { - content: { - "application/json": { - /** @description Path of the workflow file to be configured as a required workflow. */ - workflow_file_path?: string; - /** @description The ID of the repository that contains the workflow file. */ - repository_id?: string; - /** - * @description Enable the required workflow for all repositories or selected repositories in the organization. - * @default all - * @enum {string} - */ - scope?: "selected" | "all"; - /** @description A list of repository IDs where you want to enable the required workflow. A list of repository IDs where you want to enable the required workflow. You can only provide a list of repository ids when the `scope` is set to `selected`. */ - selected_repository_ids?: (number)[]; - }; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["required-workflow"]; - }; - }; - 422: components["responses"]["validation_failed_simple"]; - }; - }; - /** - * List selected repositories for a required workflow - * @description Lists the selected repositories that are configured for a required workflow in an organization. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-selected-repositories-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - responses: { - /** @description Success */ - 200: { - content: { - "application/json": { - total_count: number; - repositories: (components["schemas"]["repository"])[]; - }; - }; - }; - /** @description Resource Not Found */ - 404: never; - }; - }; - /** - * Sets repositories for a required workflow - * @description Sets the repositories for a required workflow that is required for selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/set-selected-repos-to-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - requestBody: { - content: { - "application/json": { - /** @description The IDs of the repositories for which the workflow should be required. */ - selected_repository_ids: (number)[]; - }; - }; - }; - responses: { - /** @description Response */ - 204: never; - }; - }; - /** - * Add a repository to a required workflow - * @description Adds a repository to a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/add-selected-repo-to-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - repository_id: components["parameters"]["repository-id"]; - }; - }; - responses: { - /** @description Success */ - 204: never; - /** @description Resource Not Found */ - 404: never; - /** @description Validation Error */ - 422: never; - }; - }; - /** - * Remove a selected repository from required workflow - * @description Removes a repository from a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/remove-selected-repo-from-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - repository_id: components["parameters"]["repository-id"]; - }; - }; - responses: { - /** @description Success */ - 204: never; - /** @description Resource Not Found */ - 404: never; - /** @description Validation Error */ - 422: never; - }; - }; /** * List self-hosted runners for an organization * @description Lists all self-hosted runners configured in an organization. @@ -81792,7 +81517,7 @@ export interface operations { per_page?: components["parameters"]["per-page"]; direction?: components["parameters"]["direction"]; /** @description If specified, only code scanning alerts with this state will be returned. */ - state?: components["schemas"]["code-scanning-alert-state"]; + state?: components["schemas"]["code-scanning-alert-state-query"]; /** @description The property by which to sort the results. */ sort?: "created" | "updated"; /** @description If specified, only code scanning alerts with this severity will be returned. */ @@ -81889,7 +81614,11 @@ export interface operations { * Add users to Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ "codespaces/set-codespaces-billing-users": { parameters: { @@ -81917,10 +81646,14 @@ export interface operations { }; }; /** - * Removes users from Codespaces billing for an organization + * Remove users from Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will no longer be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ "codespaces/delete-codespaces-billing-users": { parameters: { @@ -86665,82 +86398,6 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** - * List repository required workflows - * @description Lists the required workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-repo-required-workflows": { - parameters: { - query?: { - per_page?: components["parameters"]["per-page"]; - page?: components["parameters"]["page"]; - }; - path: { - org: components["parameters"]["org"]; - repo: components["parameters"]["repo"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": { - total_count: number; - required_workflows: (components["schemas"]["repo-required-workflow"])[]; - }; - }; - }; - 404: components["responses"]["not_found"]; - }; - }; - /** - * Get a required workflow entity for a repository - * @description Gets a specific required workflow present in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/get-repo-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - repo: components["parameters"]["repo"]; - required_workflow_id_for_repo: components["parameters"]["repo-required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["repo-required-workflow"]; - }; - }; - 404: components["responses"]["not_found"]; - }; - }; - /** - * Get required workflow usage - * @description Gets the number of billable minutes used by a specific required workflow during the current billing cycle. - * - * Billable minutes only apply to required workflows running in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)." - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. - */ - "actions/get-repo-required-workflow-usage": { - parameters: { - path: { - org: components["parameters"]["org"]; - repo: components["parameters"]["repo"]; - required_workflow_id_for_repo: components["parameters"]["repo-required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["workflow-usage"]; - }; - }; - 404: components["responses"]["not_found"]; - }; - }; /** * Get a repository * @description The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. @@ -87561,47 +87218,6 @@ export interface operations { 409: never; }; }; - /** - * List workflow runs for a required workflow - * @description List all workflow runs for a required workflow. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-required-workflow-runs": { - parameters: { - query?: { - actor?: components["parameters"]["actor"]; - branch?: components["parameters"]["workflow-run-branch"]; - event?: components["parameters"]["event"]; - status?: components["parameters"]["workflow-run-status"]; - per_page?: components["parameters"]["per-page"]; - page?: components["parameters"]["page"]; - created?: components["parameters"]["created"]; - exclude_pull_requests?: components["parameters"]["exclude-pull-requests"]; - check_suite_id?: components["parameters"]["workflow-run-check-suite-id"]; - head_sha?: components["parameters"]["workflow-run-head-sha"]; - }; - path: { - owner: components["parameters"]["owner"]; - repo: components["parameters"]["repo"]; - required_workflow_id_for_repo: components["parameters"]["repo-required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - headers: { - Link: components["headers"]["link"]; - }; - content: { - "application/json": { - total_count: number; - workflow_runs: (components["schemas"]["workflow-run"])[]; - }; - }; - }; - }; - }; /** * List self-hosted runners for a repository * @description Lists all self-hosted runners configured in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint. @@ -90279,7 +89895,7 @@ export interface operations { * Get a check run * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ "checks/get": { parameters: { @@ -90415,7 +90031,7 @@ export interface operations { }; /** * List check run annotations - * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. + * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. */ "checks/list-annotations": { parameters: { @@ -90555,7 +90171,7 @@ export interface operations { * Get a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ "checks/get-suite": { parameters: { @@ -90578,7 +90194,7 @@ export interface operations { * List check runs in a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ "checks/list-for-suite": { parameters: { @@ -90659,7 +90275,7 @@ export interface operations { /** @description The property by which to sort the results. */ sort?: "created" | "updated"; /** @description If specified, only code scanning alerts with this state will be returned. */ - state?: components["schemas"]["code-scanning-alert-state"]; + state?: components["schemas"]["code-scanning-alert-state-query"]; /** @description If specified, only code scanning alerts with this severity will be returned. */ severity?: components["schemas"]["code-scanning-alert-severity"]; }; @@ -92181,6 +91797,8 @@ export interface operations { /** * List pull requests associated with a commit * @description Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + * + * To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. */ "repos/list-pull-requests-associated-with-commit": { parameters: { @@ -92274,7 +91892,7 @@ export interface operations { * List check runs for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ "checks/list-for-ref": { parameters: { @@ -92312,7 +91930,7 @@ export interface operations { * List check suites for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ "checks/list-suites-for-ref": { parameters: { @@ -93379,7 +92997,7 @@ export interface operations { * Create a deployment status * @description Users with `push` access can create deployment statuses for a given deployment. * - * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth apps require the `repo_deployment` scope. */ "repos/create-deployment-status": { parameters: { @@ -94051,7 +93669,7 @@ export interface operations { }; /** * Create a commit - * @description Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * @description Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). * * **Signature verification object** * @@ -94145,6 +93763,7 @@ export interface operations { /** * Get a commit object * @description Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). + * * To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)." * * **Signature verification object** @@ -99115,11 +98734,6 @@ export interface operations { */ target?: "branch" | "tag"; enforcement: components["schemas"]["repository-rule-enforcement"]; - /** - * @description The permission level required to bypass this ruleset. "repository" allows those with bypass permission at the repository level to bypass. "organization" allows those with bypass permission at the organization level to bypass. "none" prevents anyone from bypassing. - * @enum {string} - */ - bypass_mode?: "none" | "repository" | "organization"; /** @description The actors that can bypass the rules in this ruleset */ bypass_actors?: (components["schemas"]["repository-ruleset-bypass-actor"])[]; conditions?: components["schemas"]["repository-ruleset-conditions"]; @@ -99192,11 +98806,6 @@ export interface operations { */ target?: "branch" | "tag"; enforcement?: components["schemas"]["repository-rule-enforcement"]; - /** - * @description The permission level required to bypass this ruleset. "repository" allows those with bypass permission at the repository level to bypass. "organization" allows those with bypass permission at the organization level to bypass. "none" prevents anyone from bypassing. - * @enum {string} - */ - bypass_mode?: "none" | "repository" | "organization"; /** @description The actors that can bypass the rules in this ruleset */ bypass_actors?: (components["schemas"]["repository-ruleset-bypass-actor"])[]; conditions?: components["schemas"]["repository-ruleset-conditions"]; @@ -100761,7 +100370,7 @@ export interface operations { * * This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. * - * **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + * **Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." */ "search/issues-and-pull-requests": { parameters: { @@ -103184,7 +102793,7 @@ export interface operations { * List app installations accessible to the user access token * @description Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * @@ -103221,7 +102830,7 @@ export interface operations { * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The access the user has to each repository is included in the hash under the `permissions` key. */ @@ -103483,7 +103092,7 @@ export interface operations { }; /** * List subscriptions for the authenticated user - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ "apps/list-subscriptions-for-authenticated-user": { parameters: { @@ -103509,7 +103118,7 @@ export interface operations { }; /** * List subscriptions for the authenticated user (stubbed) - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ "apps/list-subscriptions-for-authenticated-user-stubbed": { parameters: { @@ -107486,7 +107095,7 @@ export interface operations { * * A GitHub App receives this webhook by default and cannot unsubscribe from this event. * - * Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about user-to-server requests, which require GitHub App authorization, see "[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)." + * Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about requests with a user access token, which require GitHub App authorization, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)." * @description Someone revoked their authorization of a GitHub App. */ "github-app-authorization/revoked": { diff --git a/packages/openapi-typescript/examples/github-api-next.yaml b/packages/openapi-typescript/examples/github-api-next.yaml index ea2fc39cb..0a6e75db9 100644 --- a/packages/openapi-typescript/examples/github-api-next.yaml +++ b/packages/openapi-typescript/examples/github-api-next.yaml @@ -110,6 +110,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta + subcategory: meta externalDocs: description: API method documentation url: https://docs.github.com/rest/overview/resources-in-the-rest-api#root-endpoint @@ -141,7 +142,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app-manifests/{code}/conversions": post: summary: Create a GitHub App from a manifest @@ -198,7 +199,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/app/hook/config": get: summary: Get a webhook configuration for an app @@ -413,7 +414,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app/installations": get: summary: List installations for the authenticated app @@ -456,7 +457,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app/installations/{installation_id}": get: summary: Get an installation for the authenticated app @@ -488,7 +489,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps delete: summary: Delete an installation for the authenticated app description: |- @@ -512,7 +513,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/app/installations/{installation_id}/access_tokens": post: summary: Create an installation access token for an app @@ -582,7 +583,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app/installations/{installation_id}/suspended": put: summary: Suspend an app installation @@ -607,7 +608,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps delete: summary: Unsuspend an app installation description: |- @@ -631,7 +632,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/applications/{client_id}/grant": delete: summary: Delete an app authorization @@ -819,10 +820,10 @@ paths: "/applications/{client_id}/token/scoped": post: summary: Create a scoped access token - description: Use a non-scoped user-to-server access token to create a repository - scoped and/or permission scoped user-to-server access token. You can specify - which repositories the token can access and which permissions are granted - to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) + description: Use a non-scoped user access token to create a repository scoped + and/or permission scoped user access token. You can specify which repositories + the token can access and which permissions are granted to the token. You must + use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. @@ -848,20 +849,20 @@ paths: examples: - e72e16c7e42f292c6912e7710c838347ae178b4a target: - description: The name of the user or organization to scope the user-to-server + description: The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified. type: string examples: - octocat target_id: - description: The ID of the user or organization to scope the user-to-server + description: The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. type: integer examples: - 1 repositories: - description: The list of repository names to scope the user-to-server - access token to. `repositories` may not be specified if `repository_ids` + description: The list of repository names to scope the user access + token to. `repositories` may not be specified if `repository_ids` is specified. type: array items: @@ -869,8 +870,8 @@ paths: examples: - rails repository_ids: - description: The list of repository IDs to scope the user-to-server - access token to. `repository_ids` may not be specified if `repositories` + description: The list of repository IDs to scope the user access + token to. `repository_ids` may not be specified if `repositories` is specified. type: array items: @@ -946,7 +947,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/codes_of_conduct": get: summary: Get all codes of conduct @@ -976,7 +977,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codes-of-conduct - subcategory: + subcategory: codes-of-conduct "/codes_of_conduct/{key}": get: summary: Get a code of conduct @@ -1011,7 +1012,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codes-of-conduct - subcategory: + subcategory: codes-of-conduct "/emojis": get: summary: Get emojis @@ -1041,7 +1042,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: emojis - subcategory: + subcategory: emojis "/enterprises/{enterprise}/dependabot/alerts": get: summary: List Dependabot alerts for an enterprise @@ -1141,7 +1142,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: secret-scanning - subcategory: + subcategory: secret-scanning "/events": get: summary: List public events @@ -1255,7 +1256,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists post: summary: Create a gist description: |- @@ -1348,7 +1349,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/public": get: summary: List public gists @@ -1391,7 +1392,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/starred": get: summary: List starred gists @@ -1431,7 +1432,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}": get: summary: Get a gist @@ -1464,7 +1465,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists patch: summary: Update a gist description: Allows you to update a gist's description and to update, delete, @@ -1569,7 +1570,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists delete: summary: Delete a gist description: '' @@ -1594,7 +1595,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/comments": get: summary: List gist comments @@ -1842,7 +1843,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/forks": get: summary: List gist forks @@ -1882,7 +1883,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists post: summary: Fork a gist description: '' @@ -1921,7 +1922,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/star": get: summary: Check if a gist is starred @@ -1953,7 +1954,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists put: summary: Star a gist description: Note that you'll need to set `Content-Length` to zero when calling @@ -1979,7 +1980,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists delete: summary: Unstar a gist description: '' @@ -2004,7 +2005,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/{sha}": get: summary: Get a gist revision @@ -2042,7 +2043,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gitignore/templates": get: summary: Get all gitignore templates @@ -2080,7 +2081,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: gitignore - subcategory: + subcategory: gitignore "/gitignore/templates/{name}": get: summary: Get a gitignore template @@ -2115,7 +2116,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: gitignore - subcategory: + subcategory: gitignore "/installation/repositories": get: summary: List repositories accessible to the app installation @@ -2304,7 +2305,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: issues - subcategory: + subcategory: issues "/licenses": get: summary: Get all commonly used licenses @@ -2341,7 +2342,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: licenses - subcategory: + subcategory: licenses "/licenses/{license}": get: summary: Get a license @@ -2378,7 +2379,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: licenses - subcategory: + subcategory: licenses "/markdown": post: summary: Render a Markdown document @@ -2448,7 +2449,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: markdown - subcategory: + subcategory: markdown "/markdown/raw": post: summary: Render a Markdown document in raw mode @@ -2502,14 +2503,14 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: markdown - subcategory: + subcategory: markdown "/marketplace_listing/accounts/{account_id}": get: summary: Get a subscription plan for an account description: |- Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/get-subscription-plan-for-account @@ -2547,7 +2548,7 @@ paths: description: |- Lists all plans that are part of your GitHub Marketplace listing. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-plans @@ -2587,7 +2588,7 @@ paths: description: |- Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-accounts-for-plan @@ -2641,7 +2642,7 @@ paths: description: |- Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/get-subscription-plan-for-account-stubbed @@ -2675,7 +2676,7 @@ paths: description: |- Lists all plans that are part of your GitHub Marketplace listing. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-plans-stubbed @@ -2713,7 +2714,7 @@ paths: description: |- Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-accounts-for-plan-stubbed @@ -2791,7 +2792,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta - subcategory: + subcategory: meta "/networks/{owner}/{repo}/events": get: summary: List public events for a network of repositories @@ -3152,6 +3153,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta + subcategory: meta "/organizations": get: summary: List organizations @@ -3191,7 +3193,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs "/orgs/{org}": get: summary: Get an organization @@ -3223,7 +3225,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs patch: summary: Update an organization description: |- @@ -3450,7 +3452,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs delete: summary: Delete an organization description: |- @@ -3958,412 +3960,6 @@ paths: enabledForGitHubApps: true category: actions subcategory: permissions - "/orgs/{org}/actions/required_workflows": - get: - summary: List required workflows - description: |- - List all required workflows in an organization. - - You must authenticate using an access token with the `read:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/list-required-workflows - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#list-required-workflows - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/per-page" - - "$ref": "#/components/parameters/page" - responses: - '200': - description: Response - content: - application/json: - schema: - type: object - required: - - total_count - - required_workflows - properties: - total_count: - type: integer - required_workflows: - type: array - items: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflows-paginated" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - post: - summary: Create a required workflow - description: |- - Create a required workflow in an organization. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/create-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#create-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - workflow_file_path: - description: Path of the workflow file to be configured as a required - workflow. - type: string - repository_id: - description: The ID of the repository that contains the workflow - file. - type: string - scope: - description: Enable the required workflow for all repositories or - selected repositories in the organization. - type: string - enum: - - selected - - all - default: all - selected_repository_ids: - description: A list of repository IDs where you want to enable the - required workflow. You can only provide a list of repository ids - when the `scope` is set to `selected`. - type: array - items: - type: integer - description: Unique identifier of the repository. - required: - - workflow_file_path - - repository_id - examples: - default: - value: - workflow_file_path: ".github/workflows/ci.yaml" - repository_id: 53 - scope: selected - selected_repository_ids: - - 32 - - 91 - responses: - '201': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflow" - '422': - "$ref": "#/components/responses/validation_failed_simple" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/orgs/{org}/actions/required_workflows/{required_workflow_id}": - get: - summary: Get a required workflow - description: |- - Get a required workflow configured in an organization. - - You must authenticate using an access token with the `read:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/get-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#get-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflow" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - patch: - summary: Update a required workflow - description: |- - Update a required workflow in an organization. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/update-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#update-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - workflow_file_path: - description: Path of the workflow file to be configured as a required - workflow. - type: string - repository_id: - description: The ID of the repository that contains the workflow - file. - type: string - scope: - description: Enable the required workflow for all repositories or - selected repositories in the organization. - type: string - enum: - - selected - - all - default: all - selected_repository_ids: - description: A list of repository IDs where you want to enable the - required workflow. A list of repository IDs where you want to - enable the required workflow. You can only provide a list of repository - ids when the `scope` is set to `selected`. - type: array - items: - type: integer - description: Unique identifier of the repository. - examples: - default: - value: - workflow_file_path: ".github/workflows/ci.yaml" - repository_id: 53 - scope: selected - selected_repository_ids: - - 32 - - 91 - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflow" - '422': - "$ref": "#/components/responses/validation_failed_simple" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - delete: - summary: Delete a required workflow - description: |- - Deletes a required workflow configured in an organization. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/delete-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#delete-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories": - get: - summary: List selected repositories for a required workflow - description: |- - Lists the selected repositories that are configured for a required workflow in an organization. To use this endpoint, the required workflow must be configured to run on selected repositories. - - You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - operationId: actions/list-selected-repositories-required-workflow - tags: - - actions - externalDocs: - description: API method documentation https://docs.github.com/rest/reference/actions#list-selected-repositories-required-workflows - url: https://docs.github.com/rest/reference/actions#list-selected-repositories-required-workflows - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - responses: - '200': - description: Success - content: - application/json: - schema: - type: object - required: - - total_count - - repositories - properties: - total_count: - type: number - repositories: - type: array - items: - "$ref": "#/components/schemas/repository" - examples: - default: - "$ref": "#/components/examples/repository-paginated" - '404': - description: Resource Not Found - x-github: - enabledForGitHubApps: true - githubCloudOnly: false - category: actions - subcategory: required-workflows - put: - summary: Sets repositories for a required workflow - description: |- - Sets the repositories for a required workflow that is required for selected repositories. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/set-selected-repos-to-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#set-selected-repositories-for-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - selected_repository_ids: - description: The IDs of the repositories for which the workflow - should be required. - type: array - items: - type: integer - description: Unique identifier of the repository. - required: - - selected_repository_ids - examples: - default: - value: - selected_repository_ids: - - 32 - - 91 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}": - put: - summary: Add a repository to a required workflow - description: |- - Adds a repository to a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/add-selected-repo-to-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#add-a-repository-to-selected-repositories-list-for-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - - "$ref": "#/components/parameters/repository-id" - responses: - '204': - description: Success - '404': - description: Resource Not Found - '422': - description: Validation Error - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - delete: - summary: Remove a selected repository from required workflow - description: |- - Removes a repository from a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/remove-selected-repo-from-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#remove-a-repository-from-selected-repositories-list-for-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - - "$ref": "#/components/parameters/repository-id" - responses: - '204': - description: Success - '404': - description: Resource Not Found - '422': - description: Validation Error - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows "/orgs/{org}/actions/runners": get: summary: List self-hosted runners for an organization @@ -5794,7 +5390,7 @@ paths: in: query required: false schema: - "$ref": "#/components/schemas/code-scanning-alert-state" + "$ref": "#/components/schemas/code-scanning-alert-state-query" - name: sort description: The property by which to sort the results. in: query @@ -5835,7 +5431,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/orgs/{org}/codespaces": get: summary: List codespaces for the organization @@ -5960,7 +5556,11 @@ paths: summary: Add users to Codespaces billing for an organization description: |- Codespaces for the specified users will be billed to the organization. - To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + + To use this endpoint, the billing settings for the organization must be set to `selected_members`. + For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + + You must authenticate using an access token with the `admin:org` scope to use this endpoint. tags: - codespaces operationId: codespaces/set-codespaces-billing-users @@ -6011,10 +5611,14 @@ paths: category: codespaces subcategory: organizations delete: - summary: Removes users from Codespaces billing for an organization + summary: Remove users from Codespaces billing for an organization description: |- Codespaces for the specified users will no longer be billed to the organization. - To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + + To use this endpoint, the billing settings for the organization must be set to `selected_members`. + For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + + You must authenticate using an access token with the `admin:org` scope to use this endpoint. tags: - codespaces operationId: codespaces/delete-codespaces-billing-users @@ -7055,7 +6659,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/events": get: summary: List public organization events @@ -7629,7 +7233,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/orgs/{org}/installations": get: summary: List app installations for an organization @@ -7673,7 +7277,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs "/orgs/{org}/interaction-limits": get: summary: Get interaction restrictions for an organization @@ -8062,7 +7666,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: issues - subcategory: + subcategory: issues "/orgs/{org}/members": get: summary: List organization members @@ -8970,7 +8574,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}": get: summary: Get a package for an organization @@ -9002,7 +8606,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package for an organization description: |- @@ -9034,7 +8638,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/restore": post: summary: Restore a package for an organization @@ -9077,7 +8681,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/versions": get: summary: List package versions for a package owned by an organization @@ -9129,7 +8733,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}": get: summary: Get a package version for an organization @@ -9162,7 +8766,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete package version for an organization description: |- @@ -9195,7 +8799,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore": post: summary: Restore package version for an organization @@ -9233,7 +8837,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/personal-access-token-requests": get: summary: List requests to access organization resources with fine-grained personal @@ -9752,7 +9356,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects post: summary: Create an organization project description: Creates an organization project board. Returns a `410 Gone` status @@ -9811,7 +9415,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/orgs/{org}/public_members": get: summary: List public organization members @@ -9988,7 +9592,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos post: summary: Create an organization repository description: |- @@ -10197,7 +9801,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/orgs/{org}/rulesets": get: summary: Get all organization repository rulesets @@ -10292,6 +9896,7 @@ paths: bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -10417,6 +10022,7 @@ paths: bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -10521,7 +10127,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning "/orgs/{org}/security-managers": get: summary: List security manager teams @@ -10644,7 +10250,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/orgs/{org}/settings/billing/packages": get: summary: Get GitHub Packages billing for an organization @@ -10676,7 +10282,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/orgs/{org}/settings/billing/shared-storage": get: summary: Get shared storage billing for an organization @@ -10708,7 +10314,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/orgs/{org}/teams": get: summary: List teams @@ -10745,7 +10351,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams post: summary: Create a team description: |- @@ -10844,7 +10450,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}": get: summary: Get a team by name @@ -10877,7 +10483,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams patch: summary: Update a team description: |- @@ -10979,7 +10585,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams delete: summary: Delete a team description: |- @@ -11004,7 +10610,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/discussions": get: summary: List discussions @@ -11466,7 +11072,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a team discussion comment description: |- @@ -11534,7 +11140,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": delete: summary: Delete team discussion comment reaction @@ -11561,7 +11167,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": get: summary: List reactions for a team discussion @@ -11616,7 +11222,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a team discussion description: |- @@ -11682,7 +11288,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": delete: summary: Delete team discussion reaction @@ -11708,7 +11314,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/invitations": get: summary: List pending team invitations @@ -11967,7 +11573,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/projects/{project_id}": get: summary: Check team permissions for a project @@ -12001,7 +11607,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams put: summary: Add or update team project permissions description: |- @@ -12067,7 +11673,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams delete: summary: Remove a project from a team description: |- @@ -12091,7 +11697,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/repos": get: summary: List team repositories @@ -12129,7 +11735,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": get: summary: Check team permissions for a repository @@ -12172,7 +11778,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams put: summary: Add or update team repository permissions description: |- @@ -12222,7 +11828,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams delete: summary: Remove a repository from a team description: |- @@ -12247,7 +11853,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/teams": get: summary: List child teams @@ -12285,7 +11891,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/{security_product}/{enablement}": post: summary: Enable or disable a security feature for an organization @@ -12920,7 +12526,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects patch: summary: Update a project description: Updates a project board's information. Returns a `404 Not Found` @@ -13017,7 +12623,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects delete: summary: Delete a project description: Deletes a project board. Returns a `404 Not Found` status if projects @@ -13060,7 +12666,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/projects/{project_id}/collaborators": get: summary: List project collaborators @@ -13392,124 +12998,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: rate-limit - subcategory: - "/repos/{org}/{repo}/actions/required_workflows": - get: - summary: List repository required workflows - description: Lists the required workflows in a repository. Anyone with read - access to the repository can use this endpoint. If the repository is private - you must use an access token with the `repo` scope. GitHub Apps must have - the `actions:read` permission to use this endpoint. For more information, - see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/list-repo-required-workflows - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#list-repository-required-workflows - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/per-page" - - "$ref": "#/components/parameters/page" - responses: - '200': - description: Response - content: - application/json: - schema: - type: object - required: - - total_count - - required_workflows - properties: - total_count: - type: integer - required_workflows: - type: array - items: - "$ref": "#/components/schemas/repo-required-workflow" - examples: - default: - "$ref": "#/components/examples/repo-required-workflow-paginated" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}": - get: - summary: Get a required workflow entity for a repository - description: Gets a specific required workflow present in a repository. Anyone - with read access to the repository can use this endpoint. If the repository - is private you must use an access token with the `repo` scope. GitHub Apps - must have the `actions:read` permission to use this endpoint. For more information, - see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/get-repo-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#get-repository-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/repo-required-workflow-id" - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/repo-required-workflow" - examples: - default: - "$ref": "#/components/examples/repo-required-workflow" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing": - get: - summary: Get required workflow usage - description: |- - Gets the number of billable minutes used by a specific required workflow during the current billing cycle. - - Billable minutes only apply to required workflows running in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)." - - Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. - tags: - - actions - operationId: actions/get-repo-required-workflow-usage - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#get-repository-required-workflow-usage - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/repo-required-workflow-id" - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/workflow-usage" - examples: - default: - "$ref": "#/components/examples/workflow-usage" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: false - category: actions - subcategory: required-workflows + subcategory: rate-limit "/repos/{owner}/{repo}": get: summary: Get a repository @@ -13546,7 +13035,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos patch: summary: Update a repository description: "**Note**: To edit a repository's topics, use the [Replace all @@ -13791,7 +13280,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos delete: summary: Delete a repository description: |- @@ -13837,7 +13326,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/actions/artifacts": get: summary: List artifacts for a repository @@ -14693,61 +14182,6 @@ paths: enabledForGitHubApps: true category: actions subcategory: permissions - "/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs": - get: - summary: List workflow runs for a required workflow - description: |- - List all workflow runs for a required workflow. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). - - Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/list-required-workflow-runs - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#list-required-workflow-runs - parameters: - - "$ref": "#/components/parameters/owner" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/repo-required-workflow-id" - - "$ref": "#/components/parameters/actor" - - "$ref": "#/components/parameters/workflow-run-branch" - - "$ref": "#/components/parameters/event" - - "$ref": "#/components/parameters/workflow-run-status" - - "$ref": "#/components/parameters/per-page" - - "$ref": "#/components/parameters/page" - - "$ref": "#/components/parameters/created" - - "$ref": "#/components/parameters/exclude-pull-requests" - - "$ref": "#/components/parameters/workflow-run-check-suite-id" - - "$ref": "#/components/parameters/workflow-run-head-sha" - responses: - '200': - description: Response - content: - application/json: - schema: - type: object - required: - - total_count - - workflow_runs - properties: - total_count: - type: integer - workflow_runs: - type: array - items: - "$ref": "#/components/schemas/workflow-run" - examples: - default: - "$ref": "#/components/examples/workflow-run-paginated" - headers: - Link: - "$ref": "#/components/headers/link" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: workflow-runs "/repos/{owner}/{repo}/actions/runners": get: summary: List self-hosted runners for a repository @@ -16972,7 +16406,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos delete: summary: Disable automated security fixes description: Disables automated security fixes for a repository. The authenticated @@ -16994,7 +16428,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/branches": get: summary: List branches @@ -17039,6 +16473,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/branches/{branch}": get: summary: Get a branch @@ -17071,6 +16506,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/branches/{branch}/protection": get: summary: Get branch protection @@ -18992,6 +18428,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/check-runs": post: summary: Create a check run @@ -19300,7 +18737,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. tags: - checks operationId: checks/get @@ -19593,7 +19030,7 @@ paths: summary: List check run annotations description: Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull - access to a public repository to get annotations for a check run. OAuth Apps + access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. tags: @@ -19804,7 +19241,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. tags: - checks operationId: checks/get-suite @@ -19836,7 +19273,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. tags: - checks operationId: checks/list-for-suite @@ -19967,7 +19404,7 @@ paths: in: query required: false schema: - "$ref": "#/components/schemas/code-scanning-alert-state" + "$ref": "#/components/schemas/code-scanning-alert-state-query" - name: severity description: If specified, only code scanning alerts with this severity will be returned. @@ -19999,7 +19436,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": get: summary: Get a code scanning alert @@ -20040,7 +19477,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning patch: summary: Update a code scanning alert description: Updates the status of a single code scanning alert. You must use @@ -20100,6 +19537,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances": get: summary: List instances of a code scanning alert @@ -20143,7 +19581,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/analyses": get: summary: List code scanning analyses for a repository @@ -20224,6 +19662,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}": get: summary: Get a code scanning analysis for a repository @@ -20290,6 +19729,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning delete: summary: Delete a code scanning analysis from a repository description: |- @@ -20408,6 +19848,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/codeql/databases": get: summary: List CodeQL databases for a repository @@ -20449,7 +19890,7 @@ paths: enabledForGitHubApps: true previews: [] category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}": get: summary: Get a CodeQL database for a repository @@ -20503,7 +19944,7 @@ paths: enabledForGitHubApps: true previews: [] category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/default-setup": get: summary: Get a code scanning default setup configuration @@ -20540,7 +19981,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning patch: summary: Update a code scanning default setup configuration description: |- @@ -20593,7 +20034,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/sarifs": post: summary: Upload an analysis as SARIF data @@ -20716,6 +20157,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}": get: summary: Get information about a SARIF upload @@ -20762,6 +20204,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/codeowners/errors": get: summary: List CODEOWNERS errors @@ -20805,7 +20248,7 @@ paths: enabledForGitHubApps: true previews: [] category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/codespaces": get: summary: List codespaces in a repository for the authenticated user @@ -20858,7 +20301,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces post: summary: Create a codespace in a repository description: |- @@ -20968,7 +20411,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/codespaces/devcontainers": get: summary: List devcontainer configurations in a repository for the authenticated @@ -21034,7 +20477,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/codespaces/machines": get: summary: List available machine types for a repository @@ -21171,7 +20614,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/codespaces/secrets": get: summary: List repository secrets @@ -21507,6 +20950,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators "/repos/{owner}/{repo}/collaborators/{username}": get: summary: Check if a user is a repository collaborator @@ -21537,6 +20981,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators put: summary: Add a repository collaborator description: |- @@ -21616,6 +21061,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators delete: summary: Remove a repository collaborator description: |- @@ -21661,6 +21107,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators "/repos/{owner}/{repo}/collaborators/{username}/permission": get: summary: Get repository permissions for a user @@ -21698,6 +21145,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators "/repos/{owner}/{repo}/comments": get: summary: List commit comments for a repository @@ -21889,7 +21337,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a commit comment description: Create a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). @@ -21956,7 +21404,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": delete: summary: Delete a commit comment reaction @@ -21982,7 +21430,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/commits": get: summary: List commits @@ -22087,6 +21535,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": get: summary: List branches for HEAD commit @@ -22122,6 +21571,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{commit_sha}/comments": get: summary: List commit comments @@ -22232,9 +21682,10 @@ paths: "/repos/{owner}/{repo}/commits/{commit_sha}/pulls": get: summary: List pull requests associated with a commit - description: Lists the merged pull request that introduced the commit to the - repository. If the commit is not present in the default branch, will only - return open pull requests associated with the commit. + description: |- + Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + + To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. tags: - repos operationId: repos/list-pull-requests-associated-with-commit @@ -22266,6 +21717,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{ref}": get: summary: Get a commit @@ -22340,13 +21792,14 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{ref}/check-runs": get: summary: List check runs for a Git reference description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. tags: - checks operationId: checks/list-for-ref @@ -22411,7 +21864,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. tags: - checks operationId: checks/list-suites-for-ref @@ -22673,6 +22126,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/contents/{path}": get: summary: Get repository content @@ -23058,7 +22512,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/dependabot/alerts": get: summary: List Dependabot alerts for a repository @@ -23723,6 +23177,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments post: summary: Create a deployment description: |- @@ -23888,6 +23343,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments "/repos/{owner}/{repo}/deployments/{deployment_id}": get: summary: Get a deployment @@ -23918,6 +23374,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments delete: summary: Delete a deployment description: |- @@ -23950,6 +23407,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": get: summary: List deployment statuses @@ -23993,7 +23451,7 @@ paths: description: |- Users with `push` access can create deployment statuses for a given deployment. - GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth apps require the `repo_deployment` scope. tags: - repos operationId: repos/create-deployment-status @@ -24194,7 +23652,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/environments": get: summary: List environments @@ -25037,7 +24495,7 @@ paths: post: summary: Create a commit description: |- - Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). **Signature verification object** @@ -25207,6 +24665,7 @@ paths: summary: Get a commit object description: |- Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). + To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)." **Signature verification object** @@ -26879,7 +26338,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/repos/{owner}/{repo}/interaction-limits": get: summary: Get interaction restrictions for a repository @@ -27194,7 +26653,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues post: summary: Create an issue description: |- @@ -27317,7 +26776,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues "/repos/{owner}/{repo}/issues/comments": get: summary: List issue comments for a repository @@ -27525,7 +26984,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for an issue comment description: Create a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). @@ -27592,7 +27051,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": delete: summary: Delete an issue comment reaction @@ -27618,7 +27077,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/events": get: summary: List issue events for a repository @@ -27742,7 +27201,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues patch: summary: Update an issue description: Issue owners and users with push access can edit an issue. @@ -27883,7 +27342,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues "/repos/{owner}/{repo}/issues/{issue_number}/assignees": post: summary: Add assignees to an issue @@ -28516,7 +27975,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues delete: summary: Unlock an issue description: Users with push access can unlock an issue's conversation. @@ -28541,7 +28000,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues "/repos/{owner}/{repo}/issues/{issue_number}/reactions": get: summary: List reactions for an issue @@ -28597,7 +28056,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for an issue description: Create a reaction to an [issue](https://docs.github.com/rest/reference/issues/). @@ -28664,7 +28123,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": delete: summary: Delete an issue reaction @@ -28690,7 +28149,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/{issue_number}/timeline": get: summary: List timeline events for an issue @@ -28765,6 +28224,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys post: summary: Create a deploy key description: You can create a read-only deploy key. @@ -28828,6 +28288,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys "/repos/{owner}/{repo}/keys/{key_id}": get: summary: Get a deploy key @@ -28858,6 +28319,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys delete: summary: Delete a deploy key description: Deploy keys are immutable. If you need to update a key, remove @@ -28879,6 +28341,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys "/repos/{owner}/{repo}/labels": get: summary: List labels for a repository @@ -29132,7 +28595,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/lfs": put: summary: Enable Git LFS for a repository @@ -29213,7 +28676,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: licenses - subcategory: + subcategory: licenses "/repos/{owner}/{repo}/merge-upstream": post: summary: Sync a fork branch with the upstream repository @@ -29263,6 +28726,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/merges": post: summary: Merge a branch @@ -29328,6 +28792,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/milestones": get: summary: List milestones @@ -29748,6 +29213,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages post: summary: Create a GitHub Pages site description: |- @@ -29830,6 +29296,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages put: summary: Update information about a GitHub Pages site description: |- @@ -29931,6 +29398,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages delete: summary: Delete a GitHub Pages site description: |- @@ -29959,6 +29427,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/builds": get: summary: List GitHub Pages builds @@ -29996,6 +29465,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages post: summary: Request a GitHub Pages build description: |- @@ -30025,6 +29495,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/builds/latest": get: summary: Get latest Pages build @@ -30055,6 +29526,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/builds/{build_id}": get: summary: Get GitHub Pages build @@ -30090,6 +29562,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/deployment": post: summary: Create a GitHub Pages deployment @@ -30163,6 +29636,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/health": get: summary: Get a DNS health check for GitHub Pages @@ -30210,6 +29684,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/projects": get: summary: List repository projects @@ -30268,7 +29743,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects post: summary: Create a repository project description: Creates a repository project board. Returns a `410 Gone` status @@ -30328,7 +29803,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/repos/{owner}/{repo}/pulls": get: summary: List pull requests @@ -30421,7 +29896,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls post: summary: Create a pull request description: |- @@ -30524,7 +29999,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/comments": get: summary: List review comments in a repository @@ -30731,7 +30206,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a pull request review comment description: Create a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#comments). @@ -30798,7 +30273,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": delete: summary: Delete a pull request comment reaction @@ -30824,7 +30299,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/pulls/{pull_number}": get: summary: Get a pull request @@ -30877,7 +30352,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls patch: summary: Update a pull request description: |- @@ -30948,7 +30423,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/codespaces": post: summary: Create a codespace from a pull request @@ -31055,7 +30530,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/pulls/{pull_number}/comments": get: summary: List review comments on a pull request @@ -31340,7 +30815,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/files": get: summary: List pull requests files @@ -31383,7 +30858,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/merge": get: summary: Check if a pull request has been merged @@ -31409,7 +30884,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls put: summary: Merge a pull request description: |- @@ -31507,7 +30982,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": get: summary: Get all requested reviewers for a pull request @@ -32165,7 +31640,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/readme": get: summary: Get a repository README @@ -32269,7 +31744,7 @@ paths: operationId: repos/list-releases externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#list-releases + url: https://docs.github.com/rest/releases/releases#list-releases parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32295,7 +31770,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases post: summary: Create a release @@ -32409,7 +31884,7 @@ paths: triggersNotification: true githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/assets/{asset_id}": get: @@ -32423,7 +31898,7 @@ paths: operationId: repos/get-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-a-release-asset + url: https://docs.github.com/rest/releases/assets#get-a-release-asset parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32445,8 +31920,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets patch: summary: Update a release asset description: Users with push access to the repository can edit a release asset. @@ -32455,7 +31930,7 @@ paths: operationId: repos/update-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#update-a-release-asset + url: https://docs.github.com/rest/releases/assets#update-a-release-asset parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32496,8 +31971,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets delete: summary: Delete a release asset description: '' @@ -32506,7 +31981,7 @@ paths: operationId: repos/delete-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#delete-a-release-asset + url: https://docs.github.com/rest/releases/assets#delete-a-release-asset parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32517,8 +31992,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets "/repos/{owner}/{repo}/releases/generate-notes": post: summary: Generate release notes content for a release @@ -32532,7 +32007,7 @@ paths: operationId: repos/generate-release-notes externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#generate-release-notes + url: https://docs.github.com/rest/releases/releases#generate-release-notes parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32589,7 +32064,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/latest": get: @@ -32603,7 +32078,7 @@ paths: operationId: repos/get-latest-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-the-latest-release + url: https://docs.github.com/rest/releases/releases#get-the-latest-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32620,7 +32095,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/tags/{tag}": get: @@ -32631,7 +32106,7 @@ paths: operationId: repos/get-release-by-tag externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name + url: https://docs.github.com/rest/releases/releases#get-a-release-by-tag-name parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32657,7 +32132,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/{release_id}": get: @@ -32669,7 +32144,7 @@ paths: operationId: repos/get-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-a-release + url: https://docs.github.com/rest/releases/releases#get-a-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32690,7 +32165,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases patch: summary: Update a release @@ -32700,7 +32175,7 @@ paths: operationId: repos/update-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#update-a-release + url: https://docs.github.com/rest/releases/releases#update-a-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32782,7 +32257,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases delete: summary: Delete a release @@ -32792,7 +32267,7 @@ paths: operationId: repos/delete-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#delete-a-release + url: https://docs.github.com/rest/releases/releases#delete-a-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32803,7 +32278,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/{release_id}/assets": get: @@ -32814,7 +32289,7 @@ paths: operationId: repos/list-release-assets externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#list-release-assets + url: https://docs.github.com/rest/releases/assets#list-release-assets parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32839,8 +32314,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets post: summary: Upload a release asset description: "This endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) @@ -32873,7 +32348,7 @@ paths: operationId: repos/upload-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#upload-a-release-asset + url: https://docs.github.com/rest/releases/assets#upload-a-release-asset servers: - url: https://uploads.github.com description: The URL origin (protocol + host name + port) is included in `upload_url` @@ -32918,8 +32393,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets "/repos/{owner}/{repo}/releases/{release_id}/reactions": get: summary: List reactions for a release @@ -32971,7 +32446,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a release description: 'Create a reaction to a [release](https://docs.github.com/rest/reference/repos#releases). @@ -33036,7 +32511,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}": delete: summary: Delete a release reaction @@ -33062,7 +32537,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/rules/branches/{branch}": get: summary: Get rules for a branch @@ -33179,17 +32654,6 @@ paths: - tag enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" - bypass_mode: - type: string - description: The permission level required to bypass this ruleset. - "repository" allows those with bypass permission at the repository - level to bypass. "organization" allows those with bypass permission - at the organization level to bypass. "none" prevents anyone from - bypassing. - enum: - - none - - repository - - organization bypass_actors: type: array description: The actors that can bypass the rules in this ruleset @@ -33211,10 +32675,10 @@ paths: name: super cool ruleset target: branch enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -33329,17 +32793,6 @@ paths: - tag enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" - bypass_mode: - type: string - description: The permission level required to bypass this ruleset. - "repository" allows those with bypass permission at the repository - level to bypass. "organization" allows those with bypass permission - at the organization level to bypass. "none" prevents anyone from - bypassing. - enum: - - none - - repository - - organization bypass_actors: type: array description: The actors that can bypass the rules in this ruleset @@ -33358,10 +32811,10 @@ paths: name: super cool ruleset target: branch enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -33466,7 +32919,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}": get: summary: Get a secret scanning alert @@ -33507,7 +32960,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning patch: summary: Update a secret scanning alert description: |- @@ -33570,6 +33023,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: secret-scanning + subcategory: secret-scanning "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations": get: summary: List locations for a secret scanning alert @@ -33616,7 +33070,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning "/repos/{owner}/{repo}/security-advisories": get: summary: List repository security advisories @@ -34477,7 +33931,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/tags/protection": get: summary: List tag protection states for a repository @@ -34674,7 +34128,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/topics": get: summary: Get all repository topics @@ -34706,7 +34160,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos put: summary: Replace all repository topics description: '' @@ -34762,7 +34216,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/traffic/clones": get: summary: Get repository clones @@ -34954,7 +34408,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/vulnerability-alerts": get: summary: Check if vulnerability alerts are enabled for a repository @@ -34979,7 +34433,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos put: summary: Enable vulnerability alerts description: Enables dependency alerts and the dependency graph for a repository. @@ -35001,7 +34455,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos delete: summary: Disable vulnerability alerts description: |- @@ -35024,7 +34478,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/zipball/{ref}": get: summary: Download a repository archive (zip) @@ -35149,7 +34603,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos "/repositories": get: summary: List public repositories @@ -35192,7 +34646,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repositories/{repository_id}/environments/{environment_name}/secrets": get: summary: List environment secrets @@ -35754,7 +35208,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/commits": get: summary: Search commits @@ -35827,7 +35281,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/issues": get: summary: Search issues and pull requests @@ -35843,7 +35297,7 @@ paths: This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. - **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + **Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." tags: - search operationId: search/issues-and-pull-requests @@ -35922,7 +35376,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/labels": get: summary: Search labels @@ -36005,7 +35459,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/repositories": get: summary: Search repositories @@ -36086,7 +35540,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/topics": get: summary: Search topics @@ -36147,7 +35601,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/users": get: summary: Search users @@ -36228,7 +35682,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/teams/{team_id}": get: summary: Get a team (Legacy) @@ -36262,7 +35716,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true patch: summary: Update a team (Legacy) @@ -36369,7 +35823,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true delete: summary: Delete a team (Legacy) @@ -36400,7 +35854,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/discussions": get: @@ -36878,7 +36332,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true post: summary: Create reaction for a team discussion comment (Legacy) @@ -36938,7 +36392,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true "/teams/{team_id}/discussions/{discussion_number}/reactions": get: @@ -36995,7 +36449,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true post: summary: Create reaction for a team discussion (Legacy) @@ -37054,7 +36508,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true "/teams/{team_id}/invitations": get: @@ -37438,7 +36892,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/projects/{project_id}": get: @@ -37474,7 +36928,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true put: summary: Add or update team project permissions (Legacy) @@ -37544,7 +36998,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true delete: summary: Remove a project from a team (Legacy) @@ -37574,7 +37028,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/repos": get: @@ -37616,7 +37070,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/repos/{owner}/{repo}": get: @@ -37657,7 +37111,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true put: summary: Add or update team repository permissions (Legacy) @@ -37712,7 +37166,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true delete: summary: Remove a repository from a team (Legacy) @@ -37739,7 +37193,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/teams": get: @@ -37785,7 +37239,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/user": get: @@ -37825,7 +37279,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: users - subcategory: + subcategory: users patch: summary: Update the authenticated user description: "**Note:** If your email is set to private and you send an `email` @@ -37914,7 +37368,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: users - subcategory: + subcategory: users "/user/blocks": get: summary: List users blocked by the authenticated user @@ -38097,7 +37551,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces post: summary: Create a codespace for the authenticated user description: |- @@ -38255,7 +37709,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/secrets": get: summary: List secrets for the authenticated user @@ -38757,7 +38211,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces patch: summary: Update a codespace for the authenticated user description: |- @@ -38820,7 +38274,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces delete: summary: Delete a codespace for the authenticated user description: |- @@ -38854,7 +38308,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/exports": post: summary: Export a codespace for the authenticated user @@ -38898,7 +38352,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/exports/{export_id}": get: summary: Get details about a codespace export @@ -38933,7 +38387,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/machines": get: summary: List machine types for a codespace @@ -39047,7 +38501,7 @@ paths: x-github: githubCloudOnly: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/start": post: summary: Start a codespace for the authenticated user @@ -39099,7 +38553,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/stop": post: summary: Stop a codespace for the authenticated user @@ -39139,7 +38593,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/docker/conflicts": get: summary: Get list of conflicting packages during Docker migration for authenticated-user @@ -39168,7 +38622,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/email/visibility": patch: summary: Set primary email visibility for the authenticated user @@ -39761,7 +39215,7 @@ paths: description: |- Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. - You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. @@ -39818,7 +39272,7 @@ paths: The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. The access the user has to each repository is included in the hash under the `permissions` key. tags: @@ -40105,7 +39559,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: issues - subcategory: + subcategory: issues "/user/keys": get: summary: List public SSH keys for the authenticated user @@ -40278,10 +39732,10 @@ paths: "/user/marketplace_purchases": get: summary: List subscriptions for the authenticated user - description: Lists the active subscriptions for the authenticated user. You - must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), + description: Lists the active subscriptions for the authenticated user. GitHub + Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. - . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). tags: - apps operationId: apps/list-subscriptions-for-authenticated-user @@ -40320,10 +39774,10 @@ paths: "/user/marketplace_purchases/stubbed": get: summary: List subscriptions for the authenticated user (stubbed) - description: Lists the active subscriptions for the authenticated user. You - must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), + description: Lists the active subscriptions for the authenticated user. GitHub + Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. - . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). tags: - apps operationId: apps/list-subscriptions-for-authenticated-user-stubbed @@ -40893,7 +40347,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: orgs - subcategory: + subcategory: orgs "/user/packages": get: summary: List packages for the authenticated user's namespace @@ -40946,7 +40400,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}": get: summary: Get a package for the authenticated user @@ -40977,7 +40431,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package for the authenticated user description: |- @@ -41007,7 +40461,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/restore": post: summary: Restore a package for the authenticated user @@ -41047,7 +40501,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/versions": get: summary: List package versions for a package owned by the authenticated user @@ -41098,7 +40552,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/versions/{package_version_id}": get: summary: Get a package version for the authenticated user @@ -41130,7 +40584,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package version for the authenticated user description: |- @@ -41161,7 +40615,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore": post: summary: Restore a package version for the authenticated user @@ -41196,7 +40650,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/projects": post: summary: Create a user project @@ -41260,7 +40714,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/user/public_emails": get: summary: List public email addresses for the authenticated user @@ -41404,7 +40858,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos post: summary: Create a repository for the authenticated user description: |- @@ -41619,7 +41073,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos "/user/repository_invitations": get: summary: List repository invitations for the authenticated user @@ -42285,7 +41739,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: teams - subcategory: + subcategory: teams "/users": get: summary: List users @@ -42325,7 +41779,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: users - subcategory: + subcategory: users "/users/{username}": get: summary: Get a user @@ -42365,7 +41819,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: users - subcategory: + subcategory: users "/users/{username}/docker/conflicts": get: summary: Get list of conflicting packages during Docker migration for user @@ -42400,7 +41854,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/events": get: summary: List events for the authenticated user @@ -42628,7 +42082,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/users/{username}/gpg_keys": get: summary: List GPG keys for a user @@ -42722,7 +42176,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: users - subcategory: + subcategory: users "/users/{username}/installation": get: summary: Get a user installation for the authenticated app @@ -42752,7 +42206,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/users/{username}/keys": get: summary: List public keys for a user @@ -42824,7 +42278,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs "/users/{username}/packages": get: summary: List packages for a user @@ -42882,7 +42336,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}": get: summary: Get a package for a user @@ -42914,7 +42368,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package for a user description: |- @@ -42946,7 +42400,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/restore": post: summary: Restore a package for a user @@ -42989,7 +42443,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/versions": get: summary: List package versions for a package owned by a user @@ -43029,7 +42483,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}": get: summary: Get a package version for a user @@ -43062,7 +42516,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete package version for a user description: |- @@ -43095,7 +42549,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore": post: summary: Restore package version for a user @@ -43133,7 +42587,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/projects": get: summary: List user projects @@ -43180,7 +42634,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: projects - subcategory: + subcategory: projects "/users/{username}/received_events": get: summary: List events received by the authenticated user @@ -43312,7 +42766,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/users/{username}/settings/billing/actions": get: summary: Get GitHub Actions billing for a user @@ -43344,7 +42798,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/users/{username}/settings/billing/packages": get: summary: Get GitHub Packages billing for a user @@ -43376,7 +42830,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/users/{username}/settings/billing/shared-storage": get: summary: Get shared storage billing for a user @@ -43408,7 +42862,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/users/{username}/social_accounts": get: summary: List social accounts for a user @@ -43590,7 +43044,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta - subcategory: + subcategory: meta "/zen": get: summary: Get the Zen of GitHub @@ -43616,6 +43070,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta + subcategory: meta webhooks: branch-protection-rule-created: post: @@ -47031,7 +46486,7 @@ webhooks: A GitHub App receives this webhook by default and cannot unsubscribe from this event. - Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about user-to-server requests, which require GitHub App authorization, see "[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)." + Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about requests with a user access token, which require GitHub App authorization, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)." description: Someone revoked their authorization of a GitHub App. operationId: github-app-authorization/revoked externalDocs: @@ -59732,7 +59187,7 @@ components: app-permissions: title: App Permissions type: object - description: The permissions granted to the user-to-server access token. + description: The permissions granted to the user access token. properties: actions: type: string @@ -63577,6 +63032,17 @@ components: enum: - enabled - disabled + dependabot_security_updates: + description: Enable or disable Dependabot security updates for the repository. + type: object + properties: + status: + description: The enablement status of Dependabot security updates for + the repository. + type: string + enum: + - enabled + - disabled secret_scanning: type: object properties: @@ -64265,11 +63731,6 @@ components: format: uri examples: - https://github.com/octocat - created_at: - type: string - format: date-time - examples: - - '2008-01-14T04:33:35Z' type: type: string examples: @@ -64378,9 +63839,6 @@ components: type: boolean examples: - false - updated_at: - type: string - format: date-time advanced_security_enabled_for_new_repositories: type: boolean description: |- @@ -64448,6 +63906,19 @@ components: from pushing a secret. examples: - https://github.com/test-org/test-repo/blob/main/README.md + created_at: + type: string + format: date-time + examples: + - '2008-01-14T04:33:35Z' + updated_at: + type: string + format: date-time + archived_at: + type: + - string + - 'null' + format: date-time required: - login - url @@ -64471,6 +63942,7 @@ components: - type - created_at - updated_at + - archived_at actions-cache-usage-org-enterprise: type: object properties: @@ -64613,56 +64085,6 @@ components: "$ref": "#/components/schemas/actions-default-workflow-permissions" can_approve_pull_request_reviews: "$ref": "#/components/schemas/actions-can-approve-pull-request-reviews" - required-workflow: - type: object - properties: - id: - description: Unique identifier for a required workflow - type: number - name: - description: Name present in the workflow file - type: string - path: - description: Path of the workflow file - type: string - scope: - description: Scope of the required workflow - enum: - - all - - selected - type: string - ref: - description: Ref at which the workflow file will be selected - type: string - state: - description: State of the required workflow - enum: - - active - - deleted - type: string - selected_repositories_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/org/actions/required_workflows/1/repositories - created_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - repository: - "$ref": "#/components/schemas/minimal-repository" - required: - - id - - name - - path - - scope - - ref - - state - - created_at - - updated_at - - repository runner-label: title: Self hosted runner label description: A label for a self hosted runner @@ -64915,7 +64337,7 @@ components: - 'null' description: The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data. - code-scanning-alert-state: + code-scanning-alert-state-query: type: string description: State of a code scanning alert. enum: @@ -64939,6 +64361,13 @@ components: description: The REST API URL for fetching the list of instances for an alert. format: uri readOnly: true + code-scanning-alert-state: + type: string + description: State of a code scanning alert. + enum: + - open + - dismissed + - fixed code-scanning-alert-dismissed-reason: type: - string @@ -66489,6 +65918,10 @@ components: title: Repository Ruleset Bypass Actor type: object description: An actor that can bypass rules in a ruleset + required: + - actor_id + - actor_type + - bypass_mode properties: actor_id: type: integer @@ -66496,9 +65929,18 @@ components: actor_type: type: string enum: + - RepositoryRole - Team - Integration + - OrganizationAdmin description: The type of actor that can bypass a ruleset + bypass_mode: + type: string + description: When the specified actor can bypass the ruleset. `pull_request` + means that an actor can only bypass rules on pull requests. + enum: + - always + - pull_request repository-ruleset-conditions: title: Repository ruleset conditions for ref names type: object @@ -66544,13 +65986,35 @@ components: protected: type: boolean description: Whether renaming of target repositories is prevented. + required: + - repository_name + repository-ruleset-conditions-repository-id-target: + title: Repository ruleset conditions for repository IDs + type: object + description: Parameters for a repository ID condition + properties: + repository_id: + type: object + properties: + repository_ids: + type: array + description: The repository IDs that the ruleset applies to. One of + these IDs must match for the condition to pass. + items: + type: integer + required: + - repository_id org-ruleset-conditions: title: Organization ruleset conditions type: object description: Conditions for a organization ruleset - allOf: - - "$ref": "#/components/schemas/repository-ruleset-conditions" - - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-name-target" + oneOf: + - allOf: + - "$ref": "#/components/schemas/repository-ruleset-conditions" + - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-name-target" + - allOf: + - "$ref": "#/components/schemas/repository-ruleset-conditions" + - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-id-target" repository-rule-creation: title: creation description: Only allow users with bypass permission to create matching refs. @@ -66562,6 +66026,20 @@ components: type: string enum: - creation + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-update: title: update description: Only allow users with bypass permission to update matching refs. @@ -66573,6 +66051,20 @@ components: type: string enum: - update + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66592,6 +66084,20 @@ components: type: string enum: - deletion + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-required-linear-history: title: required_linear_history description: Prevent merge commits from being pushed to matching branches. @@ -66603,6 +66109,20 @@ components: type: string enum: - required_linear_history + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-required-deployments: title: required_deployments description: Choose which environments must be successfully deployed to before @@ -66615,6 +66135,20 @@ components: type: string enum: - required_deployments + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66637,6 +66171,20 @@ components: type: string enum: - required_signatures + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-pull-request: title: pull_request description: Require all commits be made to a non-target branch and submitted @@ -66649,6 +66197,20 @@ components: type: string enum: - pull_request + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66708,6 +66270,20 @@ components: type: string enum: - required_status_checks + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66735,6 +66311,20 @@ components: type: string enum: - non_fast_forward + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-commit-message-pattern: title: commit_message_pattern description: Parameters to be used for the commit_message_pattern rule @@ -66746,6 +66336,20 @@ components: type: string enum: - commit_message_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66780,6 +66384,20 @@ components: type: string enum: - commit_author_email_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66814,6 +66432,20 @@ components: type: string enum: - committer_email_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66848,6 +66480,20 @@ components: type: string enum: - branch_name_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66882,6 +66528,20 @@ components: type: string enum: - tag_name_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66957,21 +66617,16 @@ components: description: The name of the source enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" - bypass_mode: - type: string - description: The permission level required to bypass this ruleset. "repository" - allows those with bypass permission at the repository level to bypass. - "organization" allows those with bypass permission at the organization - level to bypass. "none" prevents anyone from bypassing. - enum: - - none - - repository - - organization bypass_actors: type: array description: The actors that can bypass the rules in this ruleset items: "$ref": "#/components/schemas/repository-ruleset-bypass-actor" + current_user_can_bypass: + type: boolean + description: |- + Whether the user making this API request is able to bypass the ruleset. This field is only returned when + querying the repository-level endpoint. node_id: type: string _links: @@ -67336,6 +66991,11 @@ components: updated_at: type: string format: date-time + archived_at: + type: + - string + - 'null' + format: date-time required: - login - url @@ -67359,6 +67019,7 @@ components: - type - created_at - updated_at + - archived_at team-full: title: Full Team description: Groups of organization members that gives permissions on specified @@ -68297,6 +67958,12 @@ components: - watchers_count - created_at - updated_at + code-scanning-query-suite: + description: The CodeQL query suite to use. + type: string + enum: + - default + - extended project-card: title: Project Card description: Project cards represent a scope of work. @@ -68490,95 +68157,6 @@ components: required: - rate - resources - repo-required-workflow: - title: Required workflow - description: A GitHub Actions required workflow - type: object - properties: - id: - type: integer - examples: - - 5 - node_id: - type: string - examples: - - MDg6V29ya2Zsb3cxMg== - name: - type: string - examples: - - Required CI - path: - type: string - examples: - - ".github/workflows/required_ci.yaml" - state: - type: string - enum: - - active - - deleted - examples: - - active - source_repository: - "$ref": "#/components/schemas/minimal-repository" - created_at: - type: string - format: date-time - examples: - - '2019-12-06T14:20:20.000Z' - updated_at: - type: string - format: date-time - examples: - - '2019-12-06T14:20:20.000Z' - url: - type: string - examples: - - https://api.github.com/repos/sample-org/sample-repo/actions/required_workflows/5 - html_url: - type: string - examples: - - https://github.com/sample-org/source-repo/blob/main/.github/workflows/required_ci.yaml - badge_url: - type: string - examples: - - https://github.com/sample-org/sample-repo/workflows/required/sample-org/source-repo/.github/workflows/required_ci.yaml/badge.svg - required: - - id - - node_id - - name - - path - - state - - source_repository - - url - - html_url - - badge_url - - created_at - - updated_at - workflow-usage: - title: Workflow Usage - description: Workflow Usage - type: object - properties: - billable: - type: object - properties: - UBUNTU: - type: object - properties: - total_ms: - type: integer - MACOS: - type: object - properties: - total_ms: - type: integer - WINDOWS: - type: object - properties: - total_ms: - type: integer - required: - - billable code-of-conduct-simple: title: Code Of Conduct Simple description: Code of Conduct Simple @@ -69864,6 +69442,9 @@ components: examples: - https://github.com/github/hello-world/suites/4 pull_requests: + description: Pull requests that are open with a `head_sha` or `head_branch` + that matches the workflow run. The returned pull requests do not necessarily + indicate pull requests that triggered the run. type: - array - 'null' @@ -70404,6 +69985,31 @@ components: - badge_url - created_at - updated_at + workflow-usage: + title: Workflow Usage + description: Workflow Usage + type: object + properties: + billable: + type: object + properties: + UBUNTU: + type: object + properties: + total_ms: + type: integer + MACOS: + type: object + properties: + total_ms: + type: integer + WINDOWS: + type: object + properties: + total_ms: + type: integer + required: + - billable autolink: title: Autolink reference description: An autolink reference. @@ -71593,6 +71199,9 @@ components: - type: 'null' - "$ref": "#/components/schemas/integration" pull_requests: + description: Pull requests that are open with a `head_sha` or `head_branch` + that matches the check. The returned pull requests do not necessarily + indicate pull requests that triggered the check. type: array items: "$ref": "#/components/schemas/pull-request-minimal" @@ -72138,6 +71747,7 @@ components: - python - ruby - typescript + - swift query_suite: description: CodeQL query suite to be used. type: string @@ -72164,11 +71774,7 @@ components: - configured - not-configured query_suite: - description: CodeQL query suite to be used. - type: string - enum: - - default - - extended + "$ref": "#/components/schemas/code-scanning-query-suite" languages: description: 'CodeQL languages to be analyzed. Supported values are: `c-cpp`, `csharp`, `go`, `java-kotlin`, `javascript-typescript`, `python`, and @@ -72184,6 +71790,7 @@ components: - javascript-typescript - python - ruby + - swift required: - state code-scanning-default-setup-update-response: @@ -79551,6 +79158,7 @@ components: - actions - pub - other + - swift repository-advisory-vulnerability: description: A product affected by the vulnerability detailed in a repository security advisory. @@ -83865,10 +83473,6 @@ components: type: string enum: - completed - actions_meta: - type: - - object - - 'null' check_suite: description: The [check_suite](https://docs.github.com/rest/reference/checks#suites). type: object @@ -84482,10 +84086,6 @@ components: type: string enum: - requested - actions_meta: - type: - - object - - 'null' check_suite: description: The [check_suite](https://docs.github.com/rest/reference/checks#suites). type: object @@ -85098,20 +84698,6 @@ components: type: string enum: - rerequested - actions_meta: - type: - - object - - 'null' - properties: - rerun_info: - type: object - properties: - plan_id: - type: string - job_ids: - type: array - items: - type: string check_suite: description: The [check_suite](https://docs.github.com/rest/reference/checks#suites). type: object @@ -93806,6 +93392,10 @@ components: account: type: object properties: + archived_at: + type: + - string + - 'null' avatar_url: type: string created_at: @@ -206172,6 +205762,7 @@ components: members_can_fork_private_repositories: false web_commit_signoff_required: false updated_at: '2014-03-03T18:58:10Z' + archived_at: dependency_graph_enabled_for_new_repositories: false dependabot_alerts_enabled_for_new_repositories: false dependabot_security_updates_enabled_for_new_repositories: false @@ -206337,239 +205928,6 @@ components: value: default_workflow_permissions: read can_approve_pull_request_reviews: true - required-workflows-paginated: - value: - total_count: 2 - required_workflows: - - id: 30433642 - name: Required CI - path: ".github/workflows/ci.yml" - scope: selected - ref: refs/head/main - state: active - selected_repositories_url: https://api.github.com/organizations/org/actions/required_workflows/1/repositories - created_at: '2020-01-22T19:33:08Z' - updated_at: '2020-01-22T19:33:08Z' - repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octocat/Hello-World/hooks - - id: 30433643 - name: Required Linter - path: ".github/workflows/lint.yml" - scope: all - ref: refs/head/main - state: active - created_at: '2020-01-22T19:33:08Z' - updated_at: '2020-01-22T19:33:08Z' - repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octocat/Hello-World/hooks - required-workflow: - value: - id: 30433642 - name: Required CI - path: ".github/workflows/ci.yml" - scope: selected - ref: refs/head/main - state: active - selected_repositories_url: https://api.github.com/orgs/octo-org/actions/required_workflows/1/repositories - created_at: '2020-01-22T19:33:08Z' - updated_at: '2020-01-22T19:33:08Z' - repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octocat/Hello-World/hooks runner-paginated: value: total_count: 2 @@ -208939,7 +208297,6 @@ components: source_type: Organization source: my-org enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQB _links: self: @@ -208953,7 +208310,6 @@ components: source_type: Organization source: my-org enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQQ _links: self: @@ -208970,10 +208326,10 @@ components: source_type: Organization source: my-org enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -209918,175 +209274,6 @@ components: remaining: 4999 reset: 1372700873 used: 1 - repo-required-workflow-paginated: - value: - total_count: 1 - required_workflows: - - id: 161335 - node_id: MDg6V29ya2Zsb3cxNjEzMzU= - name: RequiredCI - path: ".github/workflows/required_ci.yaml" - state: active - created_at: '2020-01-08T23:48:37.000-08:00' - updated_at: '2020-01-08T23:50:21.000-08:00' - url: https://api.github.com/repos/octo-org/octo-repo/actions/required_workflows/161335 - html_url: https://github.com/octo-org/octo-repo/blob/master/octo-org/hello-world/.github/workflows/required_ci.yaml - badge_url: https://github.com/octo-org/octo-repo/workflows/required/octo-org/hello-world/.github/workflows/required_ci.yaml/badge.svg - source_repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octo-org/Hello-World - owner: - login: octo-org - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octo-org_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octo-org - html_url: https://github.com/octo-org - followers_url: https://api.github.com/users/octo-org/followers - following_url: https://api.github.com/users/octo-org/following{/other_user} - gists_url: https://api.github.com/users/octo-org/gists{/gist_id} - starred_url: https://api.github.com/users/octo-org/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octo-org/subscriptions - organizations_url: https://api.github.com/users/octo-org/orgs - repos_url: https://api.github.com/users/octo-org/repos - events_url: https://api.github.com/users/octo-org/events{/privacy} - received_events_url: https://api.github.com/users/octo-org/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octo-org/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octo-org/Hello-World - archive_url: https://api.github.com/repos/octo-org/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octo-org/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octo-org/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octo-org/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octo-org/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octo-org/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octo-org/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octo-org/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octo-org/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octo-org/Hello-World/contributors - deployments_url: https://api.github.com/repos/octo-org/Hello-World/deployments - downloads_url: https://api.github.com/repos/octo-org/Hello-World/downloads - events_url: https://api.github.com/repos/octo-org/Hello-World/events - forks_url: https://api.github.com/repos/octo-org/Hello-World/forks - git_commits_url: https://api.github.com/repos/octo-org/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octo-org/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octo-org/Hello-World/git/tags{/sha} - git_url: git:github.com/octo-org/Hello-World.git - issue_comment_url: https://api.github.com/repos/octo-org/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octo-org/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octo-org/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octo-org/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octo-org/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octo-org/Hello-World/languages - merges_url: https://api.github.com/repos/octo-org/Hello-World/merges - milestones_url: https://api.github.com/repos/octo-org/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octo-org/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octo-org/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octo-org/Hello-World/releases{/id} - ssh_url: git@github.com:octo-org/Hello-World.git - stargazers_url: https://api.github.com/repos/octo-org/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octo-org/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octo-org/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octo-org/Hello-World/subscription - tags_url: https://api.github.com/repos/octo-org/Hello-World/tags - teams_url: https://api.github.com/repos/octo-org/Hello-World/teams - trees_url: https://api.github.com/repos/octo-org/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octo-org/Hello-World/hooks - repo-required-workflow: - value: - id: 161335 - node_id: MDg6V29ya2Zsb3cxNjEzMzU= - name: RequiredCI - path: ".github/workflows/required_ci.yaml" - state: active - created_at: '2020-01-08T23:48:37.000-08:00' - updated_at: '2020-01-08T23:50:21.000-08:00' - url: https://api.github.com/repos/octo-org/octo-repo/actions/required_workflows/161335 - html_url: https://github.com/octo-org/octo-repo/blob/master/octo-org/hello-world/.github/workflows/required_ci.yaml - badge_url: https://github.com/octo-org/octo-repo/workflows/required/octo-org/hello-world/.github/workflows/required_ci.yaml/badge.svg - source_repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octo-org/Hello-World - owner: - login: octo-org - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octo-org_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octo-org - html_url: https://github.com/octo-org - followers_url: https://api.github.com/users/octo-org/followers - following_url: https://api.github.com/users/octo-org/following{/other_user} - gists_url: https://api.github.com/users/octo-org/gists{/gist_id} - starred_url: https://api.github.com/users/octo-org/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octo-org/subscriptions - organizations_url: https://api.github.com/users/octo-org/orgs - repos_url: https://api.github.com/users/octo-org/repos - events_url: https://api.github.com/users/octo-org/events{/privacy} - received_events_url: https://api.github.com/users/octo-org/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octo-org/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octo-org/Hello-World - archive_url: https://api.github.com/repos/octo-org/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octo-org/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octo-org/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octo-org/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octo-org/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octo-org/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octo-org/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octo-org/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octo-org/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octo-org/Hello-World/contributors - deployments_url: https://api.github.com/repos/octo-org/Hello-World/deployments - downloads_url: https://api.github.com/repos/octo-org/Hello-World/downloads - events_url: https://api.github.com/repos/octo-org/Hello-World/events - forks_url: https://api.github.com/repos/octo-org/Hello-World/forks - git_commits_url: https://api.github.com/repos/octo-org/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octo-org/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octo-org/Hello-World/git/tags{/sha} - git_url: git:github.com/octo-org/Hello-World.git - issue_comment_url: https://api.github.com/repos/octo-org/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octo-org/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octo-org/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octo-org/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octo-org/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octo-org/Hello-World/languages - merges_url: https://api.github.com/repos/octo-org/Hello-World/merges - milestones_url: https://api.github.com/repos/octo-org/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octo-org/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octo-org/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octo-org/Hello-World/releases{/id} - ssh_url: git@github.com:octo-org/Hello-World.git - stargazers_url: https://api.github.com/repos/octo-org/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octo-org/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octo-org/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octo-org/Hello-World/subscription - tags_url: https://api.github.com/repos/octo-org/Hello-World/tags - teams_url: https://api.github.com/repos/octo-org/Hello-World/teams - trees_url: https://api.github.com/repos/octo-org/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octo-org/Hello-World/hooks - workflow-usage: - value: - billable: - UBUNTU: - total_ms: 180000 - MACOS: - total_ms: 240000 - WINDOWS: - total_ms: 300000 full-repository-default-response: summary: Default response value: @@ -211978,6 +211165,15 @@ components: url: https://api.github.com/repos/octo-org/octo-repo/actions/workflows/161335 html_url: https://github.com/octo-org/octo-repo/blob/master/.github/workflows/161335 badge_url: https://github.com/octo-org/octo-repo/workflows/CI/badge.svg + workflow-usage: + value: + billable: + UBUNTU: + total_ms: 180000 + MACOS: + total_ms: 240000 + WINDOWS: + total_ms: 300000 autolink-items: value: - id: 1 @@ -220894,10 +220090,16 @@ components: repository-rule-items: value: - type: commit_message_pattern + ruleset_source_type: Repository + ruleset_source: monalisa/my-repo + ruleset_id: 42 parameters: operator: starts_with pattern: issue - type: commit_author_email_pattern + ruleset_source_type: Organization + ruleset_source: my-org + ruleset_id: 73 parameters: operator: contains pattern: github @@ -220908,7 +220110,6 @@ components: source_type: Repository source: monalisa/my-repo enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQB _links: self: @@ -220922,7 +220123,6 @@ components: source_type: Repository source: monalisa/my-repo enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQQ _links: self: @@ -220939,10 +220139,10 @@ components: source_type: Repository source: monalisa/my-repo enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -227875,13 +227075,6 @@ components: required: true schema: type: integer - required-workflow-id: - name: required_workflow_id - description: The unique identifier of the required workflow. - in: path - required: true - schema: - type: integer runner-id: name: runner_id description: Unique identifier of the self-hosted runner. @@ -228188,14 +227381,6 @@ components: required: true schema: type: integer - repo-required-workflow-id: - name: required_workflow_id_for_repo - in: path - description: The ID of the required workflow that has run at least once in a - repository. - required: true - schema: - type: integer artifact-id: name: artifact_id description: The unique identifier of the artifact. diff --git a/packages/openapi-typescript/examples/github-api.ts b/packages/openapi-typescript/examples/github-api.ts index b28f4955d..15a7f3ff9 100644 --- a/packages/openapi-typescript/examples/github-api.ts +++ b/packages/openapi-typescript/examples/github-api.ts @@ -161,7 +161,7 @@ export interface paths { "/applications/{client_id}/token/scoped": { /** * Create a scoped access token - * @description Use a non-scoped user-to-server access token to create a repository scoped and/or permission scoped user-to-server access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. + * @description Use a non-scoped user access token to create a repository scoped and/or permission scoped user access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. */ post: operations["apps/scope-token"]; }; @@ -391,7 +391,7 @@ export interface paths { * Get a subscription plan for an account * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/get-subscription-plan-for-account"]; }; @@ -400,7 +400,7 @@ export interface paths { * List plans * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-plans"]; }; @@ -409,7 +409,7 @@ export interface paths { * List accounts for a plan * @description Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-accounts-for-plan"]; }; @@ -418,7 +418,7 @@ export interface paths { * Get a subscription plan for an account (stubbed) * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/get-subscription-plan-for-account-stubbed"]; }; @@ -427,7 +427,7 @@ export interface paths { * List plans (stubbed) * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-plans-stubbed"]; }; @@ -436,7 +436,7 @@ export interface paths { * List accounts for a plan (stubbed) * @description Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ get: operations["apps/list-accounts-for-plan-stubbed"]; }; @@ -665,95 +665,6 @@ export interface paths { */ put: operations["actions/set-github-actions-default-workflow-permissions-organization"]; }; - "/orgs/{org}/actions/required_workflows": { - /** - * List required workflows - * @description List all required workflows in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-required-workflows"]; - /** - * Create a required workflow - * @description Create a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - post: operations["actions/create-required-workflow"]; - }; - "/orgs/{org}/actions/required_workflows/{required_workflow_id}": { - /** - * Get a required workflow - * @description Get a required workflow configured in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/get-required-workflow"]; - /** - * Delete a required workflow - * @description Deletes a required workflow configured in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - delete: operations["actions/delete-required-workflow"]; - /** - * Update a required workflow - * @description Update a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - patch: operations["actions/update-required-workflow"]; - }; - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories": { - /** - * List selected repositories for a required workflow - * @description Lists the selected repositories that are configured for a required workflow in an organization. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-selected-repositories-required-workflow"]; - /** - * Sets repositories for a required workflow - * @description Sets the repositories for a required workflow that is required for selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - put: operations["actions/set-selected-repos-to-required-workflow"]; - }; - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}": { - /** - * Add a repository to a required workflow - * @description Adds a repository to a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - put: operations["actions/add-selected-repo-to-required-workflow"]; - /** - * Remove a selected repository from required workflow - * @description Removes a repository from a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - delete: operations["actions/remove-selected-repo-from-required-workflow"]; - }; "/orgs/{org}/actions/runners": { /** * List self-hosted runners for an organization @@ -1126,14 +1037,22 @@ export interface paths { * Add users to Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ post: operations["codespaces/set-codespaces-billing-users"]; /** - * Removes users from Codespaces billing for an organization + * Remove users from Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will no longer be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ delete: operations["codespaces/delete-codespaces-billing-users"]; }; @@ -2474,31 +2393,6 @@ export interface paths { */ get: operations["rate-limit/get"]; }; - "/repos/{org}/{repo}/actions/required_workflows": { - /** - * List repository required workflows - * @description Lists the required workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-repo-required-workflows"]; - }; - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}": { - /** - * Get a required workflow entity for a repository - * @description Gets a specific required workflow present in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/get-repo-required-workflow"]; - }; - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing": { - /** - * Get required workflow usage - * @description Gets the number of billable minutes used by a specific required workflow during the current billing cycle. - * - * Billable minutes only apply to required workflows running in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)." - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. - */ - get: operations["actions/get-repo-required-workflow-usage"]; - }; "/repos/{owner}/{repo}": { /** * Get a repository @@ -2716,15 +2610,6 @@ export interface paths { */ put: operations["actions/set-github-actions-default-workflow-permissions-repository"]; }; - "/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs": { - /** - * List workflow runs for a required workflow - * @description List all workflow runs for a required workflow. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - get: operations["actions/list-required-workflow-runs"]; - }; "/repos/{owner}/{repo}/actions/runners": { /** * List self-hosted runners for a repository @@ -3561,7 +3446,7 @@ export interface paths { * Get a check run * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ get: operations["checks/get"]; /** @@ -3575,7 +3460,7 @@ export interface paths { "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": { /** * List check run annotations - * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. + * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. */ get: operations["checks/list-annotations"]; }; @@ -3611,7 +3496,7 @@ export interface paths { * Get a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ get: operations["checks/get-suite"]; }; @@ -3620,7 +3505,7 @@ export interface paths { * List check runs in a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ get: operations["checks/list-for-suite"]; }; @@ -4235,6 +4120,8 @@ export interface paths { /** * List pull requests associated with a commit * @description Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + * + * To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. */ get: operations["repos/list-pull-requests-associated-with-commit"]; }; @@ -4285,7 +4172,7 @@ export interface paths { * List check runs for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ get: operations["checks/list-for-ref"]; }; @@ -4294,7 +4181,7 @@ export interface paths { * List check suites for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ get: operations["checks/list-suites-for-ref"]; }; @@ -4699,7 +4586,7 @@ export interface paths { * Create a deployment status * @description Users with `push` access can create deployment statuses for a given deployment. * - * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth apps require the `repo_deployment` scope. */ post: operations["repos/create-deployment-status"]; }; @@ -4882,7 +4769,7 @@ export interface paths { "/repos/{owner}/{repo}/git/commits": { /** * Create a commit - * @description Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * @description Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). * * **Signature verification object** * @@ -4919,6 +4806,7 @@ export interface paths { /** * Get a commit object * @description Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). + * * To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)." * * **Signature verification object** @@ -6711,7 +6599,7 @@ export interface paths { * * This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. * - * **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + * **Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." */ get: operations["search/issues-and-pull-requests"]; }; @@ -7537,7 +7425,7 @@ export interface paths { * List app installations accessible to the user access token * @description Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * @@ -7552,7 +7440,7 @@ export interface paths { * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The access the user has to each repository is included in the hash under the `permissions` key. */ @@ -7630,14 +7518,14 @@ export interface paths { "/user/marketplace_purchases": { /** * List subscriptions for the authenticated user - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ get: operations["apps/list-subscriptions-for-authenticated-user"]; }; "/user/marketplace_purchases/stubbed": { /** * List subscriptions for the authenticated user (stubbed) - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ get: operations["apps/list-subscriptions-for-authenticated-user-stubbed"]; }; @@ -8839,7 +8727,7 @@ export interface components { }; /** * App Permissions - * @description The permissions granted to the user-to-server access token. + * @description The permissions granted to the user access token. * @example { * "contents": "read", * "issues": "read", @@ -11192,6 +11080,14 @@ export interface components { /** @enum {string} */ status?: "enabled" | "disabled"; }; + /** @description Enable or disable Dependabot security updates for the repository. */ + dependabot_security_updates?: { + /** + * @description The enablement status of Dependabot security updates for the repository. + * @enum {string} + */ + status?: "enabled" | "disabled"; + }; secret_scanning?: { /** @enum {string} */ status?: "enabled" | "disabled"; @@ -11577,11 +11473,6 @@ export interface components { * @example https://github.com/octocat */ html_url: string; - /** - * Format: date-time - * @example 2008-01-14T04:33:35Z - */ - created_at: string; /** @example Organization */ type: string; /** @example 100 */ @@ -11629,8 +11520,6 @@ export interface components { members_can_fork_private_repositories?: boolean | null; /** @example false */ web_commit_signoff_required?: boolean; - /** Format: date-time */ - updated_at: string; /** * @description Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization. * @@ -11688,6 +11577,15 @@ export interface components { * @example https://github.com/test-org/test-repo/blob/main/README.md */ secret_scanning_push_protection_custom_link?: string | null; + /** + * Format: date-time + * @example 2008-01-14T04:33:35Z + */ + created_at: string; + /** Format: date-time */ + updated_at: string; + /** Format: date-time */ + archived_at: string | null; }; "actions-cache-usage-org-enterprise": { /** @description The count of active caches across all repositories of an enterprise or an organization. */ @@ -11775,36 +11673,6 @@ export interface components { default_workflow_permissions?: components["schemas"]["actions-default-workflow-permissions"]; can_approve_pull_request_reviews?: components["schemas"]["actions-can-approve-pull-request-reviews"]; }; - "required-workflow": { - /** @description Unique identifier for a required workflow */ - id: number; - /** @description Name present in the workflow file */ - name: string; - /** @description Path of the workflow file */ - path: string; - /** - * @description Scope of the required workflow - * @enum {string} - */ - scope: "all" | "selected"; - /** @description Ref at which the workflow file will be selected */ - ref: string; - /** - * @description State of the required workflow - * @enum {string} - */ - state: "active" | "deleted"; - /** - * Format: uri - * @example https://api.github.com/organizations/org/actions/required_workflows/1/repositories - */ - selected_repositories_url?: string; - /** Format: date-time */ - created_at: string; - /** Format: date-time */ - updated_at: string; - repository: components["schemas"]["minimal-repository"]; - }; /** * Self hosted runner label * @description A label for a self hosted runner @@ -11994,7 +11862,7 @@ export interface components { * @description State of a code scanning alert. * @enum {string} */ - "code-scanning-alert-state": "open" | "closed" | "dismissed" | "fixed"; + "code-scanning-alert-state-query": "open" | "closed" | "dismissed" | "fixed"; /** * @description Severity of a code scanning alert. * @enum {string} @@ -12005,6 +11873,11 @@ export interface components { * @description The REST API URL for fetching the list of instances for an alert. */ readonly "alert-instances-url": string; + /** + * @description State of a code scanning alert. + * @enum {string} + */ + "code-scanning-alert-state": "open" | "dismissed" | "fixed"; /** * @description **Required when the state is dismissed.** The reason for dismissing or closing the alert. * @enum {string|null} @@ -13137,12 +13010,17 @@ export interface components { */ "repository-ruleset-bypass-actor": { /** @description The ID of the actor that can bypass a ruleset */ - actor_id?: number; + actor_id: number; /** * @description The type of actor that can bypass a ruleset * @enum {string} */ - actor_type?: "Team" | "Integration"; + actor_type: "RepositoryRole" | "Team" | "Integration" | "OrganizationAdmin"; + /** + * @description When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. + * @enum {string} + */ + bypass_mode: "always" | "pull_request"; }; /** * Repository ruleset conditions for ref names @@ -13161,7 +13039,7 @@ export interface components { * @description Parameters for a repository name condition */ "repository-ruleset-conditions-repository-name-target": { - repository_name?: { + repository_name: { /** @description 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. */ include?: (string)[]; /** @description Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match. */ @@ -13170,11 +13048,21 @@ export interface components { protected?: boolean; }; }; + /** + * Repository ruleset conditions for repository IDs + * @description Parameters for a repository ID condition + */ + "repository-ruleset-conditions-repository-id-target": { + repository_id: { + /** @description The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. */ + repository_ids?: (number)[]; + }; + }; /** * Organization ruleset conditions * @description Conditions for a organization ruleset */ - "org-ruleset-conditions": components["schemas"]["repository-ruleset-conditions"] & components["schemas"]["repository-ruleset-conditions-repository-name-target"]; + "org-ruleset-conditions": (components["schemas"]["repository-ruleset-conditions"] & components["schemas"]["repository-ruleset-conditions-repository-name-target"]) | (components["schemas"]["repository-ruleset-conditions"] & components["schemas"]["repository-ruleset-conditions-repository-id-target"]); /** * creation * @description Only allow users with bypass permission to create matching refs. @@ -13182,6 +13070,15 @@ export interface components { "repository-rule-creation": { /** @enum {string} */ type: "creation"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * update @@ -13190,6 +13087,15 @@ export interface components { "repository-rule-update": { /** @enum {string} */ type: "update"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description Branch can pull changes from its upstream repository */ update_allows_fetch_and_merge: boolean; @@ -13202,6 +13108,15 @@ export interface components { "repository-rule-deletion": { /** @enum {string} */ type: "deletion"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * required_linear_history @@ -13210,6 +13125,15 @@ export interface components { "repository-rule-required-linear-history": { /** @enum {string} */ type: "required_linear_history"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * required_deployments @@ -13218,6 +13142,15 @@ export interface components { "repository-rule-required-deployments": { /** @enum {string} */ type: "required_deployments"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description The environments that must be successfully deployed to before branches can be merged. */ required_deployment_environments: (string)[]; @@ -13230,6 +13163,15 @@ export interface components { "repository-rule-required-signatures": { /** @enum {string} */ type: "required_signatures"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * pull_request @@ -13238,6 +13180,15 @@ export interface components { "repository-rule-pull-request": { /** @enum {string} */ type: "pull_request"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description New, reviewable commits pushed will dismiss previous pull request review approvals. */ dismiss_stale_reviews_on_push: boolean; @@ -13268,6 +13219,15 @@ export interface components { "repository-rule-required-status-checks": { /** @enum {string} */ type: "required_status_checks"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description Status checks that are required. */ required_status_checks: (components["schemas"]["repository-rule-params-status-check-configuration"])[]; @@ -13282,6 +13242,15 @@ export interface components { "repository-rule-non-fast-forward": { /** @enum {string} */ type: "non_fast_forward"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; }; /** * commit_message_pattern @@ -13290,6 +13259,15 @@ export interface components { "repository-rule-commit-message-pattern": { /** @enum {string} */ type: "commit_message_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -13311,6 +13289,15 @@ export interface components { "repository-rule-commit-author-email-pattern": { /** @enum {string} */ type: "commit_author_email_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -13332,6 +13319,15 @@ export interface components { "repository-rule-committer-email-pattern": { /** @enum {string} */ type: "committer_email_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -13353,6 +13349,15 @@ export interface components { "repository-rule-branch-name-pattern": { /** @enum {string} */ type: "branch_name_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -13374,6 +13379,15 @@ export interface components { "repository-rule-tag-name-pattern": { /** @enum {string} */ type: "tag_name_pattern"; + /** + * @description The type of source of the ruleset that this rule is configured in + * @enum {string} + */ + ruleset_source_type?: "Repository" | "Organization"; + /** @description The name of the source of the ruleset that this rule is configured in */ + ruleset_source?: string; + /** @description The ID of the ruleset that this rule is configured in */ + ruleset_id?: number; parameters?: { /** @description How this rule will appear to users. */ name?: string; @@ -13415,13 +13429,13 @@ export interface components { /** @description The name of the source */ source: string; enforcement: components["schemas"]["repository-rule-enforcement"]; - /** - * @description The permission level required to bypass this ruleset. "repository" allows those with bypass permission at the repository level to bypass. "organization" allows those with bypass permission at the organization level to bypass. "none" prevents anyone from bypassing. - * @enum {string} - */ - bypass_mode?: "none" | "repository" | "organization"; /** @description The actors that can bypass the rules in this ruleset */ bypass_actors?: (components["schemas"]["repository-ruleset-bypass-actor"])[]; + /** + * @description Whether the user making this API request is able to bypass the ruleset. This field is only returned when + * querying the repository-level endpoint. + */ + current_user_can_bypass?: boolean; node_id?: string; _links?: { self?: { @@ -13688,6 +13702,8 @@ export interface components { web_commit_signoff_required?: boolean; /** Format: date-time */ updated_at: string; + /** Format: date-time */ + archived_at: string | null; }; /** * Full Team @@ -14775,6 +14791,11 @@ export interface components { watchers: number; master_branch?: string; }; + /** + * @description The CodeQL query suite to use. + * @enum {string} + */ + "code-scanning-query-suite": "default" | "extended"; /** * Project Card * @description Project cards represent a scope of work. @@ -14905,59 +14926,6 @@ export interface components { }; rate: components["schemas"]["rate-limit"]; }; - /** - * Required workflow - * @description A GitHub Actions required workflow - */ - "repo-required-workflow": { - /** @example 5 */ - id: number; - /** @example MDg6V29ya2Zsb3cxMg== */ - node_id: string; - /** @example Required CI */ - name: string; - /** @example .github/workflows/required_ci.yaml */ - path: string; - /** - * @example active - * @enum {string} - */ - state: "active" | "deleted"; - source_repository: components["schemas"]["minimal-repository"]; - /** - * Format: date-time - * @example 2019-12-06T14:20:20.000Z - */ - created_at: string; - /** - * Format: date-time - * @example 2019-12-06T14:20:20.000Z - */ - updated_at: string; - /** @example https://api.github.com/repos/sample-org/sample-repo/actions/required_workflows/5 */ - url: string; - /** @example https://github.com/sample-org/source-repo/blob/main/.github/workflows/required_ci.yaml */ - html_url: string; - /** @example https://github.com/sample-org/sample-repo/workflows/required/sample-org/source-repo/.github/workflows/required_ci.yaml/badge.svg */ - badge_url: string; - }; - /** - * Workflow Usage - * @description Workflow Usage - */ - "workflow-usage": { - billable: { - UBUNTU?: { - total_ms?: number; - }; - MACOS?: { - total_ms?: number; - }; - WINDOWS?: { - total_ms?: number; - }; - }; - }; /** * Code Of Conduct Simple * @description Code of Conduct Simple @@ -15725,6 +15693,7 @@ export interface components { url: string; /** @example https://github.com/github/hello-world/suites/4 */ html_url: string; + /** @description Pull requests that are open with a `head_sha` or `head_branch` that matches the workflow run. The returned pull requests do not necessarily indicate pull requests that triggered the run. */ pull_requests: (components["schemas"]["pull-request-minimal"])[] | null; /** Format: date-time */ created_at: string; @@ -16052,6 +16021,23 @@ export interface components { */ deleted_at?: string; }; + /** + * Workflow Usage + * @description Workflow Usage + */ + "workflow-usage": { + billable: { + UBUNTU?: { + total_ms?: number; + }; + MACOS?: { + total_ms?: number; + }; + WINDOWS?: { + total_ms?: number; + }; + }; + }; /** * Autolink reference * @description An autolink reference. @@ -16700,6 +16686,7 @@ export interface components { id: number; } | null; app: components["schemas"]["nullable-integration"]; + /** @description Pull requests that are open with a `head_sha` or `head_branch` that matches the check. The returned pull requests do not necessarily indicate pull requests that triggered the check. */ pull_requests: (components["schemas"]["pull-request-minimal"])[]; deployment?: components["schemas"]["deployment-simple"]; }; @@ -16992,7 +16979,7 @@ export interface components { */ state?: "configured" | "not-configured"; /** @description Languages to be analysed. */ - languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "javascript" | "python" | "ruby" | "typescript")[]; + languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "javascript" | "python" | "ruby" | "typescript" | "swift")[]; /** * @description CodeQL query suite to be used. * @enum {string} @@ -17012,13 +16999,9 @@ export interface components { * @enum {string} */ state: "configured" | "not-configured"; - /** - * @description CodeQL query suite to be used. - * @enum {string} - */ - query_suite?: "default" | "extended"; + query_suite?: components["schemas"]["code-scanning-query-suite"]; /** @description CodeQL languages to be analyzed. Supported values are: `c-cpp`, `csharp`, `go`, `java-kotlin`, `javascript-typescript`, `python`, and `ruby`. */ - languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby")[]; + languages?: ("c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; /** * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. @@ -21068,7 +21051,7 @@ export interface components { * @description The package's language or package management ecosystem. * @enum {string} */ - "security-advisory-ecosystems": "rubygems" | "npm" | "pip" | "maven" | "nuget" | "composer" | "go" | "rust" | "erlang" | "actions" | "pub" | "other"; + "security-advisory-ecosystems": "rubygems" | "npm" | "pip" | "maven" | "nuget" | "composer" | "go" | "rust" | "erlang" | "actions" | "pub" | "other" | "swift"; /** @description A product affected by the vulnerability detailed in a repository security advisory. */ "repository-advisory-vulnerability": { /** @description The name of the package affected by the vulnerability. */ @@ -23130,7 +23113,6 @@ export interface components { "webhook-check-suite-completed": { /** @enum {string} */ action: "completed"; - actions_meta?: Record | null; /** @description The [check_suite](https://docs.github.com/rest/reference/checks#suites). */ check_suite: { after: string | null; @@ -23372,7 +23354,6 @@ export interface components { "webhook-check-suite-requested": { /** @enum {string} */ action: "requested"; - actions_meta?: Record | null; /** @description The [check_suite](https://docs.github.com/rest/reference/checks#suites). */ check_suite: { after: string | null; @@ -23614,12 +23595,6 @@ export interface components { "webhook-check-suite-rerequested": { /** @enum {string} */ action: "rerequested"; - actions_meta?: { - rerun_info?: { - plan_id?: string; - job_ids?: (string)[]; - }; - } | null; /** @description The [check_suite](https://docs.github.com/rest/reference/checks#suites). */ check_suite: { after: string | null; @@ -27499,6 +27474,7 @@ export interface components { }; "webhook-installation-target-renamed": { account: { + archived_at?: string | null; avatar_url: string; created_at?: string; description?: Record | null; @@ -80205,8 +80181,6 @@ export interface components { org: string; /** @description The unique identifier of the repository. */ "repository-id": number; - /** @description The unique identifier of the required workflow. */ - "required-workflow-id": number; /** @description Unique identifier of the self-hosted runner. */ "runner-id": number; /** @description The name of a self-hosted runner's custom label. */ @@ -80287,8 +80261,6 @@ export interface components { "card-id": number; /** @description The unique identifier of the column. */ "column-id": number; - /** @description The ID of the required workflow that has run at least once in a repository. */ - "repo-required-workflow-id": number; /** @description The unique identifier of the artifact. */ "artifact-id": number; /** @description The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference a pull request use `refs/pull//merge`. */ @@ -80870,7 +80842,7 @@ export interface operations { }; /** * Create a scoped access token - * @description Use a non-scoped user-to-server access token to create a repository scoped and/or permission scoped user-to-server access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. + * @description Use a non-scoped user access token to create a repository scoped and/or permission scoped user access token. You can specify which repositories the token can access and which permissions are granted to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. */ "apps/scope-token": { parameters: { @@ -80887,19 +80859,19 @@ export interface operations { */ access_token: string; /** - * @description The name of the user or organization to scope the user-to-server access token to. **Required** unless `target_id` is specified. + * @description The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified. * @example octocat */ target?: string; /** - * @description The ID of the user or organization to scope the user-to-server access token to. **Required** unless `target` is specified. + * @description The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. * @example 1 */ target_id?: number; - /** @description The list of repository names to scope the user-to-server access token to. `repositories` may not be specified if `repository_ids` is specified. */ + /** @description The list of repository names to scope the user access token to. `repositories` may not be specified if `repository_ids` is specified. */ repositories?: (string)[]; /** - * @description The list of repository IDs to scope the user-to-server access token to. `repository_ids` may not be specified if `repositories` is specified. + * @description The list of repository IDs to scope the user access token to. `repository_ids` may not be specified if `repositories` is specified. * @example [ * 1 * ] @@ -81844,7 +81816,7 @@ export interface operations { * Get a subscription plan for an account * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/get-subscription-plan-for-account": { parameters: { @@ -81872,7 +81844,7 @@ export interface operations { * List plans * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-plans": { parameters: { @@ -81899,7 +81871,7 @@ export interface operations { * List accounts for a plan * @description Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-accounts-for-plan": { parameters: { @@ -81933,7 +81905,7 @@ export interface operations { * Get a subscription plan for an account (stubbed) * @description Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/get-subscription-plan-for-account-stubbed": { parameters: { @@ -81957,7 +81929,7 @@ export interface operations { * List plans (stubbed) * @description Lists all plans that are part of your GitHub Marketplace listing. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-plans-stubbed": { parameters: { @@ -81983,7 +81955,7 @@ export interface operations { * List accounts for a plan (stubbed) * @description Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. * - * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. */ "apps/list-accounts-for-plan-stubbed": { parameters: { @@ -82815,272 +82787,6 @@ export interface operations { 204: never; }; }; - /** - * List required workflows - * @description List all required workflows in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-required-workflows": { - parameters: { - query?: { - per_page?: components["parameters"]["per-page"]; - page?: components["parameters"]["page"]; - }; - path: { - org: components["parameters"]["org"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": { - total_count: number; - required_workflows: (components["schemas"]["required-workflow"])[]; - }; - }; - }; - }; - }; - /** - * Create a required workflow - * @description Create a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/create-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - }; - }; - requestBody: { - content: { - "application/json": { - /** @description Path of the workflow file to be configured as a required workflow. */ - workflow_file_path: string; - /** @description The ID of the repository that contains the workflow file. */ - repository_id: string; - /** - * @description Enable the required workflow for all repositories or selected repositories in the organization. - * @default all - * @enum {string} - */ - scope?: "selected" | "all"; - /** @description A list of repository IDs where you want to enable the required workflow. You can only provide a list of repository ids when the `scope` is set to `selected`. */ - selected_repository_ids?: (number)[]; - }; - }; - }; - responses: { - /** @description Response */ - 201: { - content: { - "application/json": components["schemas"]["required-workflow"]; - }; - }; - 422: components["responses"]["validation_failed_simple"]; - }; - }; - /** - * Get a required workflow - * @description Get a required workflow configured in an organization. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/get-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["required-workflow"]; - }; - }; - }; - }; - /** - * Delete a required workflow - * @description Deletes a required workflow configured in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/delete-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 204: never; - }; - }; - /** - * Update a required workflow - * @description Update a required workflow in an organization. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/update-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - requestBody: { - content: { - "application/json": { - /** @description Path of the workflow file to be configured as a required workflow. */ - workflow_file_path?: string; - /** @description The ID of the repository that contains the workflow file. */ - repository_id?: string; - /** - * @description Enable the required workflow for all repositories or selected repositories in the organization. - * @default all - * @enum {string} - */ - scope?: "selected" | "all"; - /** @description A list of repository IDs where you want to enable the required workflow. A list of repository IDs where you want to enable the required workflow. You can only provide a list of repository ids when the `scope` is set to `selected`. */ - selected_repository_ids?: (number)[]; - }; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["required-workflow"]; - }; - }; - 422: components["responses"]["validation_failed_simple"]; - }; - }; - /** - * List selected repositories for a required workflow - * @description Lists the selected repositories that are configured for a required workflow in an organization. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-selected-repositories-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - responses: { - /** @description Success */ - 200: { - content: { - "application/json": { - total_count: number; - repositories: (components["schemas"]["repository"])[]; - }; - }; - }; - /** @description Resource Not Found */ - 404: never; - }; - }; - /** - * Sets repositories for a required workflow - * @description Sets the repositories for a required workflow that is required for selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/set-selected-repos-to-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - }; - }; - requestBody: { - content: { - "application/json": { - /** @description The IDs of the repositories for which the workflow should be required. */ - selected_repository_ids: (number)[]; - }; - }; - }; - responses: { - /** @description Response */ - 204: never; - }; - }; - /** - * Add a repository to a required workflow - * @description Adds a repository to a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/add-selected-repo-to-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - repository_id: components["parameters"]["repository-id"]; - }; - }; - responses: { - /** @description Success */ - 204: never; - /** @description Resource Not Found */ - 404: never; - /** @description Validation Error */ - 422: never; - }; - }; - /** - * Remove a selected repository from required workflow - * @description Removes a repository from a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - * - * You must authenticate using an access token with the `admin:org` scope to use this endpoint. - * - * For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/remove-selected-repo-from-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - required_workflow_id: components["parameters"]["required-workflow-id"]; - repository_id: components["parameters"]["repository-id"]; - }; - }; - responses: { - /** @description Success */ - 204: never; - /** @description Resource Not Found */ - 404: never; - /** @description Validation Error */ - 422: never; - }; - }; /** * List self-hosted runners for an organization * @description Lists all self-hosted runners configured in an organization. @@ -84002,7 +83708,7 @@ export interface operations { per_page?: components["parameters"]["per-page"]; direction?: components["parameters"]["direction"]; /** @description If specified, only code scanning alerts with this state will be returned. */ - state?: components["schemas"]["code-scanning-alert-state"]; + state?: components["schemas"]["code-scanning-alert-state-query"]; /** @description The property by which to sort the results. */ sort?: "created" | "updated"; /** @description If specified, only code scanning alerts with this severity will be returned. */ @@ -84099,7 +83805,11 @@ export interface operations { * Add users to Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ "codespaces/set-codespaces-billing-users": { parameters: { @@ -84127,10 +83837,14 @@ export interface operations { }; }; /** - * Removes users from Codespaces billing for an organization + * Remove users from Codespaces billing for an organization * @deprecated * @description Codespaces for the specified users will no longer be billed to the organization. - * To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * To use this endpoint, the billing settings for the organization must be set to `selected_members`. + * For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. */ "codespaces/delete-codespaces-billing-users": { parameters: { @@ -88924,82 +88638,6 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** - * List repository required workflows - * @description Lists the required workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-repo-required-workflows": { - parameters: { - query?: { - per_page?: components["parameters"]["per-page"]; - page?: components["parameters"]["page"]; - }; - path: { - org: components["parameters"]["org"]; - repo: components["parameters"]["repo"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": { - total_count: number; - required_workflows: (components["schemas"]["repo-required-workflow"])[]; - }; - }; - }; - 404: components["responses"]["not_found"]; - }; - }; - /** - * Get a required workflow entity for a repository - * @description Gets a specific required workflow present in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/get-repo-required-workflow": { - parameters: { - path: { - org: components["parameters"]["org"]; - repo: components["parameters"]["repo"]; - required_workflow_id_for_repo: components["parameters"]["repo-required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["repo-required-workflow"]; - }; - }; - 404: components["responses"]["not_found"]; - }; - }; - /** - * Get required workflow usage - * @description Gets the number of billable minutes used by a specific required workflow during the current billing cycle. - * - * Billable minutes only apply to required workflows running in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)." - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. - */ - "actions/get-repo-required-workflow-usage": { - parameters: { - path: { - org: components["parameters"]["org"]; - repo: components["parameters"]["repo"]; - required_workflow_id_for_repo: components["parameters"]["repo-required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - content: { - "application/json": components["schemas"]["workflow-usage"]; - }; - }; - 404: components["responses"]["not_found"]; - }; - }; /** * Get a repository * @description The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. @@ -89820,47 +89458,6 @@ export interface operations { 409: never; }; }; - /** - * List workflow runs for a required workflow - * @description List all workflow runs for a required workflow. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). - * - * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - */ - "actions/list-required-workflow-runs": { - parameters: { - query?: { - actor?: components["parameters"]["actor"]; - branch?: components["parameters"]["workflow-run-branch"]; - event?: components["parameters"]["event"]; - status?: components["parameters"]["workflow-run-status"]; - per_page?: components["parameters"]["per-page"]; - page?: components["parameters"]["page"]; - created?: components["parameters"]["created"]; - exclude_pull_requests?: components["parameters"]["exclude-pull-requests"]; - check_suite_id?: components["parameters"]["workflow-run-check-suite-id"]; - head_sha?: components["parameters"]["workflow-run-head-sha"]; - }; - path: { - owner: components["parameters"]["owner"]; - repo: components["parameters"]["repo"]; - required_workflow_id_for_repo: components["parameters"]["repo-required-workflow-id"]; - }; - }; - responses: { - /** @description Response */ - 200: { - headers: { - Link: components["headers"]["link"]; - }; - content: { - "application/json": { - total_count: number; - workflow_runs: (components["schemas"]["workflow-run"])[]; - }; - }; - }; - }; - }; /** * List self-hosted runners for a repository * @description Lists all self-hosted runners configured in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint. @@ -92548,7 +92145,7 @@ export interface operations { * Get a check run * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ "checks/get": { parameters: { @@ -92684,7 +92281,7 @@ export interface operations { }; /** * List check run annotations - * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. + * @description Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. */ "checks/list-annotations": { parameters: { @@ -92824,7 +92421,7 @@ export interface operations { * Get a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ "checks/get-suite": { parameters: { @@ -92847,7 +92444,7 @@ export interface operations { * List check runs in a check suite * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ "checks/list-for-suite": { parameters: { @@ -92928,7 +92525,7 @@ export interface operations { /** @description The property by which to sort the results. */ sort?: "created" | "updated"; /** @description If specified, only code scanning alerts with this state will be returned. */ - state?: components["schemas"]["code-scanning-alert-state"]; + state?: components["schemas"]["code-scanning-alert-state-query"]; /** @description If specified, only code scanning alerts with this severity will be returned. */ severity?: components["schemas"]["code-scanning-alert-severity"]; }; @@ -94451,6 +94048,8 @@ export interface operations { /** * List pull requests associated with a commit * @description Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + * + * To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. */ "repos/list-pull-requests-associated-with-commit": { parameters: { @@ -94544,7 +94143,7 @@ export interface operations { * List check runs for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. * - * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. */ "checks/list-for-ref": { parameters: { @@ -94582,7 +94181,7 @@ export interface operations { * List check suites for a Git reference * @description **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. * - * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. */ "checks/list-suites-for-ref": { parameters: { @@ -95651,7 +95250,7 @@ export interface operations { * Create a deployment status * @description Users with `push` access can create deployment statuses for a given deployment. * - * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth apps require the `repo_deployment` scope. */ "repos/create-deployment-status": { parameters: { @@ -96338,7 +95937,7 @@ export interface operations { }; /** * Create a commit - * @description Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * @description Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). * * **Signature verification object** * @@ -96432,6 +96031,7 @@ export interface operations { /** * Get a commit object * @description Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). + * * To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)." * * **Signature verification object** @@ -101424,11 +101024,6 @@ export interface operations { */ target?: "branch" | "tag"; enforcement: components["schemas"]["repository-rule-enforcement"]; - /** - * @description The permission level required to bypass this ruleset. "repository" allows those with bypass permission at the repository level to bypass. "organization" allows those with bypass permission at the organization level to bypass. "none" prevents anyone from bypassing. - * @enum {string} - */ - bypass_mode?: "none" | "repository" | "organization"; /** @description The actors that can bypass the rules in this ruleset */ bypass_actors?: (components["schemas"]["repository-ruleset-bypass-actor"])[]; conditions?: components["schemas"]["repository-ruleset-conditions"]; @@ -101501,11 +101096,6 @@ export interface operations { */ target?: "branch" | "tag"; enforcement?: components["schemas"]["repository-rule-enforcement"]; - /** - * @description The permission level required to bypass this ruleset. "repository" allows those with bypass permission at the repository level to bypass. "organization" allows those with bypass permission at the organization level to bypass. "none" prevents anyone from bypassing. - * @enum {string} - */ - bypass_mode?: "none" | "repository" | "organization"; /** @description The actors that can bypass the rules in this ruleset */ bypass_actors?: (components["schemas"]["repository-ruleset-bypass-actor"])[]; conditions?: components["schemas"]["repository-ruleset-conditions"]; @@ -103070,7 +102660,7 @@ export interface operations { * * This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. * - * **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + * **Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." */ "search/issues-and-pull-requests": { parameters: { @@ -105514,7 +105104,7 @@ export interface operations { * List app installations accessible to the user access token * @description Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * @@ -105551,7 +105141,7 @@ export interface operations { * * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. * - * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. * * The access the user has to each repository is included in the hash under the `permissions` key. */ @@ -105816,7 +105406,7 @@ export interface operations { }; /** * List subscriptions for the authenticated user - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ "apps/list-subscriptions-for-authenticated-user": { parameters: { @@ -105842,7 +105432,7 @@ export interface operations { }; /** * List subscriptions for the authenticated user (stubbed) - * @description Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + * @description Lists the active subscriptions for the authenticated user. GitHub Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). */ "apps/list-subscriptions-for-authenticated-user-stubbed": { parameters: { diff --git a/packages/openapi-typescript/examples/github-api.yaml b/packages/openapi-typescript/examples/github-api.yaml index f4bfa6f61..b9813fc3c 100644 --- a/packages/openapi-typescript/examples/github-api.yaml +++ b/packages/openapi-typescript/examples/github-api.yaml @@ -110,6 +110,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta + subcategory: meta externalDocs: description: API method documentation url: https://docs.github.com/rest/overview/resources-in-the-rest-api#root-endpoint @@ -141,7 +142,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app-manifests/{code}/conversions": post: summary: Create a GitHub App from a manifest @@ -197,7 +198,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/app/hook/config": get: summary: Get a webhook configuration for an app @@ -412,7 +413,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app/installations": get: summary: List installations for the authenticated app @@ -455,7 +456,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app/installations/{installation_id}": get: summary: Get an installation for the authenticated app @@ -487,7 +488,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps delete: summary: Delete an installation for the authenticated app description: |- @@ -511,7 +512,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/app/installations/{installation_id}/access_tokens": post: summary: Create an installation access token for an app @@ -580,7 +581,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/app/installations/{installation_id}/suspended": put: summary: Suspend an app installation @@ -605,7 +606,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps delete: summary: Unsuspend an app installation description: |- @@ -629,7 +630,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/applications/{client_id}/grant": delete: summary: Delete an app authorization @@ -817,10 +818,10 @@ paths: "/applications/{client_id}/token/scoped": post: summary: Create a scoped access token - description: Use a non-scoped user-to-server access token to create a repository - scoped and/or permission scoped user-to-server access token. You can specify - which repositories the token can access and which permissions are granted - to the token. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) + description: Use a non-scoped user access token to create a repository scoped + and/or permission scoped user access token. You can specify which repositories + the token can access and which permissions are granted to the token. You must + use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the `client_id` and `client_secret` of the GitHub App as the username and password. Invalid tokens will return `404 NOT FOUND`. @@ -845,26 +846,26 @@ paths: API. example: e72e16c7e42f292c6912e7710c838347ae178b4a target: - description: The name of the user or organization to scope the user-to-server + description: The name of the user or organization to scope the user access token to. **Required** unless `target_id` is specified. type: string example: octocat target_id: - description: The ID of the user or organization to scope the user-to-server + description: The ID of the user or organization to scope the user access token to. **Required** unless `target` is specified. example: 1 type: integer repositories: - description: The list of repository names to scope the user-to-server - access token to. `repositories` may not be specified if `repository_ids` + description: The list of repository names to scope the user access + token to. `repositories` may not be specified if `repository_ids` is specified. type: array items: type: string example: rails repository_ids: - description: The list of repository IDs to scope the user-to-server - access token to. `repository_ids` may not be specified if `repositories` + description: The list of repository IDs to scope the user access + token to. `repository_ids` may not be specified if `repositories` is specified. example: - 1 @@ -940,7 +941,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: apps - subcategory: + subcategory: apps "/codes_of_conduct": get: summary: Get all codes of conduct @@ -970,7 +971,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codes-of-conduct - subcategory: + subcategory: codes-of-conduct "/codes_of_conduct/{key}": get: summary: Get a code of conduct @@ -1005,7 +1006,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codes-of-conduct - subcategory: + subcategory: codes-of-conduct "/emojis": get: summary: Get emojis @@ -1035,7 +1036,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: emojis - subcategory: + subcategory: emojis "/enterprises/{enterprise}/dependabot/alerts": get: summary: List Dependabot alerts for an enterprise @@ -1135,7 +1136,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: secret-scanning - subcategory: + subcategory: secret-scanning "/events": get: summary: List public events @@ -1249,7 +1250,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists post: summary: Create a gist description: |- @@ -1339,7 +1340,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/public": get: summary: List public gists @@ -1382,7 +1383,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/starred": get: summary: List starred gists @@ -1422,7 +1423,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}": get: summary: Get a gist @@ -1455,7 +1456,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists patch: summary: Update a gist description: Allows you to update a gist's description and to update, delete, @@ -1556,7 +1557,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists delete: summary: Delete a gist description: '' @@ -1581,7 +1582,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/comments": get: summary: List gist comments @@ -1827,7 +1828,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/forks": get: summary: List gist forks @@ -1867,7 +1868,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists post: summary: Fork a gist description: '' @@ -1906,7 +1907,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/star": get: summary: Check if a gist is starred @@ -1938,7 +1939,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists put: summary: Star a gist description: Note that you'll need to set `Content-Length` to zero when calling @@ -1964,7 +1965,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists delete: summary: Unstar a gist description: '' @@ -1989,7 +1990,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gists/{gist_id}/{sha}": get: summary: Get a gist revision @@ -2027,7 +2028,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/gitignore/templates": get: summary: Get all gitignore templates @@ -2065,7 +2066,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: gitignore - subcategory: + subcategory: gitignore "/gitignore/templates/{name}": get: summary: Get a gitignore template @@ -2100,7 +2101,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: gitignore - subcategory: + subcategory: gitignore "/installation/repositories": get: summary: List repositories accessible to the app installation @@ -2288,7 +2289,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: issues - subcategory: + subcategory: issues "/licenses": get: summary: Get all commonly used licenses @@ -2325,7 +2326,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: licenses - subcategory: + subcategory: licenses "/licenses/{license}": get: summary: Get a license @@ -2362,7 +2363,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: licenses - subcategory: + subcategory: licenses "/markdown": post: summary: Render a Markdown document @@ -2431,7 +2432,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: markdown - subcategory: + subcategory: markdown "/markdown/raw": post: summary: Render a Markdown document in raw mode @@ -2485,14 +2486,14 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: markdown - subcategory: + subcategory: markdown "/marketplace_listing/accounts/{account_id}": get: summary: Get a subscription plan for an account description: |- Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/get-subscription-plan-for-account @@ -2530,7 +2531,7 @@ paths: description: |- Lists all plans that are part of your GitHub Marketplace listing. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-plans @@ -2570,7 +2571,7 @@ paths: description: |- Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-accounts-for-plan @@ -2624,7 +2625,7 @@ paths: description: |- Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/get-subscription-plan-for-account-stubbed @@ -2658,7 +2659,7 @@ paths: description: |- Lists all plans that are part of your GitHub Marketplace listing. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-plans-stubbed @@ -2696,7 +2697,7 @@ paths: description: |- Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. tags: - apps operationId: apps/list-accounts-for-plan-stubbed @@ -2774,7 +2775,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta - subcategory: + subcategory: meta "/networks/{owner}/{repo}/events": get: summary: List public events for a network of repositories @@ -3135,6 +3136,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta + subcategory: meta "/organizations": get: summary: List organizations @@ -3174,7 +3176,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs "/orgs/{org}": get: summary: Get an organization @@ -3206,7 +3208,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs patch: summary: Update an organization description: |- @@ -3432,7 +3434,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs delete: summary: Delete an organization description: |- @@ -3940,412 +3942,6 @@ paths: enabledForGitHubApps: true category: actions subcategory: permissions - "/orgs/{org}/actions/required_workflows": - get: - summary: List required workflows - description: |- - List all required workflows in an organization. - - You must authenticate using an access token with the `read:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/list-required-workflows - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#list-required-workflows - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/per-page" - - "$ref": "#/components/parameters/page" - responses: - '200': - description: Response - content: - application/json: - schema: - type: object - required: - - total_count - - required_workflows - properties: - total_count: - type: integer - required_workflows: - type: array - items: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflows-paginated" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - post: - summary: Create a required workflow - description: |- - Create a required workflow in an organization. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/create-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#create-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - workflow_file_path: - description: Path of the workflow file to be configured as a required - workflow. - type: string - repository_id: - description: The ID of the repository that contains the workflow - file. - type: string - scope: - description: Enable the required workflow for all repositories or - selected repositories in the organization. - type: string - enum: - - selected - - all - default: all - selected_repository_ids: - description: A list of repository IDs where you want to enable the - required workflow. You can only provide a list of repository ids - when the `scope` is set to `selected`. - type: array - items: - type: integer - description: Unique identifier of the repository. - required: - - workflow_file_path - - repository_id - examples: - default: - value: - workflow_file_path: ".github/workflows/ci.yaml" - repository_id: 53 - scope: selected - selected_repository_ids: - - 32 - - 91 - responses: - '201': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflow" - '422': - "$ref": "#/components/responses/validation_failed_simple" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/orgs/{org}/actions/required_workflows/{required_workflow_id}": - get: - summary: Get a required workflow - description: |- - Get a required workflow configured in an organization. - - You must authenticate using an access token with the `read:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/get-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#get-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflow" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - patch: - summary: Update a required workflow - description: |- - Update a required workflow in an organization. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/update-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#update-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - workflow_file_path: - description: Path of the workflow file to be configured as a required - workflow. - type: string - repository_id: - description: The ID of the repository that contains the workflow - file. - type: string - scope: - description: Enable the required workflow for all repositories or - selected repositories in the organization. - type: string - enum: - - selected - - all - default: all - selected_repository_ids: - description: A list of repository IDs where you want to enable the - required workflow. A list of repository IDs where you want to - enable the required workflow. You can only provide a list of repository - ids when the `scope` is set to `selected`. - type: array - items: - type: integer - description: Unique identifier of the repository. - examples: - default: - value: - workflow_file_path: ".github/workflows/ci.yaml" - repository_id: 53 - scope: selected - selected_repository_ids: - - 32 - - 91 - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/required-workflow" - examples: - default: - "$ref": "#/components/examples/required-workflow" - '422': - "$ref": "#/components/responses/validation_failed_simple" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - delete: - summary: Delete a required workflow - description: |- - Deletes a required workflow configured in an organization. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/delete-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#delete-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories": - get: - summary: List selected repositories for a required workflow - description: |- - Lists the selected repositories that are configured for a required workflow in an organization. To use this endpoint, the required workflow must be configured to run on selected repositories. - - You must authenticate using an access token with the `read:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - operationId: actions/list-selected-repositories-required-workflow - tags: - - actions - externalDocs: - description: API method documentation https://docs.github.com/rest/reference/actions#list-selected-repositories-required-workflows - url: https://docs.github.com/rest/reference/actions#list-selected-repositories-required-workflows - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - responses: - '200': - description: Success - content: - application/json: - schema: - type: object - required: - - total_count - - repositories - properties: - total_count: - type: number - repositories: - type: array - items: - "$ref": "#/components/schemas/repository" - examples: - default: - "$ref": "#/components/examples/repository-paginated" - '404': - description: Resource Not Found - x-github: - enabledForGitHubApps: true - githubCloudOnly: false - category: actions - subcategory: required-workflows - put: - summary: Sets repositories for a required workflow - description: |- - Sets the repositories for a required workflow that is required for selected repositories. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/set-selected-repos-to-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#set-selected-repositories-for-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - selected_repository_ids: - description: The IDs of the repositories for which the workflow - should be required. - type: array - items: - type: integer - description: Unique identifier of the repository. - required: - - selected_repository_ids - examples: - default: - value: - selected_repository_ids: - - 32 - - 91 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}": - put: - summary: Add a repository to a required workflow - description: |- - Adds a repository to a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/add-selected-repo-to-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#add-a-repository-to-selected-repositories-list-for-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - - "$ref": "#/components/parameters/repository-id" - responses: - '204': - description: Success - '404': - description: Resource Not Found - '422': - description: Validation Error - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - delete: - summary: Remove a selected repository from required workflow - description: |- - Removes a repository from a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories. - - You must authenticate using an access token with the `admin:org` scope to use this endpoint. - - For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/remove-selected-repo-from-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#remove-a-repository-from-selected-repositories-list-for-a-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/required-workflow-id" - - "$ref": "#/components/parameters/repository-id" - responses: - '204': - description: Success - '404': - description: Resource Not Found - '422': - description: Validation Error - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows "/orgs/{org}/actions/runners": get: summary: List self-hosted runners for an organization @@ -5776,7 +5372,7 @@ paths: in: query required: false schema: - "$ref": "#/components/schemas/code-scanning-alert-state" + "$ref": "#/components/schemas/code-scanning-alert-state-query" - name: sort description: The property by which to sort the results. in: query @@ -5817,7 +5413,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/orgs/{org}/codespaces": get: summary: List codespaces for the organization @@ -5942,7 +5538,11 @@ paths: summary: Add users to Codespaces billing for an organization description: |- Codespaces for the specified users will be billed to the organization. - To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + + To use this endpoint, the billing settings for the organization must be set to `selected_members`. + For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + + You must authenticate using an access token with the `admin:org` scope to use this endpoint. tags: - codespaces operationId: codespaces/set-codespaces-billing-users @@ -5993,10 +5593,14 @@ paths: category: codespaces subcategory: organizations delete: - summary: Removes users from Codespaces billing for an organization + summary: Remove users from Codespaces billing for an organization description: |- Codespaces for the specified users will no longer be billed to the organization. - To use this endpoint, the billing settings for the organization must be set to `selected_members`. For information on how to change this setting please see [these docs].(https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces) You must authenticate using an access token with the `admin:org` scope to use this endpoint. + + To use this endpoint, the billing settings for the organization must be set to `selected_members`. + For information on how to change this setting, see "[Manage access control for organization codespaces](https://docs.github.com/rest/codespaces/organizations#manage-access-control-for-organization-codespaces)." + + You must authenticate using an access token with the `admin:org` scope to use this endpoint. tags: - codespaces operationId: codespaces/delete-codespaces-billing-users @@ -7037,7 +6641,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/events": get: summary: List public organization events @@ -7608,7 +7212,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/orgs/{org}/installations": get: summary: List app installations for an organization @@ -7652,7 +7256,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs "/orgs/{org}/interaction-limits": get: summary: Get interaction restrictions for an organization @@ -8041,7 +7645,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: issues - subcategory: + subcategory: issues "/orgs/{org}/members": get: summary: List organization members @@ -8942,7 +8546,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}": get: summary: Get a package for an organization @@ -8974,7 +8578,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package for an organization description: |- @@ -9006,7 +8610,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/restore": post: summary: Restore a package for an organization @@ -9049,7 +8653,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/versions": get: summary: List package versions for a package owned by an organization @@ -9101,7 +8705,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}": get: summary: Get a package version for an organization @@ -9134,7 +8738,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete package version for an organization description: |- @@ -9167,7 +8771,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore": post: summary: Restore package version for an organization @@ -9205,7 +8809,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/orgs/{org}/personal-access-token-requests": get: summary: List requests to access organization resources with fine-grained personal @@ -9722,7 +9326,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects post: summary: Create an organization project description: Creates an organization project board. Returns a `410 Gone` status @@ -9781,7 +9385,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/orgs/{org}/public_members": get: summary: List public organization members @@ -9958,7 +9562,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos post: summary: Create an organization repository description: |- @@ -10166,7 +9770,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/orgs/{org}/rulesets": get: summary: Get all organization repository rulesets @@ -10261,6 +9865,7 @@ paths: bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -10386,6 +9991,7 @@ paths: bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -10490,7 +10096,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning "/orgs/{org}/security-managers": get: summary: List security manager teams @@ -10613,7 +10219,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/orgs/{org}/settings/billing/packages": get: summary: Get GitHub Packages billing for an organization @@ -10645,7 +10251,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/orgs/{org}/settings/billing/shared-storage": get: summary: Get shared storage billing for an organization @@ -10677,7 +10283,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/orgs/{org}/teams": get: summary: List teams @@ -10714,7 +10320,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams post: summary: Create a team description: |- @@ -10813,7 +10419,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}": get: summary: Get a team by name @@ -10846,7 +10452,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams patch: summary: Update a team description: |- @@ -10947,7 +10553,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams delete: summary: Delete a team description: |- @@ -10972,7 +10578,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/discussions": get: summary: List discussions @@ -11434,7 +11040,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a team discussion comment description: |- @@ -11502,7 +11108,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": delete: summary: Delete team discussion comment reaction @@ -11529,7 +11135,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": get: summary: List reactions for a team discussion @@ -11584,7 +11190,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a team discussion description: |- @@ -11650,7 +11256,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": delete: summary: Delete team discussion reaction @@ -11676,7 +11282,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/orgs/{org}/teams/{team_slug}/invitations": get: summary: List pending team invitations @@ -11935,7 +11541,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/projects/{project_id}": get: summary: Check team permissions for a project @@ -11969,7 +11575,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams put: summary: Add or update team project permissions description: |- @@ -12034,7 +11640,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams delete: summary: Remove a project from a team description: |- @@ -12058,7 +11664,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/repos": get: summary: List team repositories @@ -12096,7 +11702,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": get: summary: Check team permissions for a repository @@ -12139,7 +11745,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams put: summary: Add or update team repository permissions description: |- @@ -12189,7 +11795,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams delete: summary: Remove a repository from a team description: |- @@ -12214,7 +11820,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/teams/{team_slug}/teams": get: summary: List child teams @@ -12252,7 +11858,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: teams - subcategory: + subcategory: teams "/orgs/{org}/{security_product}/{enablement}": post: summary: Enable or disable a security feature for an organization @@ -12876,7 +12482,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects patch: summary: Update a project description: Updates a project board's information. Returns a `404 Not Found` @@ -12970,7 +12576,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects delete: summary: Delete a project description: Deletes a project board. Returns a `404 Not Found` status if projects @@ -13013,7 +12619,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/projects/{project_id}/collaborators": get: summary: List project collaborators @@ -13342,124 +12948,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: rate-limit - subcategory: - "/repos/{org}/{repo}/actions/required_workflows": - get: - summary: List repository required workflows - description: Lists the required workflows in a repository. Anyone with read - access to the repository can use this endpoint. If the repository is private - you must use an access token with the `repo` scope. GitHub Apps must have - the `actions:read` permission to use this endpoint. For more information, - see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/list-repo-required-workflows - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#list-repository-required-workflows - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/per-page" - - "$ref": "#/components/parameters/page" - responses: - '200': - description: Response - content: - application/json: - schema: - type: object - required: - - total_count - - required_workflows - properties: - total_count: - type: integer - required_workflows: - type: array - items: - "$ref": "#/components/schemas/repo-required-workflow" - examples: - default: - "$ref": "#/components/examples/repo-required-workflow-paginated" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}": - get: - summary: Get a required workflow entity for a repository - description: Gets a specific required workflow present in a repository. Anyone - with read access to the repository can use this endpoint. If the repository - is private you must use an access token with the `repo` scope. GitHub Apps - must have the `actions:read` permission to use this endpoint. For more information, - see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/get-repo-required-workflow - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#get-repository-required-workflow - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/repo-required-workflow-id" - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/repo-required-workflow" - examples: - default: - "$ref": "#/components/examples/repo-required-workflow" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: required-workflows - "/repos/{org}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/timing": - get: - summary: Get required workflow usage - description: |- - Gets the number of billable minutes used by a specific required workflow during the current billing cycle. - - Billable minutes only apply to required workflows running in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://docs.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)." - - Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. - tags: - - actions - operationId: actions/get-repo-required-workflow-usage - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#get-repository-required-workflow-usage - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/repo-required-workflow-id" - responses: - '200': - description: Response - content: - application/json: - schema: - "$ref": "#/components/schemas/workflow-usage" - examples: - default: - "$ref": "#/components/examples/workflow-usage" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: false - category: actions - subcategory: required-workflows + subcategory: rate-limit "/repos/{owner}/{repo}": get: summary: Get a repository @@ -13496,7 +12985,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos patch: summary: Update a repository description: "**Note**: To edit a repository's topics, use the [Replace all @@ -13740,7 +13229,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos delete: summary: Delete a repository description: |- @@ -13786,7 +13275,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/actions/artifacts": get: summary: List artifacts for a repository @@ -14641,61 +14130,6 @@ paths: enabledForGitHubApps: true category: actions subcategory: permissions - "/repos/{owner}/{repo}/actions/required_workflows/{required_workflow_id_for_repo}/runs": - get: - summary: List workflow runs for a required workflow - description: |- - List all workflow runs for a required workflow. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). - - Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. For more information, see "[Required Workflows](https://docs.github.com/actions/using-workflows/required-workflows)." - tags: - - actions - operationId: actions/list-required-workflow-runs - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/reference/actions#list-required-workflow-runs - parameters: - - "$ref": "#/components/parameters/owner" - - "$ref": "#/components/parameters/repo" - - "$ref": "#/components/parameters/repo-required-workflow-id" - - "$ref": "#/components/parameters/actor" - - "$ref": "#/components/parameters/workflow-run-branch" - - "$ref": "#/components/parameters/event" - - "$ref": "#/components/parameters/workflow-run-status" - - "$ref": "#/components/parameters/per-page" - - "$ref": "#/components/parameters/page" - - "$ref": "#/components/parameters/created" - - "$ref": "#/components/parameters/exclude-pull-requests" - - "$ref": "#/components/parameters/workflow-run-check-suite-id" - - "$ref": "#/components/parameters/workflow-run-head-sha" - responses: - '200': - description: Response - content: - application/json: - schema: - type: object - required: - - total_count - - workflow_runs - properties: - total_count: - type: integer - workflow_runs: - type: array - items: - "$ref": "#/components/schemas/workflow-run" - examples: - default: - "$ref": "#/components/examples/workflow-run-paginated" - headers: - Link: - "$ref": "#/components/headers/link" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: actions - subcategory: workflow-runs "/repos/{owner}/{repo}/actions/runners": get: summary: List self-hosted runners for a repository @@ -16915,7 +16349,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos delete: summary: Disable automated security fixes description: Disables automated security fixes for a repository. The authenticated @@ -16937,7 +16371,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/branches": get: summary: List branches @@ -16982,6 +16416,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/branches/{branch}": get: summary: Get a branch @@ -17014,6 +16449,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/branches/{branch}/protection": get: summary: Get branch protection @@ -18930,6 +18366,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/check-runs": post: summary: Create a check run @@ -19238,7 +18675,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. tags: - checks operationId: checks/get @@ -19531,7 +18968,7 @@ paths: summary: List check run annotations description: Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull - access to a public repository to get annotations for a check run. OAuth Apps + access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. tags: @@ -19742,7 +19179,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. tags: - checks operationId: checks/get-suite @@ -19774,7 +19211,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. tags: - checks operationId: checks/list-for-suite @@ -19905,7 +19342,7 @@ paths: in: query required: false schema: - "$ref": "#/components/schemas/code-scanning-alert-state" + "$ref": "#/components/schemas/code-scanning-alert-state-query" - name: severity description: If specified, only code scanning alerts with this severity will be returned. @@ -19937,7 +19374,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": get: summary: Get a code scanning alert @@ -19978,7 +19415,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning patch: summary: Update a code scanning alert description: Updates the status of a single code scanning alert. You must use @@ -20038,6 +19475,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances": get: summary: List instances of a code scanning alert @@ -20081,7 +19519,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/analyses": get: summary: List code scanning analyses for a repository @@ -20162,6 +19600,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}": get: summary: Get a code scanning analysis for a repository @@ -20228,6 +19667,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning delete: summary: Delete a code scanning analysis from a repository description: |- @@ -20345,6 +19785,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/codeql/databases": get: summary: List CodeQL databases for a repository @@ -20386,7 +19827,7 @@ paths: enabledForGitHubApps: true previews: [] category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/codeql/databases/{language}": get: summary: Get a CodeQL database for a repository @@ -20440,7 +19881,7 @@ paths: enabledForGitHubApps: true previews: [] category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/default-setup": get: summary: Get a code scanning default setup configuration @@ -20477,7 +19918,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning patch: summary: Update a code scanning default setup configuration description: |- @@ -20530,7 +19971,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: code-scanning - subcategory: + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/sarifs": post: summary: Upload an analysis as SARIF data @@ -20652,6 +20093,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}": get: summary: Get information about a SARIF upload @@ -20698,6 +20140,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: code-scanning + subcategory: code-scanning "/repos/{owner}/{repo}/codeowners/errors": get: summary: List CODEOWNERS errors @@ -20741,7 +20184,7 @@ paths: enabledForGitHubApps: true previews: [] category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/codespaces": get: summary: List codespaces in a repository for the authenticated user @@ -20794,7 +20237,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces post: summary: Create a codespace in a repository description: |- @@ -20903,7 +20346,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/codespaces/devcontainers": get: summary: List devcontainer configurations in a repository for the authenticated @@ -20969,7 +20412,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/codespaces/machines": get: summary: List available machine types for a repository @@ -21102,7 +20545,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/codespaces/secrets": get: summary: List repository secrets @@ -21438,6 +20881,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators "/repos/{owner}/{repo}/collaborators/{username}": get: summary: Check if a user is a repository collaborator @@ -21468,6 +20912,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators put: summary: Add a repository collaborator description: |- @@ -21547,6 +20992,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators delete: summary: Remove a repository collaborator description: |- @@ -21592,6 +21038,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators "/repos/{owner}/{repo}/collaborators/{username}/permission": get: summary: Get repository permissions for a user @@ -21629,6 +21076,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: collaborators + subcategory: collaborators "/repos/{owner}/{repo}/comments": get: summary: List commit comments for a repository @@ -21820,7 +21268,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a commit comment description: Create a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). @@ -21887,7 +21335,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": delete: summary: Delete a commit comment reaction @@ -21913,7 +21361,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/commits": get: summary: List commits @@ -22018,6 +21466,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": get: summary: List branches for HEAD commit @@ -22053,6 +21502,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{commit_sha}/comments": get: summary: List commit comments @@ -22163,9 +21613,10 @@ paths: "/repos/{owner}/{repo}/commits/{commit_sha}/pulls": get: summary: List pull requests associated with a commit - description: Lists the merged pull request that introduced the commit to the - repository. If the commit is not present in the default branch, will only - return open pull requests associated with the commit. + description: |- + Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + + To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. tags: - repos operationId: repos/list-pull-requests-associated-with-commit @@ -22197,6 +21648,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{ref}": get: summary: Get a commit @@ -22271,13 +21723,14 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/commits/{ref}/check-runs": get: summary: List check runs for a Git reference description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository. tags: - checks operationId: checks/list-for-ref @@ -22342,7 +21795,7 @@ paths: description: |- **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository. tags: - checks operationId: checks/list-suites-for-ref @@ -22604,6 +22057,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: commits + subcategory: commits "/repos/{owner}/{repo}/contents/{path}": get: summary: Get repository content @@ -22987,7 +22441,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/dependabot/alerts": get: summary: List Dependabot alerts for a repository @@ -23651,6 +23105,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments post: summary: Create a deployment description: |- @@ -23815,6 +23270,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments "/repos/{owner}/{repo}/deployments/{deployment_id}": get: summary: Get a deployment @@ -23845,6 +23301,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments delete: summary: Delete a deployment description: |- @@ -23877,6 +23334,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deployments + subcategory: deployments "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": get: summary: List deployment statuses @@ -23920,7 +23378,7 @@ paths: description: |- Users with `push` access can create deployment statuses for a given deployment. - GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth apps require the `repo_deployment` scope. tags: - repos operationId: repos/create-deployment-status @@ -24121,7 +23579,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/environments": get: summary: List environments @@ -24956,7 +24414,7 @@ paths: post: summary: Create a commit description: |- - Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). **Signature verification object** @@ -25126,6 +24584,7 @@ paths: summary: Get a commit object description: |- Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). + To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)." **Signature verification object** @@ -26789,7 +26248,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/repos/{owner}/{repo}/interaction-limits": get: summary: Get interaction restrictions for a repository @@ -27104,7 +26563,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues post: summary: Create an issue description: |- @@ -27221,7 +26680,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues "/repos/{owner}/{repo}/issues/comments": get: summary: List issue comments for a repository @@ -27429,7 +26888,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for an issue comment description: Create a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). @@ -27496,7 +26955,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": delete: summary: Delete an issue comment reaction @@ -27522,7 +26981,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/events": get: summary: List issue events for a repository @@ -27646,7 +27105,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues patch: summary: Update an issue description: Issue owners and users with push access can edit an issue. @@ -27774,7 +27233,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues "/repos/{owner}/{repo}/issues/{issue_number}/assignees": post: summary: Add assignees to an issue @@ -28406,7 +27865,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues delete: summary: Unlock an issue description: Users with push access can unlock an issue's conversation. @@ -28431,7 +27890,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: issues - subcategory: + subcategory: issues "/repos/{owner}/{repo}/issues/{issue_number}/reactions": get: summary: List reactions for an issue @@ -28487,7 +27946,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for an issue description: Create a reaction to an [issue](https://docs.github.com/rest/reference/issues/). @@ -28554,7 +28013,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": delete: summary: Delete an issue reaction @@ -28580,7 +28039,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/issues/{issue_number}/timeline": get: summary: List timeline events for an issue @@ -28655,6 +28114,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys post: summary: Create a deploy key description: You can create a read-only deploy key. @@ -28718,6 +28178,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys "/repos/{owner}/{repo}/keys/{key_id}": get: summary: Get a deploy key @@ -28748,6 +28209,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys delete: summary: Delete a deploy key description: Deploy keys are immutable. If you need to update a key, remove @@ -28769,6 +28231,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: deploy-keys + subcategory: deploy-keys "/repos/{owner}/{repo}/labels": get: summary: List labels for a repository @@ -29022,7 +28485,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/lfs": put: summary: Enable Git LFS for a repository @@ -29103,7 +28566,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: licenses - subcategory: + subcategory: licenses "/repos/{owner}/{repo}/merge-upstream": post: summary: Sync a fork branch with the upstream repository @@ -29153,6 +28616,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/merges": post: summary: Merge a branch @@ -29218,6 +28682,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: branches + subcategory: branches "/repos/{owner}/{repo}/milestones": get: summary: List milestones @@ -29638,6 +29103,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages post: summary: Create a GitHub Pages site description: |- @@ -29719,6 +29185,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages put: summary: Update information about a GitHub Pages site description: |- @@ -29819,6 +29286,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages delete: summary: Delete a GitHub Pages site description: |- @@ -29847,6 +29315,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/builds": get: summary: List GitHub Pages builds @@ -29884,6 +29353,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages post: summary: Request a GitHub Pages build description: |- @@ -29913,6 +29383,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/builds/latest": get: summary: Get latest Pages build @@ -29943,6 +29414,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/builds/{build_id}": get: summary: Get GitHub Pages build @@ -29978,6 +29450,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/deployment": post: summary: Create a GitHub Pages deployment @@ -30051,6 +29524,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/pages/health": get: summary: Get a DNS health check for GitHub Pages @@ -30098,6 +29572,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pages + subcategory: pages "/repos/{owner}/{repo}/projects": get: summary: List repository projects @@ -30156,7 +29631,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects post: summary: Create a repository project description: Creates a repository project board. Returns a `410 Gone` status @@ -30216,7 +29691,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/repos/{owner}/{repo}/pulls": get: summary: List pull requests @@ -30309,7 +29784,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls post: summary: Create a pull request description: |- @@ -30410,7 +29885,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/comments": get: summary: List review comments in a repository @@ -30617,7 +30092,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a pull request review comment description: Create a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#comments). @@ -30684,7 +30159,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": delete: summary: Delete a pull request comment reaction @@ -30710,7 +30185,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/pulls/{pull_number}": get: summary: Get a pull request @@ -30763,7 +30238,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls patch: summary: Update a pull request description: |- @@ -30834,7 +30309,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/codespaces": post: summary: Create a codespace from a pull request @@ -30940,7 +30415,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/repos/{owner}/{repo}/pulls/{pull_number}/comments": get: summary: List review comments on a pull request @@ -31224,7 +30699,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/files": get: summary: List pull requests files @@ -31267,7 +30742,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/merge": get: summary: Check if a pull request has been merged @@ -31293,7 +30768,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls put: summary: Merge a pull request description: |- @@ -31390,7 +30865,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": get: summary: Get all requested reviewers for a pull request @@ -32042,7 +31517,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: pulls - subcategory: + subcategory: pulls "/repos/{owner}/{repo}/readme": get: summary: Get a repository README @@ -32146,7 +31621,7 @@ paths: operationId: repos/list-releases externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#list-releases + url: https://docs.github.com/rest/releases/releases#list-releases parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32172,7 +31647,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases post: summary: Create a release @@ -32286,7 +31761,7 @@ paths: triggersNotification: true githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/assets/{asset_id}": get: @@ -32300,7 +31775,7 @@ paths: operationId: repos/get-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-a-release-asset + url: https://docs.github.com/rest/releases/assets#get-a-release-asset parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32322,8 +31797,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets patch: summary: Update a release asset description: Users with push access to the repository can edit a release asset. @@ -32332,7 +31807,7 @@ paths: operationId: repos/update-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#update-a-release-asset + url: https://docs.github.com/rest/releases/assets#update-a-release-asset parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32372,8 +31847,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets delete: summary: Delete a release asset description: '' @@ -32382,7 +31857,7 @@ paths: operationId: repos/delete-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#delete-a-release-asset + url: https://docs.github.com/rest/releases/assets#delete-a-release-asset parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32393,8 +31868,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets "/repos/{owner}/{repo}/releases/generate-notes": post: summary: Generate release notes content for a release @@ -32408,7 +31883,7 @@ paths: operationId: repos/generate-release-notes externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#generate-release-notes + url: https://docs.github.com/rest/releases/releases#generate-release-notes parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32465,7 +31940,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/latest": get: @@ -32479,7 +31954,7 @@ paths: operationId: repos/get-latest-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-the-latest-release + url: https://docs.github.com/rest/releases/releases#get-the-latest-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32496,7 +31971,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/tags/{tag}": get: @@ -32507,7 +31982,7 @@ paths: operationId: repos/get-release-by-tag externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name + url: https://docs.github.com/rest/releases/releases#get-a-release-by-tag-name parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32533,7 +32008,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/{release_id}": get: @@ -32545,7 +32020,7 @@ paths: operationId: repos/get-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#get-a-release + url: https://docs.github.com/rest/releases/releases#get-a-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32566,7 +32041,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases patch: summary: Update a release @@ -32576,7 +32051,7 @@ paths: operationId: repos/update-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#update-a-release + url: https://docs.github.com/rest/releases/releases#update-a-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32658,7 +32133,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases delete: summary: Delete a release @@ -32668,7 +32143,7 @@ paths: operationId: repos/delete-release externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#delete-a-release + url: https://docs.github.com/rest/releases/releases#delete-a-release parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32679,7 +32154,7 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos + category: releases subcategory: releases "/repos/{owner}/{repo}/releases/{release_id}/assets": get: @@ -32690,7 +32165,7 @@ paths: operationId: repos/list-release-assets externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#list-release-assets + url: https://docs.github.com/rest/releases/assets#list-release-assets parameters: - "$ref": "#/components/parameters/owner" - "$ref": "#/components/parameters/repo" @@ -32715,8 +32190,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets post: summary: Upload a release asset description: "This endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) @@ -32749,7 +32224,7 @@ paths: operationId: repos/upload-release-asset externalDocs: description: API method documentation - url: https://docs.github.com/rest/reference/repos#upload-a-release-asset + url: https://docs.github.com/rest/releases/assets#upload-a-release-asset servers: - url: https://uploads.github.com description: The URL origin (protocol + host name + port) is included in `upload_url` @@ -32794,8 +32269,8 @@ paths: x-github: githubCloudOnly: false enabledForGitHubApps: true - category: repos - subcategory: releases + category: releases + subcategory: assets "/repos/{owner}/{repo}/releases/{release_id}/reactions": get: summary: List reactions for a release @@ -32847,7 +32322,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions post: summary: Create reaction for a release description: 'Create a reaction to a [release](https://docs.github.com/rest/reference/repos#releases). @@ -32912,7 +32387,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}": delete: summary: Delete a release reaction @@ -32938,7 +32413,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: reactions - subcategory: + subcategory: reactions "/repos/{owner}/{repo}/rules/branches/{branch}": get: summary: Get rules for a branch @@ -33055,17 +32530,6 @@ paths: - tag enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" - bypass_mode: - type: string - description: The permission level required to bypass this ruleset. - "repository" allows those with bypass permission at the repository - level to bypass. "organization" allows those with bypass permission - at the organization level to bypass. "none" prevents anyone from - bypassing. - enum: - - none - - repository - - organization bypass_actors: type: array description: The actors that can bypass the rules in this ruleset @@ -33087,10 +32551,10 @@ paths: name: super cool ruleset target: branch enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -33205,17 +32669,6 @@ paths: - tag enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" - bypass_mode: - type: string - description: The permission level required to bypass this ruleset. - "repository" allows those with bypass permission at the repository - level to bypass. "organization" allows those with bypass permission - at the organization level to bypass. "none" prevents anyone from - bypassing. - enum: - - none - - repository - - organization bypass_actors: type: array description: The actors that can bypass the rules in this ruleset @@ -33234,10 +32687,10 @@ paths: name: super cool ruleset target: branch enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -33342,7 +32795,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}": get: summary: Get a secret scanning alert @@ -33383,7 +32836,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning patch: summary: Update a secret scanning alert description: |- @@ -33446,6 +32899,7 @@ paths: enabledForGitHubApps: true githubCloudOnly: false category: secret-scanning + subcategory: secret-scanning "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations": get: summary: List locations for a secret scanning alert @@ -33492,7 +32946,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: secret-scanning - subcategory: + subcategory: secret-scanning "/repos/{owner}/{repo}/security-advisories": get: summary: List repository security advisories @@ -34351,7 +33805,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/tags/protection": get: summary: List tag protection states for a repository @@ -34548,7 +34002,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/topics": get: summary: Get all repository topics @@ -34580,7 +34034,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos put: summary: Replace all repository topics description: '' @@ -34636,7 +34090,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/traffic/clones": get: summary: Get repository clones @@ -34828,7 +34282,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/vulnerability-alerts": get: summary: Check if vulnerability alerts are enabled for a repository @@ -34853,7 +34307,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos put: summary: Enable vulnerability alerts description: Enables dependency alerts and the dependency graph for a repository. @@ -34875,7 +34329,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos delete: summary: Disable vulnerability alerts description: |- @@ -34898,7 +34352,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repos/{owner}/{repo}/zipball/{ref}": get: summary: Download a repository archive (zip) @@ -35023,7 +34477,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos "/repositories": get: summary: List public repositories @@ -35066,7 +34520,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/repositories/{repository_id}/environments/{environment_name}/secrets": get: summary: List environment secrets @@ -35628,7 +35082,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/commits": get: summary: Search commits @@ -35701,7 +35155,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/issues": get: summary: Search issues and pull requests @@ -35717,7 +35171,7 @@ paths: This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. - **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + **Note:** For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." tags: - search operationId: search/issues-and-pull-requests @@ -35796,7 +35250,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/labels": get: summary: Search labels @@ -35879,7 +35333,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/repositories": get: summary: Search repositories @@ -35960,7 +35414,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/topics": get: summary: Search topics @@ -36021,7 +35475,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/search/users": get: summary: Search users @@ -36102,7 +35556,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: search - subcategory: + subcategory: search "/teams/{team_id}": get: summary: Get a team (Legacy) @@ -36136,7 +35590,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true patch: summary: Update a team (Legacy) @@ -36242,7 +35696,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true delete: summary: Delete a team (Legacy) @@ -36273,7 +35727,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/discussions": get: @@ -36751,7 +36205,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true post: summary: Create reaction for a team discussion comment (Legacy) @@ -36811,7 +36265,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true "/teams/{team_id}/discussions/{discussion_number}/reactions": get: @@ -36868,7 +36322,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true post: summary: Create reaction for a team discussion (Legacy) @@ -36927,7 +36381,7 @@ paths: removalDate: '2021-02-21' deprecationDate: '2020-02-26' category: reactions - subcategory: + subcategory: reactions deprecated: true "/teams/{team_id}/invitations": get: @@ -37311,7 +36765,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/projects/{project_id}": get: @@ -37347,7 +36801,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true put: summary: Add or update team project permissions (Legacy) @@ -37417,7 +36871,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true delete: summary: Remove a project from a team (Legacy) @@ -37447,7 +36901,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/repos": get: @@ -37489,7 +36943,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/repos/{owner}/{repo}": get: @@ -37530,7 +36984,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true put: summary: Add or update team repository permissions (Legacy) @@ -37585,7 +37039,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true delete: summary: Remove a repository from a team (Legacy) @@ -37612,7 +37066,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/teams/{team_id}/teams": get: @@ -37658,7 +37112,7 @@ paths: removalDate: '2021-02-01' deprecationDate: '2020-01-21' category: teams - subcategory: + subcategory: teams deprecated: true "/user": get: @@ -37698,7 +37152,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: users - subcategory: + subcategory: users patch: summary: Update the authenticated user description: "**Note:** If your email is set to private and you send an `email` @@ -37780,7 +37234,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: users - subcategory: + subcategory: users "/user/blocks": get: summary: List users blocked by the authenticated user @@ -37963,7 +37417,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces post: summary: Create a codespace for the authenticated user description: |- @@ -38121,7 +37575,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/secrets": get: summary: List secrets for the authenticated user @@ -38623,7 +38077,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces patch: summary: Update a codespace for the authenticated user description: |- @@ -38686,7 +38140,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces delete: summary: Delete a codespace for the authenticated user description: |- @@ -38720,7 +38174,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/exports": post: summary: Export a codespace for the authenticated user @@ -38764,7 +38218,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/exports/{export_id}": get: summary: Get details about a codespace export @@ -38799,7 +38253,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/machines": get: summary: List machine types for a codespace @@ -38913,7 +38367,7 @@ paths: x-github: githubCloudOnly: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/start": post: summary: Start a codespace for the authenticated user @@ -38965,7 +38419,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/codespaces/{codespace_name}/stop": post: summary: Stop a codespace for the authenticated user @@ -39005,7 +38459,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: codespaces - subcategory: + subcategory: codespaces "/user/docker/conflicts": get: summary: Get list of conflicting packages during Docker migration for authenticated-user @@ -39034,7 +38488,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/email/visibility": patch: summary: Set primary email visibility for the authenticated user @@ -39623,7 +39077,7 @@ paths: description: |- Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. - You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. @@ -39680,7 +39134,7 @@ paths: The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. The access the user has to each repository is included in the hash under the `permissions` key. tags: @@ -39967,7 +39421,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: issues - subcategory: + subcategory: issues "/user/keys": get: summary: List public SSH keys for the authenticated user @@ -40139,10 +39593,10 @@ paths: "/user/marketplace_purchases": get: summary: List subscriptions for the authenticated user - description: Lists the active subscriptions for the authenticated user. You - must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), + description: Lists the active subscriptions for the authenticated user. GitHub + Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. - . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). tags: - apps operationId: apps/list-subscriptions-for-authenticated-user @@ -40181,10 +39635,10 @@ paths: "/user/marketplace_purchases/stubbed": get: summary: List subscriptions for the authenticated user (stubbed) - description: Lists the active subscriptions for the authenticated user. You - must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), + description: Lists the active subscriptions for the authenticated user. GitHub + Apps must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint. - . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + OAuth apps must authenticate using an [OAuth token](https://docs.github.com/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps). tags: - apps operationId: apps/list-subscriptions-for-authenticated-user-stubbed @@ -40745,7 +40199,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: orgs - subcategory: + subcategory: orgs "/user/packages": get: summary: List packages for the authenticated user's namespace @@ -40798,7 +40252,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}": get: summary: Get a package for the authenticated user @@ -40829,7 +40283,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package for the authenticated user description: |- @@ -40859,7 +40313,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/restore": post: summary: Restore a package for the authenticated user @@ -40899,7 +40353,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/versions": get: summary: List package versions for a package owned by the authenticated user @@ -40950,7 +40404,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/versions/{package_version_id}": get: summary: Get a package version for the authenticated user @@ -40982,7 +40436,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package version for the authenticated user description: |- @@ -41013,7 +40467,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore": post: summary: Restore a package version for the authenticated user @@ -41048,7 +40502,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/user/projects": post: summary: Create a user project @@ -41110,7 +40564,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: projects - subcategory: + subcategory: projects "/user/public_emails": get: summary: List public email addresses for the authenticated user @@ -41254,7 +40708,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos post: summary: Create a repository for the authenticated user description: |- @@ -41455,7 +40909,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: repos - subcategory: + subcategory: repos "/user/repository_invitations": get: summary: List repository invitations for the authenticated user @@ -42118,7 +41572,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: teams - subcategory: + subcategory: teams "/users": get: summary: List users @@ -42158,7 +41612,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: users - subcategory: + subcategory: users "/users/{username}": get: summary: Get a user @@ -42198,7 +41652,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: users - subcategory: + subcategory: users "/users/{username}/docker/conflicts": get: summary: Get list of conflicting packages during Docker migration for user @@ -42233,7 +41687,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/events": get: summary: List events for the authenticated user @@ -42461,7 +41915,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: gists - subcategory: + subcategory: gists "/users/{username}/gpg_keys": get: summary: List GPG keys for a user @@ -42555,7 +42009,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: users - subcategory: + subcategory: users "/users/{username}/installation": get: summary: Get a user installation for the authenticated app @@ -42585,7 +42039,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: apps - subcategory: + subcategory: apps "/users/{username}/keys": get: summary: List public keys for a user @@ -42657,7 +42111,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: orgs - subcategory: + subcategory: orgs "/users/{username}/packages": get: summary: List packages for a user @@ -42715,7 +42169,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}": get: summary: Get a package for a user @@ -42747,7 +42201,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete a package for a user description: |- @@ -42779,7 +42233,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/restore": post: summary: Restore a package for a user @@ -42822,7 +42276,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/versions": get: summary: List package versions for a package owned by a user @@ -42862,7 +42316,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}": get: summary: Get a package version for a user @@ -42895,7 +42349,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages delete: summary: Delete package version for a user description: |- @@ -42928,7 +42382,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore": post: summary: Restore package version for a user @@ -42966,7 +42420,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: packages - subcategory: + subcategory: packages "/users/{username}/projects": get: summary: List user projects @@ -43013,7 +42467,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: projects - subcategory: + subcategory: projects "/users/{username}/received_events": get: summary: List events received by the authenticated user @@ -43145,7 +42599,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: repos - subcategory: + subcategory: repos "/users/{username}/settings/billing/actions": get: summary: Get GitHub Actions billing for a user @@ -43177,7 +42631,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/users/{username}/settings/billing/packages": get: summary: Get GitHub Packages billing for a user @@ -43209,7 +42663,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/users/{username}/settings/billing/shared-storage": get: summary: Get shared storage billing for a user @@ -43241,7 +42695,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: false category: billing - subcategory: + subcategory: billing "/users/{username}/social_accounts": get: summary: List social accounts for a user @@ -43422,7 +42876,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta - subcategory: + subcategory: meta "/zen": get: summary: Get the Zen of GitHub @@ -43448,6 +42902,7 @@ paths: githubCloudOnly: false enabledForGitHubApps: true category: meta + subcategory: meta x-webhooks: branch-protection-rule-created: post: @@ -46863,7 +46318,7 @@ x-webhooks: A GitHub App receives this webhook by default and cannot unsubscribe from this event. - Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about user-to-server requests, which require GitHub App authorization, see "[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)." + Anyone can revoke their authorization of a GitHub App from their [GitHub account settings page](https://github.com/settings/apps/authorizations). Revoking the authorization of a GitHub App does not uninstall the GitHub App. You should program your GitHub App so that when it receives this webhook, it stops calling the API on behalf of the person who revoked the token. If your GitHub App continues to use a revoked access token, it will receive the `401 Bad Credentials` error. For details about requests with a user access token, which require GitHub App authorization, see "[Authenticating with a GitHub App on behalf of a user](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-with-a-github-app-on-behalf-of-a-user)." description: Someone revoked their authorization of a GitHub App. operationId: github-app-authorization/revoked externalDocs: @@ -59563,7 +59018,7 @@ components: app-permissions: title: App Permissions type: object - description: The permissions granted to the user-to-server access token. + description: The permissions granted to the user access token. properties: actions: type: string @@ -63203,6 +62658,17 @@ components: enum: - enabled - disabled + dependabot_security_updates: + description: Enable or disable Dependabot security updates for the repository. + type: object + properties: + status: + description: The enablement status of Dependabot security updates for + the repository. + type: string + enum: + - enabled + - disabled secret_scanning: type: object properties: @@ -63782,10 +63248,6 @@ components: type: string format: uri example: https://github.com/octocat - created_at: - type: string - format: date-time - example: '2008-01-14T04:33:35Z' type: type: string example: Organization @@ -63868,9 +63330,6 @@ components: web_commit_signoff_required: type: boolean example: false - updated_at: - type: string - format: date-time advanced_security_enabled_for_new_repositories: type: boolean example: false @@ -63929,6 +63388,17 @@ components: nullable: true description: An optional URL string to display to contributors who are blocked from pushing a secret. + created_at: + type: string + format: date-time + example: '2008-01-14T04:33:35Z' + updated_at: + type: string + format: date-time + archived_at: + type: string + format: date-time + nullable: true required: - login - url @@ -63952,6 +63422,7 @@ components: - type - created_at - updated_at + - archived_at actions-cache-usage-org-enterprise: type: object properties: @@ -64091,55 +63562,6 @@ components: "$ref": "#/components/schemas/actions-default-workflow-permissions" can_approve_pull_request_reviews: "$ref": "#/components/schemas/actions-can-approve-pull-request-reviews" - required-workflow: - type: object - properties: - id: - description: Unique identifier for a required workflow - type: number - name: - description: Name present in the workflow file - type: string - path: - description: Path of the workflow file - type: string - scope: - description: Scope of the required workflow - enum: - - all - - selected - type: string - ref: - description: Ref at which the workflow file will be selected - type: string - state: - description: State of the required workflow - enum: - - active - - deleted - type: string - selected_repositories_url: - type: string - format: uri - example: https://api.github.com/organizations/org/actions/required_workflows/1/repositories - created_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - repository: - "$ref": "#/components/schemas/minimal-repository" - required: - - id - - name - - path - - scope - - ref - - state - - created_at - - updated_at - - repository runner-label: title: Self hosted runner label description: A label for a self hosted runner @@ -64369,7 +63791,7 @@ components: type: string description: The GUID of the tool used to generate the code scanning analysis, if provided in the uploaded SARIF data. - code-scanning-alert-state: + code-scanning-alert-state-query: type: string description: State of a code scanning alert. enum: @@ -64393,6 +63815,13 @@ components: description: The REST API URL for fetching the list of instances for an alert. format: uri readOnly: true + code-scanning-alert-state: + type: string + description: State of a code scanning alert. + enum: + - open + - dismissed + - fixed code-scanning-alert-dismissed-reason: type: string description: "**Required when the state is dismissed.** The reason for dismissing @@ -66108,6 +65537,10 @@ components: title: Repository Ruleset Bypass Actor type: object description: An actor that can bypass rules in a ruleset + required: + - actor_id + - actor_type + - bypass_mode properties: actor_id: type: integer @@ -66115,9 +65548,18 @@ components: actor_type: type: string enum: + - RepositoryRole - Team - Integration + - OrganizationAdmin description: The type of actor that can bypass a ruleset + bypass_mode: + type: string + description: When the specified actor can bypass the ruleset. `pull_request` + means that an actor can only bypass rules on pull requests. + enum: + - always + - pull_request repository-ruleset-conditions: title: Repository ruleset conditions for ref names type: object @@ -66163,13 +65605,35 @@ components: protected: type: boolean description: Whether renaming of target repositories is prevented. + required: + - repository_name + repository-ruleset-conditions-repository-id-target: + title: Repository ruleset conditions for repository IDs + type: object + description: Parameters for a repository ID condition + properties: + repository_id: + type: object + properties: + repository_ids: + type: array + description: The repository IDs that the ruleset applies to. One of + these IDs must match for the condition to pass. + items: + type: integer + required: + - repository_id org-ruleset-conditions: title: Organization ruleset conditions type: object description: Conditions for a organization ruleset - allOf: - - "$ref": "#/components/schemas/repository-ruleset-conditions" - - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-name-target" + oneOf: + - allOf: + - "$ref": "#/components/schemas/repository-ruleset-conditions" + - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-name-target" + - allOf: + - "$ref": "#/components/schemas/repository-ruleset-conditions" + - "$ref": "#/components/schemas/repository-ruleset-conditions-repository-id-target" repository-rule-creation: title: creation description: Only allow users with bypass permission to create matching refs. @@ -66181,6 +65645,20 @@ components: type: string enum: - creation + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-update: title: update description: Only allow users with bypass permission to update matching refs. @@ -66192,6 +65670,20 @@ components: type: string enum: - update + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66211,6 +65703,20 @@ components: type: string enum: - deletion + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-required-linear-history: title: required_linear_history description: Prevent merge commits from being pushed to matching branches. @@ -66222,6 +65728,20 @@ components: type: string enum: - required_linear_history + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-required-deployments: title: required_deployments description: Choose which environments must be successfully deployed to before @@ -66234,6 +65754,20 @@ components: type: string enum: - required_deployments + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66256,6 +65790,20 @@ components: type: string enum: - required_signatures + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-pull-request: title: pull_request description: Require all commits be made to a non-target branch and submitted @@ -66268,6 +65816,20 @@ components: type: string enum: - pull_request + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66327,6 +65889,20 @@ components: type: string enum: - required_status_checks + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66354,6 +65930,20 @@ components: type: string enum: - non_fast_forward + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in repository-rule-commit-message-pattern: title: commit_message_pattern description: Parameters to be used for the commit_message_pattern rule @@ -66365,6 +65955,20 @@ components: type: string enum: - commit_message_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66399,6 +66003,20 @@ components: type: string enum: - commit_author_email_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66433,6 +66051,20 @@ components: type: string enum: - committer_email_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66467,6 +66099,20 @@ components: type: string enum: - branch_name_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66501,6 +66147,20 @@ components: type: string enum: - tag_name_pattern + ruleset_source_type: + type: string + description: The type of source of the ruleset that this rule is configured + in + enum: + - Repository + - Organization + ruleset_source: + type: string + description: The name of the source of the ruleset that this rule is configured + in + ruleset_id: + type: integer + description: The ID of the ruleset that this rule is configured in parameters: type: object properties: @@ -66576,21 +66236,16 @@ components: description: The name of the source enforcement: "$ref": "#/components/schemas/repository-rule-enforcement" - bypass_mode: - type: string - description: The permission level required to bypass this ruleset. "repository" - allows those with bypass permission at the repository level to bypass. - "organization" allows those with bypass permission at the organization - level to bypass. "none" prevents anyone from bypassing. - enum: - - none - - repository - - organization bypass_actors: type: array description: The actors that can bypass the rules in this ruleset items: "$ref": "#/components/schemas/repository-ruleset-bypass-actor" + current_user_can_bypass: + type: boolean + description: |- + Whether the user making this API request is able to bypass the ruleset. This field is only returned when + querying the repository-level endpoint. node_id: type: string _links: @@ -66968,6 +66623,10 @@ components: updated_at: type: string format: date-time + archived_at: + type: string + format: date-time + nullable: true required: - login - url @@ -66991,6 +66650,7 @@ components: - type - created_at - updated_at + - archived_at team-full: title: Full Team description: Groups of organization members that gives permissions on specified @@ -68526,6 +68186,12 @@ components: - watchers_count - created_at - updated_at + code-scanning-query-suite: + description: The CodeQL query suite to use. + type: string + enum: + - default + - extended project-card: title: Project Card description: Project cards represent a scope of work. @@ -68696,85 +68362,6 @@ components: required: - rate - resources - repo-required-workflow: - title: Required workflow - description: A GitHub Actions required workflow - type: object - properties: - id: - type: integer - example: 5 - node_id: - type: string - example: MDg6V29ya2Zsb3cxMg== - name: - type: string - example: Required CI - path: - type: string - example: ".github/workflows/required_ci.yaml" - state: - type: string - example: active - enum: - - active - - deleted - source_repository: - "$ref": "#/components/schemas/minimal-repository" - created_at: - type: string - format: date-time - example: '2019-12-06T14:20:20.000Z' - updated_at: - type: string - format: date-time - example: '2019-12-06T14:20:20.000Z' - url: - type: string - example: https://api.github.com/repos/sample-org/sample-repo/actions/required_workflows/5 - html_url: - type: string - example: https://github.com/sample-org/source-repo/blob/main/.github/workflows/required_ci.yaml - badge_url: - type: string - example: https://github.com/sample-org/sample-repo/workflows/required/sample-org/source-repo/.github/workflows/required_ci.yaml/badge.svg - required: - - id - - node_id - - name - - path - - state - - source_repository - - url - - html_url - - badge_url - - created_at - - updated_at - workflow-usage: - title: Workflow Usage - description: Workflow Usage - type: object - properties: - billable: - type: object - properties: - UBUNTU: - type: object - properties: - total_ms: - type: integer - MACOS: - type: object - properties: - total_ms: - type: integer - WINDOWS: - type: object - properties: - total_ms: - type: integer - required: - - billable code-of-conduct-simple: title: Code Of Conduct Simple description: Code of Conduct Simple @@ -69867,6 +69454,9 @@ components: type: string example: https://github.com/github/hello-world/suites/4 pull_requests: + description: Pull requests that are open with a `head_sha` or `head_branch` + that matches the workflow run. The returned pull requests do not necessarily + indicate pull requests that triggered the run. type: array nullable: true items: @@ -70343,6 +69933,31 @@ components: - badge_url - created_at - updated_at + workflow-usage: + title: Workflow Usage + description: Workflow Usage + type: object + properties: + billable: + type: object + properties: + UBUNTU: + type: object + properties: + total_ms: + type: integer + MACOS: + type: object + properties: + total_ms: + type: integer + WINDOWS: + type: object + properties: + total_ms: + type: integer + required: + - billable autolink: title: Autolink reference description: An autolink reference. @@ -71414,6 +71029,9 @@ components: app: "$ref": "#/components/schemas/nullable-integration" pull_requests: + description: Pull requests that are open with a `head_sha` or `head_branch` + that matches the check. The returned pull requests do not necessarily + indicate pull requests that triggered the check. type: array items: "$ref": "#/components/schemas/pull-request-minimal" @@ -71972,6 +71590,7 @@ components: - python - ruby - typescript + - swift query_suite: description: CodeQL query suite to be used. type: string @@ -71996,11 +71615,7 @@ components: - configured - not-configured query_suite: - description: CodeQL query suite to be used. - type: string - enum: - - default - - extended + "$ref": "#/components/schemas/code-scanning-query-suite" languages: description: 'CodeQL languages to be analyzed. Supported values are: `c-cpp`, `csharp`, `go`, `java-kotlin`, `javascript-typescript`, `python`, and @@ -72016,6 +71631,7 @@ components: - javascript-typescript - python - ruby + - swift required: - state code-scanning-default-setup-update-response: @@ -79149,6 +78765,7 @@ components: - actions - pub - other + - swift repository-advisory-vulnerability: description: A product affected by the vulnerability detailed in a repository security advisory. @@ -83131,9 +82748,6 @@ components: type: string enum: - completed - actions_meta: - type: object - nullable: true check_suite: description: The [check_suite](https://docs.github.com/rest/reference/checks#suites). type: object @@ -83733,9 +83347,6 @@ components: type: string enum: - requested - actions_meta: - type: object - nullable: true check_suite: description: The [check_suite](https://docs.github.com/rest/reference/checks#suites). type: object @@ -84334,19 +83945,6 @@ components: type: string enum: - rerequested - actions_meta: - type: object - nullable: true - properties: - rerun_info: - type: object - properties: - plan_id: - type: string - job_ids: - type: array - items: - type: string check_suite: description: The [check_suite](https://docs.github.com/rest/reference/checks#suites). type: object @@ -92836,6 +92434,9 @@ components: account: type: object properties: + archived_at: + type: string + nullable: true avatar_url: type: string created_at: @@ -202182,6 +201783,7 @@ components: members_can_fork_private_repositories: false web_commit_signoff_required: false updated_at: '2014-03-03T18:58:10Z' + archived_at: dependency_graph_enabled_for_new_repositories: false dependabot_alerts_enabled_for_new_repositories: false dependabot_security_updates_enabled_for_new_repositories: false @@ -202347,239 +201949,6 @@ components: value: default_workflow_permissions: read can_approve_pull_request_reviews: true - required-workflows-paginated: - value: - total_count: 2 - required_workflows: - - id: 30433642 - name: Required CI - path: ".github/workflows/ci.yml" - scope: selected - ref: refs/head/main - state: active - selected_repositories_url: https://api.github.com/organizations/org/actions/required_workflows/1/repositories - created_at: '2020-01-22T19:33:08Z' - updated_at: '2020-01-22T19:33:08Z' - repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octocat/Hello-World/hooks - - id: 30433643 - name: Required Linter - path: ".github/workflows/lint.yml" - scope: all - ref: refs/head/main - state: active - created_at: '2020-01-22T19:33:08Z' - updated_at: '2020-01-22T19:33:08Z' - repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octocat/Hello-World/hooks - required-workflow: - value: - id: 30433642 - name: Required CI - path: ".github/workflows/ci.yml" - scope: selected - ref: refs/head/main - state: active - selected_repositories_url: https://api.github.com/orgs/octo-org/actions/required_workflows/1/repositories - created_at: '2020-01-22T19:33:08Z' - updated_at: '2020-01-22T19:33:08Z' - repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octocat/Hello-World/hooks runner-paginated: value: total_count: 2 @@ -204949,7 +204318,6 @@ components: source_type: Organization source: my-org enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQB _links: self: @@ -204963,7 +204331,6 @@ components: source_type: Organization source: my-org enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQQ _links: self: @@ -204980,10 +204347,10 @@ components: source_type: Organization source: my-org enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -205928,175 +205295,6 @@ components: remaining: 4999 reset: 1372700873 used: 1 - repo-required-workflow-paginated: - value: - total_count: 1 - required_workflows: - - id: 161335 - node_id: MDg6V29ya2Zsb3cxNjEzMzU= - name: RequiredCI - path: ".github/workflows/required_ci.yaml" - state: active - created_at: '2020-01-08T23:48:37.000-08:00' - updated_at: '2020-01-08T23:50:21.000-08:00' - url: https://api.github.com/repos/octo-org/octo-repo/actions/required_workflows/161335 - html_url: https://github.com/octo-org/octo-repo/blob/master/octo-org/hello-world/.github/workflows/required_ci.yaml - badge_url: https://github.com/octo-org/octo-repo/workflows/required/octo-org/hello-world/.github/workflows/required_ci.yaml/badge.svg - source_repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octo-org/Hello-World - owner: - login: octo-org - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octo-org_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octo-org - html_url: https://github.com/octo-org - followers_url: https://api.github.com/users/octo-org/followers - following_url: https://api.github.com/users/octo-org/following{/other_user} - gists_url: https://api.github.com/users/octo-org/gists{/gist_id} - starred_url: https://api.github.com/users/octo-org/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octo-org/subscriptions - organizations_url: https://api.github.com/users/octo-org/orgs - repos_url: https://api.github.com/users/octo-org/repos - events_url: https://api.github.com/users/octo-org/events{/privacy} - received_events_url: https://api.github.com/users/octo-org/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octo-org/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octo-org/Hello-World - archive_url: https://api.github.com/repos/octo-org/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octo-org/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octo-org/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octo-org/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octo-org/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octo-org/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octo-org/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octo-org/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octo-org/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octo-org/Hello-World/contributors - deployments_url: https://api.github.com/repos/octo-org/Hello-World/deployments - downloads_url: https://api.github.com/repos/octo-org/Hello-World/downloads - events_url: https://api.github.com/repos/octo-org/Hello-World/events - forks_url: https://api.github.com/repos/octo-org/Hello-World/forks - git_commits_url: https://api.github.com/repos/octo-org/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octo-org/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octo-org/Hello-World/git/tags{/sha} - git_url: git:github.com/octo-org/Hello-World.git - issue_comment_url: https://api.github.com/repos/octo-org/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octo-org/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octo-org/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octo-org/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octo-org/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octo-org/Hello-World/languages - merges_url: https://api.github.com/repos/octo-org/Hello-World/merges - milestones_url: https://api.github.com/repos/octo-org/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octo-org/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octo-org/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octo-org/Hello-World/releases{/id} - ssh_url: git@github.com:octo-org/Hello-World.git - stargazers_url: https://api.github.com/repos/octo-org/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octo-org/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octo-org/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octo-org/Hello-World/subscription - tags_url: https://api.github.com/repos/octo-org/Hello-World/tags - teams_url: https://api.github.com/repos/octo-org/Hello-World/teams - trees_url: https://api.github.com/repos/octo-org/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octo-org/Hello-World/hooks - repo-required-workflow: - value: - id: 161335 - node_id: MDg6V29ya2Zsb3cxNjEzMzU= - name: RequiredCI - path: ".github/workflows/required_ci.yaml" - state: active - created_at: '2020-01-08T23:48:37.000-08:00' - updated_at: '2020-01-08T23:50:21.000-08:00' - url: https://api.github.com/repos/octo-org/octo-repo/actions/required_workflows/161335 - html_url: https://github.com/octo-org/octo-repo/blob/master/octo-org/hello-world/.github/workflows/required_ci.yaml - badge_url: https://github.com/octo-org/octo-repo/workflows/required/octo-org/hello-world/.github/workflows/required_ci.yaml/badge.svg - source_repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octo-org/Hello-World - owner: - login: octo-org - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octo-org_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octo-org - html_url: https://github.com/octo-org - followers_url: https://api.github.com/users/octo-org/followers - following_url: https://api.github.com/users/octo-org/following{/other_user} - gists_url: https://api.github.com/users/octo-org/gists{/gist_id} - starred_url: https://api.github.com/users/octo-org/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octo-org/subscriptions - organizations_url: https://api.github.com/users/octo-org/orgs - repos_url: https://api.github.com/users/octo-org/repos - events_url: https://api.github.com/users/octo-org/events{/privacy} - received_events_url: https://api.github.com/users/octo-org/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octo-org/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octo-org/Hello-World - archive_url: https://api.github.com/repos/octo-org/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octo-org/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octo-org/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octo-org/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octo-org/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octo-org/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octo-org/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octo-org/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octo-org/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octo-org/Hello-World/contributors - deployments_url: https://api.github.com/repos/octo-org/Hello-World/deployments - downloads_url: https://api.github.com/repos/octo-org/Hello-World/downloads - events_url: https://api.github.com/repos/octo-org/Hello-World/events - forks_url: https://api.github.com/repos/octo-org/Hello-World/forks - git_commits_url: https://api.github.com/repos/octo-org/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octo-org/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octo-org/Hello-World/git/tags{/sha} - git_url: git:github.com/octo-org/Hello-World.git - issue_comment_url: https://api.github.com/repos/octo-org/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octo-org/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octo-org/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octo-org/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octo-org/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octo-org/Hello-World/languages - merges_url: https://api.github.com/repos/octo-org/Hello-World/merges - milestones_url: https://api.github.com/repos/octo-org/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octo-org/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octo-org/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octo-org/Hello-World/releases{/id} - ssh_url: git@github.com:octo-org/Hello-World.git - stargazers_url: https://api.github.com/repos/octo-org/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octo-org/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octo-org/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octo-org/Hello-World/subscription - tags_url: https://api.github.com/repos/octo-org/Hello-World/tags - teams_url: https://api.github.com/repos/octo-org/Hello-World/teams - trees_url: https://api.github.com/repos/octo-org/Hello-World/git/trees{/sha} - hooks_url: http://api.github.com/repos/octo-org/Hello-World/hooks - workflow-usage: - value: - billable: - UBUNTU: - total_ms: 180000 - MACOS: - total_ms: 240000 - WINDOWS: - total_ms: 300000 full-repository-default-response: summary: Default response value: @@ -207988,6 +207186,15 @@ components: url: https://api.github.com/repos/octo-org/octo-repo/actions/workflows/161335 html_url: https://github.com/octo-org/octo-repo/blob/master/.github/workflows/161335 badge_url: https://github.com/octo-org/octo-repo/workflows/CI/badge.svg + workflow-usage: + value: + billable: + UBUNTU: + total_ms: 180000 + MACOS: + total_ms: 240000 + WINDOWS: + total_ms: 300000 autolink-items: value: - id: 1 @@ -216904,10 +216111,16 @@ components: repository-rule-items: value: - type: commit_message_pattern + ruleset_source_type: Repository + ruleset_source: monalisa/my-repo + ruleset_id: 42 parameters: operator: starts_with pattern: issue - type: commit_author_email_pattern + ruleset_source_type: Organization + ruleset_source: my-org + ruleset_id: 73 parameters: operator: contains pattern: github @@ -216918,7 +216131,6 @@ components: source_type: Repository source: monalisa/my-repo enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQB _links: self: @@ -216932,7 +216144,6 @@ components: source_type: Repository source: monalisa/my-repo enforcement: enabled - bypass_mode: repository node_id: RRS_lACkVXNlcgQQ _links: self: @@ -216949,10 +216160,10 @@ components: source_type: Repository source: monalisa/my-repo enforcement: active - bypass_mode: repository bypass_actors: - actor_id: 234 actor_type: Team + bypass_mode: always conditions: ref_name: include: @@ -223884,13 +223095,6 @@ components: required: true schema: type: integer - required-workflow-id: - name: required_workflow_id - description: The unique identifier of the required workflow. - in: path - required: true - schema: - type: integer runner-id: name: runner_id description: Unique identifier of the self-hosted runner. @@ -224194,14 +223398,6 @@ components: required: true schema: type: integer - repo-required-workflow-id: - name: required_workflow_id_for_repo - in: path - description: The ID of the required workflow that has run at least once in a - repository. - required: true - schema: - type: integer artifact-id: name: artifact_id description: The unique identifier of the artifact. diff --git a/packages/openapi-typescript/examples/stripe-api.ts b/packages/openapi-typescript/examples/stripe-api.ts index 9076d7d77..412736ae1 100644 --- a/packages/openapi-typescript/examples/stripe-api.ts +++ b/packages/openapi-typescript/examples/stripe-api.ts @@ -4143,6 +4143,11 @@ export interface components { discount_amount: number; /** @description The aggregate amounts calculated per discount for all line items. */ discount_amounts: (components["schemas"]["discounts_resource_discount_amount"])[]; + /** + * Format: unix-time + * @description The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. + */ + effective_at?: number | null; /** @description Unique identifier for the object. */ id: string; /** @description ID of the invoice. */ @@ -5535,7 +5540,10 @@ export interface components { /** @description The [PaymentMethod type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account. */ supported_payment_method_types: ("link" | "us_bank_account")[]; }; - /** BankConnectionsResourceOwner */ + /** + * BankConnectionsResourceOwner + * @description Describes an owner of an account. + */ "financial_connections.account_owner": { /** @description The email address of the owner. */ email?: string | null; @@ -6262,6 +6270,11 @@ export interface components { * @description The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`. */ due_date?: number | null; + /** + * Format: unix-time + * @description The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt. + */ + effective_at?: number | null; /** @description Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null. */ ending_balance?: number | null; /** @description Footer displayed on the invoice. */ @@ -6667,10 +6680,10 @@ export interface components { /** InvoicesResourceInvoiceTaxID */ invoices_resource_invoice_tax_id: { /** - * @description The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + * @description The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` * @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; /** @description The value of the tax ID. */ value?: string | null; }; @@ -7879,6 +7892,8 @@ export interface components { * @enum {string} */ object: "mandate"; + /** @description The account (if any) for which the mandate is intended. */ + on_behalf_of?: string; /** @description ID of the payment method associated with this mandate. */ payment_method: string | components["schemas"]["payment_method"]; payment_method_details: components["schemas"]["mandate_payment_method_details"]; @@ -8939,8 +8954,12 @@ export interface components { /** @description String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters. */ key: string; label: components["schemas"]["payment_links_resource_custom_fields_label"]; + /** @description Configuration for `type=numeric` fields. */ + numeric?: components["schemas"]["payment_links_resource_custom_fields_numeric"] | null; /** @description Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. */ optional: boolean; + /** @description Configuration for `type=text` fields. */ + text?: components["schemas"]["payment_links_resource_custom_fields_text"] | null; /** * @description The type of the field. * @enum {string} @@ -8969,6 +8988,20 @@ export interface components { */ type: "custom"; }; + /** PaymentLinksResourceCustomFieldsNumeric */ + payment_links_resource_custom_fields_numeric: { + /** @description The maximum character length constraint for the customer's input. */ + maximum_length?: number | null; + /** @description The minimum character length requirement for the customer's input. */ + minimum_length?: number | null; + }; + /** PaymentLinksResourceCustomFieldsText */ + payment_links_resource_custom_fields_text: { + /** @description The maximum character length constraint for the customer's input. */ + maximum_length?: number | null; + /** @description The minimum character length requirement for the customer's input. */ + minimum_length?: number | null; + }; /** PaymentLinksResourceCustomText */ payment_links_resource_custom_text: { /** @description Custom text that should be displayed alongside shipping address collection. */ @@ -10803,10 +10836,10 @@ export interface components { /** PaymentPagesCheckoutSessionTaxID */ payment_pages_checkout_session_tax_id: { /** - * @description The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + * @description The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` * @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; /** @description The value of the tax ID. */ value?: string | null; }; @@ -13486,7 +13519,7 @@ export interface components { * * A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. * - * If subscription `collection_method=charge_automatically` it becomes `past_due` when payment to renew it fails and `canceled` or `unpaid` (depending on your subscriptions settings) when Stripe has exhausted all payment retry attempts. + * If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). * * If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. * @enum {string} @@ -14139,10 +14172,10 @@ export interface components { */ object: "tax_id"; /** - * @description Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + * @description Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` * @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; /** @description Value of the tax ID. */ value: string; /** @description Tax ID verification information. */ @@ -14182,10 +14215,10 @@ export interface components { /** TaxProductResourceCustomerDetailsResourceTaxId */ tax_product_resource_customer_details_resource_tax_id: { /** - * @description The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` + * @description The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` * @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "unknown" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; /** @description The value of the tax ID. */ value: string; }; @@ -15522,6 +15555,21 @@ export interface components { /** @description Routing number for the account. */ routing_number: string; }; + /** + * TreasuryFinancialAccountsResourceAbaToggleSettings + * @description Toggle settings for enabling/disabling the ABA address feature + */ + treasury_financial_accounts_resource_aba_toggle_settings: { + /** @description Whether the FinancialAccount should have the Feature. */ + requested: boolean; + /** + * @description Whether the Feature is operational. + * @enum {string} + */ + status: "active" | "pending" | "restricted"; + /** @description Additional details; includes at least one entry when the status is not `active`. */ + status_details: (components["schemas"]["treasury_financial_accounts_resource_toggles_setting_status_details"])[]; + }; /** * TreasuryFinancialAccountsResourceAchToggleSettings * @description Toggle settings for enabling/disabling an ACH specific feature @@ -15579,7 +15627,7 @@ export interface components { * @description Settings related to Financial Addresses features on a Financial Account */ treasury_financial_accounts_resource_financial_addresses_features: { - aba?: components["schemas"]["treasury_financial_accounts_resource_toggle_settings"]; + aba?: components["schemas"]["treasury_financial_accounts_resource_aba_toggle_settings"]; }; /** * TreasuryFinancialAccountsResourceInboundTransfers @@ -21822,6 +21870,11 @@ export interface operations { amount?: number; /** @description The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice. */ credit_amount?: number; + /** + * Format: unix-time + * @description The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. + */ + effective_at?: number; /** @description Specifies which fields in the response should be expanded. */ expand?: (string)[]; /** @description ID of the invoice. */ @@ -21889,6 +21942,8 @@ export interface operations { amount?: number; /** @description The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice. */ credit_amount?: number; + /** @description The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. */ + effective_at?: number; /** @description Specifies which fields in the response should be expanded. */ expand?: (string)[]; /** @description ID of the invoice. */ @@ -21954,6 +22009,8 @@ export interface operations { amount?: number; /** @description The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice. */ credit_amount?: number; + /** @description The date when this credit note is in effect. Same as `created` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. */ + effective_at?: number; /** @description A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. */ ending_before?: string; /** @description Specifies which fields in the response should be expanded. */ @@ -22327,7 +22384,7 @@ export interface operations { /** @description The customer's tax IDs. */ tax_id_data?: ({ /** @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; value: string; })[]; /** @description ID of the test clock to attach to the customer. */ @@ -24719,10 +24776,10 @@ export interface operations { /** @description Specifies which fields in the response should be expanded. */ expand?: (string)[]; /** - * @description Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat` + * @description Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, `ph_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` * @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; /** @description Value of the tax ID. */ value: string; }; @@ -26575,6 +26632,11 @@ export interface operations { * @description The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`. */ due_date?: number; + /** + * Format: unix-time + * @description The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt. + */ + effective_at?: number; /** @description Specifies which fields in the response should be expanded. */ expand?: (string)[]; /** @description Footer to be displayed on the invoice. */ @@ -26858,7 +26920,7 @@ export interface operations { tax_exempt?: "" | "exempt" | "none" | "reverse"; tax_ids?: ({ /** @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; value: string; })[]; }; @@ -27034,7 +27096,7 @@ export interface operations { tax_exempt?: "" | "exempt" | "none" | "reverse"; tax_ids?: ({ /** @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; value: string; })[]; }; @@ -27274,6 +27336,8 @@ export interface operations { * @description The date on which payment for this invoice is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices. */ due_date?: number; + /** @description The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt. */ + effective_at?: number | ""; /** @description Specifies which fields in the response should be expanded. */ expand?: (string)[]; /** @description Footer to be displayed on the invoice. */ @@ -38002,6 +38066,10 @@ export interface operations { GetSubscriptions: { parameters: { query?: { + /** @description Filter subscriptions by their automatic tax settings. */ + automatic_tax?: { + enabled: boolean; + }; /** @description The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`. */ collection_method?: "charge_automatically" | "send_invoice"; created?: { @@ -38798,7 +38866,7 @@ export interface operations { ip_address?: string; tax_ids?: ({ /** @enum {string} */ - type: "ae_trn" | "au_abn" | "au_arn" | "bg_uic" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "za_vat"; + type: "ad_nrt" | "ae_trn" | "ar_cuit" | "au_abn" | "au_arn" | "bg_uic" | "bo_tin" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_vat" | "cl_tin" | "cn_tin" | "co_nit" | "cr_tin" | "do_rcn" | "ec_ruc" | "eg_tin" | "es_cif" | "eu_oss_vat" | "eu_vat" | "gb_vat" | "ge_vat" | "hk_br" | "hu_tin" | "id_npwp" | "il_vat" | "in_gst" | "is_vat" | "jp_cn" | "jp_rn" | "jp_trn" | "ke_pin" | "kr_brn" | "li_uid" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "pe_ruc" | "ph_tin" | "rs_pib" | "ru_inn" | "ru_kpp" | "sa_vat" | "sg_gst" | "sg_uen" | "si_tin" | "sv_nit" | "th_vat" | "tr_tin" | "tw_vat" | "ua_vat" | "us_ein" | "uy_ruc" | "ve_rif" | "vn_tin" | "za_vat"; value: string; })[]; /** @enum {string} */ @@ -42300,7 +42368,7 @@ export interface operations { }; /** financial_addresses */ financial_addresses?: { - /** access */ + /** aba_access */ aba?: { requested: boolean; }; @@ -42431,7 +42499,7 @@ export interface operations { }; /** financial_addresses */ financial_addresses?: { - /** access */ + /** aba_access */ aba?: { requested: boolean; }; @@ -42564,7 +42632,7 @@ export interface operations { * @description Contains Features that add FinancialAddresses to the FinancialAccount. */ financial_addresses?: { - /** access */ + /** aba_access */ aba?: { requested: boolean; }; diff --git a/packages/openapi-typescript/examples/stripe-api.yaml b/packages/openapi-typescript/examples/stripe-api.yaml index 027e84ba9..7e353c1ff 100644 --- a/packages/openapi-typescript/examples/stripe-api.yaml +++ b/packages/openapi-typescript/examples/stripe-api.yaml @@ -5783,6 +5783,14 @@ components: items: $ref: '#/components/schemas/discounts_resource_discount_amount' type: array + effective_at: + description: >- + The date when this credit note is in effect. Same as `created` + unless overwritten. When defined, this value replaces the + system-generated 'Date of issue' printed on the credit note PDF. + format: unix-time + nullable: true + type: integer id: description: Unique identifier for the object. maxLength: 5000 @@ -9200,7 +9208,7 @@ components: - ownership_refresh x-resourceId: financial_connections.account financial_connections.account_owner: - description: '' + description: Describes an owner of an account. properties: email: description: The email address of the owner. @@ -10919,6 +10927,15 @@ components: format: unix-time nullable: true type: integer + effective_at: + description: >- + The date when this invoice is in effect. Same as `finalized_at` + unless overwritten. When defined, this value replaces the + system-generated 'Date of issue' printed on the invoice PDF and + receipt. + format: unix-time + nullable: true + type: integer ending_balance: description: >- Ending customer balance after the invoice is finalized. Invoices are @@ -12156,20 +12173,26 @@ components: properties: type: description: >- - The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, - `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, - `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, - `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, - `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, - `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, - `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, - `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, - `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` - enum: + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, + `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, + `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `rs_pib`, `sv_nit`, + `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, + `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, + `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, + `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, + `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, + `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, + `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, + `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, + `ph_tin`, or `unknown` + enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -12180,6 +12203,11 @@ components: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -12204,19 +12232,25 @@ components: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - unknown - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat type: string value: @@ -14296,6 +14330,7 @@ components: - shipped nullable: true type: string + x-stripeBypassValidation: true tracking_number: description: A tracking number for a card shipment. maxLength: 5000 @@ -17252,6 +17287,10 @@ components: enum: - mandate type: string + on_behalf_of: + description: The account (if any) for which the mandate is intended. + maxLength: 5000 + type: string payment_method: anyOf: - maxLength: 5000 @@ -20078,11 +20117,22 @@ components: type: string label: $ref: '#/components/schemas/payment_links_resource_custom_fields_label' + numeric: + anyOf: + - $ref: >- + #/components/schemas/payment_links_resource_custom_fields_numeric + description: Configuration for `type=numeric` fields. + nullable: true optional: description: >- Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. type: boolean + text: + anyOf: + - $ref: '#/components/schemas/payment_links_resource_custom_fields_text' + description: Configuration for `type=text` fields. + nullable: true type: description: The type of the field. enum: @@ -20100,6 +20150,8 @@ components: x-expandableFields: - dropdown - label + - numeric + - text payment_links_resource_custom_fields_dropdown: description: '' properties: @@ -20160,6 +20212,34 @@ components: title: PaymentLinksResourceCustomFieldsLabel type: object x-expandableFields: [] + payment_links_resource_custom_fields_numeric: + description: '' + properties: + maximum_length: + description: The maximum character length constraint for the customer's input. + nullable: true + type: integer + minimum_length: + description: The minimum character length requirement for the customer's input. + nullable: true + type: integer + title: PaymentLinksResourceCustomFieldsNumeric + type: object + x-expandableFields: [] + payment_links_resource_custom_fields_text: + description: '' + properties: + maximum_length: + description: The maximum character length constraint for the customer's input. + nullable: true + type: integer + minimum_length: + description: The minimum character length requirement for the customer's input. + nullable: true + type: integer + title: PaymentLinksResourceCustomFieldsText + type: object + x-expandableFields: [] payment_links_resource_custom_text: description: '' properties: @@ -25677,20 +25757,26 @@ components: properties: type: description: >- - The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, - `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, - `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, - `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, - `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, - `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, - `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, - `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, - `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` - enum: + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, + `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, + `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `rs_pib`, `sv_nit`, + `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, + `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, + `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, + `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, + `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, + `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, + `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, + `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, + `ph_tin`, or `unknown` + enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -25701,6 +25787,11 @@ components: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -25725,19 +25816,25 @@ components: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - unknown - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat type: string value: @@ -32808,10 +32905,11 @@ components: moves to `active` when the trial period is over. - If subscription `collection_method=charge_automatically` it becomes - `past_due` when payment to renew it fails and `canceled` or `unpaid` - (depending on your subscriptions settings) when Stripe has exhausted - all payment retry attempts. + If subscription `collection_method=charge_automatically`, it becomes + `past_due` when payment is required but cannot be paid (due to + failed payment or awaiting additional user actions). Once Stripe has + exhausted all payment retry attempts, the subscription will become + `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes @@ -34498,21 +34596,26 @@ components: type: string type: description: >- - Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, - `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, - `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, - `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, - `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, - `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, - `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, - `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, - `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`. Note that some - legacy tax IDs have type `unknown` - enum: + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, + `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, + `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, + `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, + `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, + `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, + `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, + `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, + `pe_ruc`, `ph_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, + `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, + `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or + `za_vat`. Note that some legacy tax IDs have type `unknown` + enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -34523,6 +34626,11 @@ components: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -34547,19 +34655,25 @@ components: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - unknown - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat type: string value: @@ -34660,20 +34774,26 @@ components: properties: type: description: >- - The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, - `eu_oss_vat`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, - `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, - `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, - `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, - `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, - `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, - `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, - `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown` - enum: + The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, + `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, + `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `rs_pib`, `sv_nit`, + `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, + `au_arn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, + `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, + `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, + `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, + `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, + `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, + `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, + `ph_tin`, or `unknown` + enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -34684,6 +34804,11 @@ components: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -34708,19 +34833,25 @@ components: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - unknown - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat type: string value: @@ -38118,6 +38249,35 @@ components: title: TreasuryFinancialAccountsResourceABARecord type: object x-expandableFields: [] + treasury_financial_accounts_resource_aba_toggle_settings: + description: Toggle settings for enabling/disabling the ABA address feature + properties: + requested: + description: Whether the FinancialAccount should have the Feature. + type: boolean + status: + description: Whether the Feature is operational. + enum: + - active + - pending + - restricted + type: string + status_details: + description: >- + Additional details; includes at least one entry when the status is + not `active`. + items: + $ref: >- + #/components/schemas/treasury_financial_accounts_resource_toggles_setting_status_details + type: array + required: + - requested + - status + - status_details + title: TreasuryFinancialAccountsResourceAbaToggleSettings + type: object + x-expandableFields: + - status_details treasury_financial_accounts_resource_ach_toggle_settings: description: Toggle settings for enabling/disabling an ACH specific feature properties: @@ -38224,7 +38384,7 @@ components: properties: aba: $ref: >- - #/components/schemas/treasury_financial_accounts_resource_toggle_settings + #/components/schemas/treasury_financial_accounts_resource_aba_toggle_settings title: TreasuryFinancialAccountsResourceFinancialAddressesFeatures type: object x-expandableFields: @@ -51913,6 +52073,14 @@ paths: representing the amount to credit the customer's balance, which will be automatically applied to their next invoice. type: integer + effective_at: + description: >- + The date when this credit note is in effect. Same as + `created` unless overwritten. When defined, this value + replaces the system-generated 'Date of issue' printed on the + credit note PDF. + format: unix-time + type: integer expand: description: Specifies which fields in the response should be expanded. items: @@ -52052,6 +52220,17 @@ paths: schema: type: integer style: form + - description: >- + The date when this credit note is in effect. Same as `created` + unless overwritten. When defined, this value replaces the + system-generated 'Date of issue' printed on the credit note PDF. + in: query + name: effective_at + required: false + schema: + format: unix-time + type: integer + style: form - description: Specifies which fields in the response should be expanded. explode: true in: query @@ -52242,6 +52421,17 @@ paths: schema: type: integer style: form + - description: >- + The date when this credit note is in effect. Same as `created` + unless overwritten. When defined, this value replaces the + system-generated 'Date of issue' printed on the credit note PDF. + in: query + name: effective_at + required: false + schema: + format: unix-time + type: integer + style: form - description: >- A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list @@ -53164,10 +53354,13 @@ paths: properties: type: enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -53178,6 +53371,11 @@ paths: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -53202,18 +53400,24 @@ paths: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat maxLength: 5000 type: string @@ -58694,21 +58898,27 @@ paths: type: array type: description: >- - Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, - `bg_uic`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, - `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, - `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, - `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, - `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, - `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, - `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, - `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, - `ua_vat`, `us_ein`, or `za_vat` + Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, + `au_abn`, `au_arn`, `bg_uic`, `bo_tin`, `br_cnpj`, `br_cpf`, + `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, + `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, + `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, + `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, + `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, + `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, + `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `pe_ruc`, + `ph_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, + `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, + `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or + `za_vat` enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -58719,6 +58929,11 @@ paths: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -58743,18 +58958,24 @@ paths: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat maxLength: 5000 type: string @@ -62769,6 +62990,14 @@ paths: only for invoices where `collection_method=send_invoice`. format: unix-time type: integer + effective_at: + description: >- + The date when this invoice is in effect. Same as + `finalized_at` unless overwritten. When defined, this value + replaces the system-generated 'Date of issue' printed on the + invoice PDF and receipt. + format: unix-time + type: integer expand: description: Specifies which fields in the response should be expanded. items: @@ -63516,10 +63745,13 @@ paths: properties: type: enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -63530,6 +63762,11 @@ paths: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -63554,18 +63791,24 @@ paths: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat maxLength: 5000 type: string @@ -64188,10 +64431,13 @@ paths: properties: type: enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -64202,6 +64448,11 @@ paths: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -64226,18 +64477,24 @@ paths: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat maxLength: 5000 type: string @@ -64900,6 +65157,9 @@ paths: discounts: explode: true style: deepObject + effective_at: + explode: true + style: deepObject expand: explode: true style: deepObject @@ -65066,6 +65326,18 @@ paths: This field can only be updated on `draft` invoices. format: unix-time type: integer + effective_at: + anyOf: + - format: unix-time + type: integer + - enum: + - '' + type: string + description: >- + The date when this invoice is in effect. Same as + `finalized_at` unless overwritten. When defined, this value + replaces the system-generated 'Date of issue' printed on the + invoice PDF and receipt. expand: description: Specifies which fields in the response should be expanded. items: @@ -95476,6 +95748,20 @@ paths: status=canceled.

operationId: GetSubscriptions parameters: + - description: Filter subscriptions by their automatic tax settings. + explode: true + in: query + name: automatic_tax + required: false + schema: + properties: + enabled: + type: boolean + required: + - enabled + title: automatic_tax_filter_params + type: object + style: deepObject - description: >- The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`. @@ -97718,10 +98004,13 @@ paths: properties: type: enum: + - ad_nrt - ae_trn + - ar_cuit - au_abn - au_arn - bg_uic + - bo_tin - br_cnpj - br_cpf - ca_bn @@ -97732,6 +98021,11 @@ paths: - ca_qst - ch_vat - cl_tin + - cn_tin + - co_nit + - cr_tin + - do_rcn + - ec_ruc - eg_tin - es_cif - eu_oss_vat @@ -97756,18 +98050,24 @@ paths: - my_sst - no_vat - nz_gst + - pe_ruc - ph_tin + - rs_pib - ru_inn - ru_kpp - sa_vat - sg_gst - sg_uen - si_tin + - sv_nit - th_vat - tr_tin - tw_vat - ua_vat - us_ein + - uy_ruc + - ve_rif + - vn_tin - za_vat maxLength: 5000 type: string @@ -104737,7 +105037,7 @@ paths: type: boolean required: - requested - title: access + title: aba_access type: object title: financial_addresses type: object @@ -104967,7 +105267,7 @@ paths: type: boolean required: - requested - title: access + title: aba_access type: object title: financial_addresses type: object @@ -105207,7 +105507,7 @@ paths: type: boolean required: - requested - title: access + title: aba_access type: object title: financial_addresses type: object diff --git a/packages/openapi-typescript/package.json b/packages/openapi-typescript/package.json index 9aad7b9dc..a154bb0ef 100644 --- a/packages/openapi-typescript/package.json +++ b/packages/openapi-typescript/package.json @@ -55,21 +55,21 @@ }, "dependencies": { "ansi-colors": "^4.1.3", - "fast-glob": "^3.2.12", + "fast-glob": "^3.3.0", "js-yaml": "^4.1.0", - "supports-color": "^9.3.1", + "supports-color": "^9.4.0", "undici": "^5.22.1", "yargs-parser": "^21.1.1" }, "devDependencies": { "@types/degit": "^2.8.3", "@types/js-yaml": "^4.0.5", - "@types/node": "^20.3.1", + "@types/node": "^20.4.0", "degit": "^2.8.4", "del-cli": "^5.0.0", "execa": "^6.1.0", - "vite": "^4.3.9", - "vite-node": "^0.32.0", - "vitest": "^0.32.0" + "vite": "^4.4.1", + "vite-node": "^0.33.0", + "vitest": "^0.33.0" } } diff --git a/packages/openapi-typescript/src/transform/schema-object.ts b/packages/openapi-typescript/src/transform/schema-object.ts index 6599cfc80..91d26fc9a 100644 --- a/packages/openapi-typescript/src/transform/schema-object.ts +++ b/packages/openapi-typescript/src/transform/schema-object.ts @@ -91,18 +91,16 @@ export function defaultSchemaObjectTransform(schemaObject: SchemaObject | Refere indentLv++; let itemType = "unknown"; let isTupleType = false; - if (schemaObject.items) { - if (Array.isArray(schemaObject.items)) { - // tuple type support - isTupleType = true; - const result: string[] = []; - schemaObject.items.forEach((item) => { - result.push(transformSchemaObject(item, { path, ctx: { ...ctx, indentLv } })); - }); - itemType = `[${result.join(",")}]`; - } else { - itemType = transformSchemaObject(schemaObject.items, { path, ctx: { ...ctx, indentLv } }); + if (schemaObject.prefixItems || Array.isArray(schemaObject.items)) { + // tuple type support + isTupleType = true; + const result: string[] = []; + for (const item of schemaObject.prefixItems ?? (schemaObject.items as (SchemaObject | ReferenceObject)[])) { + result.push(transformSchemaObject(item, { path, ctx: { ...ctx, indentLv } })); } + itemType = `[${result.join(", ")}]`; + } else if (schemaObject.items) { + itemType = transformSchemaObject(schemaObject.items, { path, ctx: { ...ctx, indentLv } }); } const minItems: number = typeof schemaObject.minItems === "number" && schemaObject.minItems >= 0 ? schemaObject.minItems : 0; const maxItems: number | undefined = typeof schemaObject.maxItems === "number" && schemaObject.maxItems >= 0 && minItems <= schemaObject.maxItems ? schemaObject.maxItems : undefined; diff --git a/packages/openapi-typescript/src/types.ts b/packages/openapi-typescript/src/types.ts index 3f2815905..02da70e6b 100644 --- a/packages/openapi-typescript/src/types.ts +++ b/packages/openapi-typescript/src/types.ts @@ -438,7 +438,7 @@ export type SchemaObject = { | { type: "integer"; minimum?: number; maximum?: number } | { type: "array"; - prefixItems?: SchemaObject | ReferenceObject; + prefixItems?: (SchemaObject | ReferenceObject)[]; items?: SchemaObject | ReferenceObject | (SchemaObject | ReferenceObject)[]; minItems?: number; maxItems?: number; diff --git a/packages/openapi-typescript/test/schema-object.test.ts b/packages/openapi-typescript/test/schema-object.test.ts index 2abde824a..cd6b2cdf1 100644 --- a/packages/openapi-typescript/test/schema-object.test.ts +++ b/packages/openapi-typescript/test/schema-object.test.ts @@ -111,9 +111,9 @@ describe("Schema Object", () => { }); test("tuple array", () => { - const schema: SchemaObject = { type: "array", items: [{ type: "string" },{"type": "number"}],minItems:2,maxItems:2 }; + const schema: SchemaObject = { type: "array", items: [{ type: "string" }, { type: "number" }], minItems: 2, maxItems: 2 }; const generated = transformSchemaObject(schema, options); - expect(generated).toBe("[string,number]"); + expect(generated).toBe("[string, number]"); }); test("ref", () => { @@ -279,10 +279,7 @@ describe("Schema Object", () => { }); test("enum + polymorphism + nullable", () => { - const generated = transformSchemaObject( - { type: ["string", "null"], enum: ["", "false positive", "won't fix", "used in tests"] }, - options - ); + const generated = transformSchemaObject({ type: ["string", "null"], enum: ["", "false positive", "won't fix", "used in tests"] }, options); expect(generated).toBe(`"" | "false positive" | "won't fix" | "used in tests" | null`); }); }); @@ -341,10 +338,7 @@ describe("Schema Object", () => { test("discriminator", () => { const schema: SchemaObject = { type: "object", - allOf: [ - { $ref: 'components["schemas"]["parent"]' }, - { type: "object", properties: { string: { type: "string" } } }, - ], + allOf: [{ $ref: 'components["schemas"]["parent"]' }, { type: "object", properties: { string: { type: "string" } } }], }; const generated = transformSchemaObject(schema, { path: options.path, @@ -370,10 +364,7 @@ describe("Schema Object", () => { test("discriminator escape", () => { const schema: SchemaObject = { type: "object", - allOf: [ - { $ref: 'components["schemas"]["parent"]' }, - { type: "object", properties: { string: { type: "string" } } }, - ], + allOf: [{ $ref: 'components["schemas"]["parent"]' }, { type: "object", properties: { string: { type: "string" } } }], }; const generated = transformSchemaObject(schema, { path: options.path, @@ -532,20 +523,22 @@ describe("Schema Object", () => { }); }); - describe("supportArrayLength", () => { - test("true", () => { - const opts = { ...options, ctx: { ...options.ctx, supportArrayLength: true } }; - expect(transformSchemaObject({ type: "array", items: { type: "string" } }, options)).toBe(`(string)[]`); - expect(transformSchemaObject({ type: "array", items: { type: "string" }, minItems: 1 }, opts)).toBe( - `[string, ...(string)[]]` - ); - expect(transformSchemaObject({ type: "array", items: { type: "string" }, maxItems: 2 }, opts)).toBe( - `[] | [string] | [string, string]` - ); - expect(transformSchemaObject({ type: "array", items: { type: "string" }, maxItems: 20 }, opts)).toBe( - `(string)[]` - ); - }); + test("supportArrayLength", () => { + const opts = { ...options, ctx: { ...options.ctx, supportArrayLength: true } }; + expect(transformSchemaObject({ type: "array", items: { type: "string" } }, options)).toBe(`(string)[]`); + expect(transformSchemaObject({ type: "array", items: { type: "string" }, minItems: 1 }, opts)).toBe(`[string, ...(string)[]]`); + expect(transformSchemaObject({ type: "array", items: { type: "string" }, maxItems: 2 }, opts)).toBe(`[] | [string] | [string, string]`); + expect(transformSchemaObject({ type: "array", items: { type: "string" }, maxItems: 20 }, opts)).toBe(`(string)[]`); + }); + + test("prefixItems", () => { + const schema: SchemaObject = { + type: "array", + items: { type: "number" }, + prefixItems: [{ type: "number" }, { type: "number" }, { type: "number" }], + }; + const generated = transformSchemaObject(schema, options); + expect(generated).toBe(`[number, number, number]`); }); describe("immutableTypes", () => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 92e3e8d2f..bbf26257e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,26 +12,26 @@ importers: specifier: ^0.4.8 version: 0.4.8 '@changesets/cli': - specifier: ^2.26.1 - version: 2.26.1 + specifier: ^2.26.2 + version: 2.26.2 '@typescript-eslint/eslint-plugin': - specifier: ^5.59.11 - version: 5.59.11(@typescript-eslint/parser@5.59.11)(eslint@8.42.0)(typescript@5.1.3) + specifier: ^5.61.0 + version: 5.61.0(@typescript-eslint/parser@5.61.0)(eslint@8.44.0)(typescript@5.1.6) '@typescript-eslint/parser': - specifier: ^5.59.11 - version: 5.59.11(eslint@8.42.0)(typescript@5.1.3) + specifier: ^5.61.0 + version: 5.61.0(eslint@8.44.0)(typescript@5.1.6) del-cli: specifier: ^5.0.0 version: 5.0.0 eslint: - specifier: ^8.42.0 - version: 8.42.0 + specifier: ^8.44.0 + version: 8.44.0 eslint-config-prettier: specifier: ^8.8.0 - version: 8.8.0(eslint@8.42.0) + version: 8.8.0(eslint@8.44.0) eslint-plugin-prettier: specifier: ^4.2.1 - version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.42.0)(prettier@2.8.8) + version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.44.0)(prettier@2.8.8) npm-run-all: specifier: ^4.1.5 version: 4.1.5 @@ -39,35 +39,35 @@ importers: specifier: ^2.8.8 version: 2.8.8 typescript: - specifier: ^5.1.3 - version: 5.1.3 + specifier: ^5.1.6 + version: 5.1.6 docs: dependencies: '@algolia/client-search': - specifier: ^4.17.2 - version: 4.17.2 + specifier: ^4.18.0 + version: 4.18.0 '@astrojs/preact': specifier: ^2.2.1 version: 2.2.1(preact@10.15.1) '@astrojs/react': specifier: ^2.2.1 - version: 2.2.1(@types/react-dom@18.2.5)(@types/react@18.2.12)(react-dom@18.2.0)(react@18.2.0) + version: 2.2.1(@types/react-dom@18.2.6)(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) '@docsearch/css': specifier: ^3.5.1 version: 3.5.1 '@docsearch/react': specifier: ^3.5.1 - version: 3.5.1(@algolia/client-search@4.17.2)(@types/react@18.2.12)(react-dom@18.2.0)(react@18.2.0)(search-insights@2.6.0) + version: 3.5.1(@algolia/client-search@4.18.0)(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0)(search-insights@2.6.0) '@types/react': - specifier: ^18.2.12 - version: 18.2.12 + specifier: ^18.2.14 + version: 18.2.14 '@types/react-dom': - specifier: ^18.2.5 - version: 18.2.5 + specifier: ^18.2.6 + version: 18.2.6 astro: - specifier: ^2.6.4 - version: 2.6.4(@types/node@20.3.1)(sass@1.63.4) + specifier: ^2.8.0 + version: 2.8.0(@types/node@20.4.0)(sass@1.63.6) preact: specifier: ^10.15.1 version: 10.15.1 @@ -78,21 +78,21 @@ importers: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) sass: - specifier: ^1.63.4 - version: 1.63.4 + specifier: ^1.63.6 + version: 1.63.6 devDependencies: '@astrojs/sitemap': specifier: ^1.3.3 version: 1.3.3 '@types/node': - specifier: ^20.3.1 - version: 20.3.1 + specifier: ^20.4.0 + version: 20.4.0 html-escaper: specifier: ^3.0.3 version: 3.0.3 typescript: - specifier: ^5.1.3 - version: 5.1.3 + specifier: ^5.1.6 + version: 5.1.6 packages/openapi-fetch: devDependencies: @@ -100,11 +100,11 @@ importers: specifier: ^5.0.0 version: 5.0.0 esbuild: - specifier: ^0.18.3 - version: 0.18.3 + specifier: ^0.18.11 + version: 0.18.11 nanostores: - specifier: ^0.8.1 - version: 0.8.1 + specifier: ^0.9.3 + version: 0.9.3 openapi-typescript: specifier: '*' version: link:../openapi-typescript @@ -112,14 +112,14 @@ importers: specifier: ^2.8.8 version: 2.8.8 typescript: - specifier: ^5.1.3 - version: 5.1.3 + specifier: ^5.1.6 + version: 5.1.6 vitest: - specifier: ^0.32.0 - version: 0.32.0(supports-color@9.3.1) + specifier: ^0.33.0 + version: 0.33.0(supports-color@9.4.0) vitest-fetch-mock: specifier: ^0.2.2 - version: 0.2.2(vitest@0.32.0) + version: 0.2.2(vitest@0.33.0) packages/openapi-typescript: dependencies: @@ -127,14 +127,14 @@ importers: specifier: ^4.1.3 version: 4.1.3 fast-glob: - specifier: ^3.2.12 - version: 3.2.12 + specifier: ^3.3.0 + version: 3.3.0 js-yaml: specifier: ^4.1.0 version: 4.1.0 supports-color: - specifier: ^9.3.1 - version: 9.3.1 + specifier: ^9.4.0 + version: 9.4.0 undici: specifier: ^5.22.1 version: 5.22.1 @@ -149,8 +149,8 @@ importers: specifier: ^4.0.5 version: 4.0.5 '@types/node': - specifier: ^20.3.1 - version: 20.3.1 + specifier: ^20.4.0 + version: 20.4.0 degit: specifier: ^2.8.4 version: 2.8.4 @@ -161,149 +161,154 @@ importers: specifier: ^6.1.0 version: 6.1.0 vite: - specifier: ^4.3.9 - version: 4.3.9(@types/node@20.3.1)(sass@1.63.4) + specifier: ^4.4.1 + version: 4.4.1(@types/node@20.4.0)(sass@1.63.6) vite-node: - specifier: ^0.32.0 - version: 0.32.0(@types/node@20.3.1)(supports-color@9.3.1) + specifier: ^0.33.0 + version: 0.33.0(@types/node@20.4.0)(supports-color@9.4.0) vitest: - specifier: ^0.32.0 - version: 0.32.0(supports-color@9.3.1) + specifier: ^0.33.0 + version: 0.33.0(supports-color@9.4.0) packages: - /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2)(search-insights@2.6.0): + /@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} + engines: {node: '>=0.10.0'} + dev: true + + /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0)(search-insights@2.6.0): resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==} dependencies: - '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2)(search-insights@2.6.0) - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2) + '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0)(search-insights@2.6.0) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0) transitivePeerDependencies: - '@algolia/client-search' - algoliasearch - search-insights dev: false - /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2)(search-insights@2.6.0): + /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0)(search-insights@2.6.0): resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==} peerDependencies: search-insights: '>= 1 < 3' dependencies: - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2) + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0) search-insights: 2.6.0 transitivePeerDependencies: - '@algolia/client-search' - algoliasearch dev: false - /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2): + /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0): resolution: {integrity: sha512-d4qlt6YmrLMYy95n5TB52wtNDr6EgAIPH81dvvvW8UmuWRgxEtY0NJiPwl/h95JtG2vmRM804M0DSwMCNZlzRA==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' dependencies: - '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2) - '@algolia/client-search': 4.17.2 - algoliasearch: 4.17.2 + '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0) + '@algolia/client-search': 4.18.0 + algoliasearch: 4.18.0 dev: false - /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2): + /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0): resolution: {integrity: sha512-Wnm9E4Ye6Rl6sTTqjoymD+l8DjSTHsHboVRYrKgEt8Q7UHm9nYbqhN/i0fhUYA3OAEH7WA8x3jfpnmJm3rKvaQ==} peerDependencies: '@algolia/client-search': '>= 4.9.1 < 6' algoliasearch: '>= 4.9.1 < 6' dependencies: - '@algolia/client-search': 4.17.2 - algoliasearch: 4.17.2 + '@algolia/client-search': 4.18.0 + algoliasearch: 4.18.0 dev: false - /@algolia/cache-browser-local-storage@4.17.2: - resolution: {integrity: sha512-ZkVN7K/JE+qMQbpR6h3gQOGR6yCJpmucSBCmH5YDxnrYbp2CbrVCu0Nr+FGVoWzMJNznj1waShkfQ9awERulLw==} + /@algolia/cache-browser-local-storage@4.18.0: + resolution: {integrity: sha512-rUAs49NLlO8LVLgGzM4cLkw8NJLKguQLgvFmBEe3DyzlinoqxzQMHfKZs6TSq4LZfw/z8qHvRo8NcTAAUJQLcw==} dependencies: - '@algolia/cache-common': 4.17.2 + '@algolia/cache-common': 4.18.0 dev: false - /@algolia/cache-common@4.17.2: - resolution: {integrity: sha512-fojbhYIS8ovfYs6hwZpy1O4mBfVRxNgAaZRqsdVQd54hU4MxYDYFCxagYX28lOBz7btcDHld6BMoWXvjzkx6iQ==} + /@algolia/cache-common@4.18.0: + resolution: {integrity: sha512-BmxsicMR4doGbeEXQu8yqiGmiyvpNvejYJtQ7rvzttEAMxOPoWEHrWyzBQw4x7LrBY9pMrgv4ZlUaF8PGzewHg==} dev: false - /@algolia/cache-in-memory@4.17.2: - resolution: {integrity: sha512-UYQcMzPurNi+cPYkuPemTZkjKAjdgAS1hagC5irujKbrYnN4yscK4TkOI5tX+O8/KegtJt3kOK07OIrJ2QDAAw==} + /@algolia/cache-in-memory@4.18.0: + resolution: {integrity: sha512-evD4dA1nd5HbFdufBxLqlJoob7E2ozlqJZuV3YlirNx5Na4q1LckIuzjNYZs2ddLzuTc/Xd5O3Ibf7OwPskHxw==} dependencies: - '@algolia/cache-common': 4.17.2 + '@algolia/cache-common': 4.18.0 dev: false - /@algolia/client-account@4.17.2: - resolution: {integrity: sha512-doSk89pBPDpDyKJSHFADIGa2XSGrBCj3QwPvqtRJXDADpN+OjW+eTR8r4hEs/7X4GGfjfAOAES8JgDx+fZntYw==} + /@algolia/client-account@4.18.0: + resolution: {integrity: sha512-XsDnlROr3+Z1yjxBJjUMfMazi1V155kVdte6496atvBgOEtwCzTs3A+qdhfsAnGUvaYfBrBkL0ThnhMIBCGcew==} dependencies: - '@algolia/client-common': 4.17.2 - '@algolia/client-search': 4.17.2 - '@algolia/transporter': 4.17.2 + '@algolia/client-common': 4.18.0 + '@algolia/client-search': 4.18.0 + '@algolia/transporter': 4.18.0 dev: false - /@algolia/client-analytics@4.17.2: - resolution: {integrity: sha512-V+DcXbOtD/hKwAR3qGQrtlrJ3q2f9OKfx843q744o4m3xHv5ueCAvGXB1znPsdaUrVDNAImcgEgqwI9x7EJbDw==} + /@algolia/client-analytics@4.18.0: + resolution: {integrity: sha512-chEUSN4ReqU7uRQ1C8kDm0EiPE+eJeAXiWcBwLhEynfNuTfawN9P93rSZktj7gmExz0C8XmkbBU19IQ05wCNrQ==} dependencies: - '@algolia/client-common': 4.17.2 - '@algolia/client-search': 4.17.2 - '@algolia/requester-common': 4.17.2 - '@algolia/transporter': 4.17.2 + '@algolia/client-common': 4.18.0 + '@algolia/client-search': 4.18.0 + '@algolia/requester-common': 4.18.0 + '@algolia/transporter': 4.18.0 dev: false - /@algolia/client-common@4.17.2: - resolution: {integrity: sha512-gKBUnjxi0ukJYIJxVREYGt1Dmj1B3RBYbfGWi0dIPp1BC1VvQm+BOuNwsIwmq/x3MPO+sGuK978eKiP3tZDvag==} + /@algolia/client-common@4.18.0: + resolution: {integrity: sha512-7N+soJFP4wn8tjTr3MSUT/U+4xVXbz4jmeRfWfVAzdAbxLAQbHa0o/POSdTvQ8/02DjCLelloZ1bb4ZFVKg7Wg==} dependencies: - '@algolia/requester-common': 4.17.2 - '@algolia/transporter': 4.17.2 + '@algolia/requester-common': 4.18.0 + '@algolia/transporter': 4.18.0 dev: false - /@algolia/client-personalization@4.17.2: - resolution: {integrity: sha512-wc4UgOWxSYWz5wpuelNmlt895jA9twjZWM2ms17Ws8qCvBHF7OVGdMGgbysPB8790YnfvvDnSsWOv3CEj26Eow==} + /@algolia/client-personalization@4.18.0: + resolution: {integrity: sha512-+PeCjODbxtamHcPl+couXMeHEefpUpr7IHftj4Y4Nia1hj8gGq4VlIcqhToAw8YjLeCTfOR7r7xtj3pJcYdP8A==} dependencies: - '@algolia/client-common': 4.17.2 - '@algolia/requester-common': 4.17.2 - '@algolia/transporter': 4.17.2 + '@algolia/client-common': 4.18.0 + '@algolia/requester-common': 4.18.0 + '@algolia/transporter': 4.18.0 dev: false - /@algolia/client-search@4.17.2: - resolution: {integrity: sha512-FUjIs+gRe0upJC++uVs4sdxMw15JxfkT86Gr/kqVwi9kcqaZhXntSbW/Fw959bIYXczjmeVQsilYvBWW4YvSZA==} + /@algolia/client-search@4.18.0: + resolution: {integrity: sha512-F9xzQXTjm6UuZtnsLIew6KSraXQ0AzS/Ee+OD+mQbtcA/K1sg89tqb8TkwjtiYZ0oij13u3EapB3gPZwm+1Y6g==} dependencies: - '@algolia/client-common': 4.17.2 - '@algolia/requester-common': 4.17.2 - '@algolia/transporter': 4.17.2 + '@algolia/client-common': 4.18.0 + '@algolia/requester-common': 4.18.0 + '@algolia/transporter': 4.18.0 dev: false - /@algolia/logger-common@4.17.2: - resolution: {integrity: sha512-EfXuweUE+1HiSMsQidaDWA5Lv4NnStYIlh7PO5pLkI+sdhbMX0e5AO5nUAMIFM1VkEANes70RA8fzhP6OqCqQQ==} + /@algolia/logger-common@4.18.0: + resolution: {integrity: sha512-46etYgSlkoKepkMSyaoriSn2JDgcrpc/nkOgou/lm0y17GuMl9oYZxwKKTSviLKI5Irk9nSKGwnBTQYwXOYdRg==} dev: false - /@algolia/logger-console@4.17.2: - resolution: {integrity: sha512-JuG8HGVlJ+l/UEDK4h2Y8q/IEmRjQz1J0aS9tf6GPNbGYiSvMr1DDdZ+hqV3bb1XE6wU8Ypex56HisWMSpnG0A==} + /@algolia/logger-console@4.18.0: + resolution: {integrity: sha512-3P3VUYMl9CyJbi/UU1uUNlf6Z8N2ltW3Oqhq/nR7vH0CjWv32YROq3iGWGxB2xt3aXobdUPXs6P0tHSKRmNA6g==} dependencies: - '@algolia/logger-common': 4.17.2 + '@algolia/logger-common': 4.18.0 dev: false - /@algolia/requester-browser-xhr@4.17.2: - resolution: {integrity: sha512-FKI2lYWwksALfRt2OETFmGb5+P7WVc4py2Ai3H7k8FSfTLwVvs9WVVmtlx6oANQ8RFEK4B85h8DQJTJ29TDfmA==} + /@algolia/requester-browser-xhr@4.18.0: + resolution: {integrity: sha512-/AcWHOBub2U4TE/bPi4Gz1XfuLK6/7dj4HJG+Z2SfQoS1RjNLshZclU3OoKIkFp8D2NC7+BNsPvr9cPLyW8nyQ==} dependencies: - '@algolia/requester-common': 4.17.2 + '@algolia/requester-common': 4.18.0 dev: false - /@algolia/requester-common@4.17.2: - resolution: {integrity: sha512-Rfim23ztAhYpE9qm+KCfCRo+YLJCjiiTG+IpDdzUjMpYPhUtirQT0A35YEd/gKn86YNyydxS9w8iRSjwKh+L0A==} + /@algolia/requester-common@4.18.0: + resolution: {integrity: sha512-xlT8R1qYNRBCi1IYLsx7uhftzdfsLPDGudeQs+xvYB4sQ3ya7+ppolB/8m/a4F2gCkEO6oxpp5AGemM7kD27jA==} dev: false - /@algolia/requester-node-http@4.17.2: - resolution: {integrity: sha512-E0b0kyCDMvUIhQmDNd/mH4fsKJdEEX6PkMKrYJjzm6moo+rP22tqpq4Rfe7DZD8OB6/LsDD3zs3Kvd+L+M5wwQ==} + /@algolia/requester-node-http@4.18.0: + resolution: {integrity: sha512-TGfwj9aeTVgOUhn5XrqBhwUhUUDnGIKlI0kCBMdR58XfXcfdwomka+CPIgThRbfYw04oQr31A6/95ZH2QVJ9UQ==} dependencies: - '@algolia/requester-common': 4.17.2 + '@algolia/requester-common': 4.18.0 dev: false - /@algolia/transporter@4.17.2: - resolution: {integrity: sha512-m8pXlz5OnNzjD1rcw+duCN4jG4yEzkJBsvKYMoN22Oq6rQwy1AY5muZ+IQUs4dL+A364CYkRMLRWhvXpCZ1x+g==} + /@algolia/transporter@4.18.0: + resolution: {integrity: sha512-xbw3YRUGtXQNG1geYFEDDuFLZt4Z8YNKbamHPkzr3rWc6qp4/BqEeXcI2u/P/oMq2yxtXgMxrCxOPA8lyIe5jw==} dependencies: - '@algolia/cache-common': 4.17.2 - '@algolia/logger-common': 4.17.2 - '@algolia/requester-common': 4.17.2 + '@algolia/cache-common': 4.18.0 + '@algolia/logger-common': 4.18.0 + '@algolia/requester-common': 4.18.0 dev: false /@ampproject/remapping@2.2.1: @@ -314,21 +319,21 @@ packages: '@jridgewell/trace-mapping': 0.3.18 dev: false - /@astrojs/compiler@1.5.1: - resolution: {integrity: sha512-iIGKu/uzB8sJ5VveQf0eHrVPPFEcrvSlp4qShYMOuY2aMmK2RVXQlX9dUjtmBQ+NAokfIOb7fwCutvH+p13l+g==} + /@astrojs/compiler@1.5.4: + resolution: {integrity: sha512-Muk0Nr1Yp2KQ9cwPBKiw+YbTHYGT8ag4RXV+P+4d2nkO2iya46nONzvH4Yv8S/sldL2ij17HGxFMmlPAxaSr6A==} dev: false - /@astrojs/internal-helpers@0.1.0: - resolution: {integrity: sha512-OSwvoFkTqVowiyP+codQeQZWoq/HOwY32x17NxDglWoCx2sdyXzplDZoVV4/3odmSEY6/A+48WMl5qkjmP1CXw==} + /@astrojs/internal-helpers@0.1.1: + resolution: {integrity: sha512-+LySbvFbjv2nO2m/e78suleQOGEru4Cnx73VsZbrQgB2u7A4ddsQg3P2T0zC0e10jgcT+c6nNlKeLpa6nRhQIg==} dev: false /@astrojs/language-server@1.0.8: resolution: {integrity: sha512-gssRxLGb8XnvKpqSzrDW5jdzdFnXD7eBXVkPCkkt2hv7Qzb+SAzv6hVgMok3jDCxpR1aeB+XNd9Qszj2h29iog==} hasBin: true dependencies: - '@astrojs/compiler': 1.5.1 + '@astrojs/compiler': 1.5.4 '@jridgewell/trace-mapping': 0.3.18 - '@vscode/emmet-helper': 2.8.9 + '@vscode/emmet-helper': 2.9.2 events: 3.3.0 prettier: 2.8.8 prettier-plugin-astro: 0.9.1 @@ -341,13 +346,13 @@ packages: vscode-uri: 3.0.7 dev: false - /@astrojs/markdown-remark@2.2.1(astro@2.6.4): + /@astrojs/markdown-remark@2.2.1(astro@2.8.0): resolution: {integrity: sha512-VF0HRv4GpC1XEMLnsKf6jth7JSmlt9qpqP0josQgA2eSpCIAC/Et+y94mgdBIZVBYH/yFnMoIxgKVe93xfO2GA==} peerDependencies: astro: ^2.5.0 dependencies: '@astrojs/prism': 2.1.2 - astro: 2.6.4(@types/node@20.3.1)(sass@1.63.4) + astro: 2.8.0(@types/node@20.4.0)(sass@1.63.6) github-slugger: 1.5.0 import-meta-resolve: 2.2.2 rehype-raw: 6.1.1 @@ -356,7 +361,7 @@ packages: remark-parse: 10.0.2 remark-rehype: 10.1.0 remark-smartypants: 2.0.0 - shiki: 0.14.2 + shiki: 0.14.3 unified: 10.1.2 unist-util-visit: 4.1.2 vfile: 5.3.7 @@ -370,9 +375,9 @@ packages: peerDependencies: preact: ^10.6.5 dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.5) - '@preact/signals': 1.1.3(preact@10.15.1) + '@babel/core': 7.22.8 + '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.8) + '@preact/signals': 1.1.4(preact@10.15.1) babel-plugin-module-resolver: 5.0.0 preact: 10.15.1 preact-render-to-string: 5.2.6(preact@10.15.1) @@ -387,7 +392,7 @@ packages: prismjs: 1.29.0 dev: false - /@astrojs/react@2.2.1(@types/react-dom@18.2.5)(@types/react@18.2.12)(react-dom@18.2.0)(react@18.2.0): + /@astrojs/react@2.2.1(@types/react-dom@18.2.6)(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-nq5Zr8iWdwjSp5fh1NReaCplwsnL4w5PXAY5XWu1jE/frxEfF/ycGHrrhwWW0uJHX9G+kUtmQLR0GBhlR4FmAw==} engines: {node: '>=16.12.0'} peerDependencies: @@ -396,10 +401,10 @@ packages: react: ^17.0.2 || ^18.0.0 react-dom: ^17.0.2 || ^18.0.0 dependencies: - '@babel/core': 7.22.5 - '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.5) - '@types/react': 18.2.12 - '@types/react-dom': 18.2.5 + '@babel/core': 7.22.8 + '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.8) + '@types/react': 18.2.14 + '@types/react-dom': 18.2.6 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) transitivePeerDependencies: @@ -418,7 +423,7 @@ packages: engines: {node: '>=16.12.0'} dependencies: ci-info: 3.8.0 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) dlv: 1.1.3 dset: 3.1.2 is-docker: 3.0.0 @@ -441,36 +446,36 @@ packages: dependencies: '@babel/highlight': 7.22.5 - /@babel/compat-data@7.22.5: - resolution: {integrity: sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==} + /@babel/compat-data@7.22.6: + resolution: {integrity: sha512-29tfsWTq2Ftu7MXmimyC0C5FDZv5DYxOZkh3XD3+QW4V/BYuv/LyEsjj3c0hqedEaDt6DBfDvexMKU8YevdqFg==} engines: {node: '>=6.9.0'} dev: false - /@babel/core@7.22.5: - resolution: {integrity: sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==} + /@babel/core@7.22.8: + resolution: {integrity: sha512-75+KxFB4CZqYRXjx4NlR4J7yGvKumBuZTmV4NV6v09dVXXkuYVYLT68N6HCzLvfJ+fWCxQsntNzKwwIXL4bHnw==} engines: {node: '>=6.9.0'} dependencies: '@ampproject/remapping': 2.2.1 '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/helper-compilation-targets': 7.22.5(@babel/core@7.22.5) + '@babel/generator': 7.22.7 + '@babel/helper-compilation-targets': 7.22.6(@babel/core@7.22.8) '@babel/helper-module-transforms': 7.22.5 - '@babel/helpers': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/helpers': 7.22.6 + '@babel/parser': 7.22.7 '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 + '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 + '@nicolo-ribaudo/semver-v6': 6.3.3 convert-source-map: 1.9.0 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.0 transitivePeerDependencies: - supports-color dev: false - /@babel/generator@7.22.5: - resolution: {integrity: sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==} + /@babel/generator@7.22.7: + resolution: {integrity: sha512-p+jPjMG+SI8yvIaxGgeW24u7q9+5+TGpZh8/CuB7RhBKd7RCy8FayNEFNNKrNK/eUcY/4ExQqLmyrvBXKsIcwQ==} engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.5 @@ -486,18 +491,18 @@ packages: '@babel/types': 7.22.5 dev: false - /@babel/helper-compilation-targets@7.22.5(@babel/core@7.22.5): - resolution: {integrity: sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==} + /@babel/helper-compilation-targets@7.22.6(@babel/core@7.22.8): + resolution: {integrity: sha512-534sYEqWD9VfUm3IPn2SLcH4Q3P86XL+QvqdC7ZsFrzyyPF3T4XGiVghF6PTYNdWg6pXuoqXxNQAhbYeEInTzA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/compat-data': 7.22.5 - '@babel/core': 7.22.5 + '@babel/compat-data': 7.22.6 + '@babel/core': 7.22.8 '@babel/helper-validator-option': 7.22.5 + '@nicolo-ribaudo/semver-v6': 6.3.3 browserslist: 4.21.9 lru-cache: 5.1.1 - semver: 6.3.0 dev: false /@babel/helper-environment-visitor@7.22.5: @@ -534,10 +539,10 @@ packages: '@babel/helper-environment-visitor': 7.22.5 '@babel/helper-module-imports': 7.22.5 '@babel/helper-simple-access': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 '@babel/helper-validator-identifier': 7.22.5 '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 + '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 transitivePeerDependencies: - supports-color @@ -555,8 +560,8 @@ packages: '@babel/types': 7.22.5 dev: false - /@babel/helper-split-export-declaration@7.22.5: - resolution: {integrity: sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==} + /@babel/helper-split-export-declaration@7.22.6: + resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} dependencies: '@babel/types': 7.22.5 @@ -576,12 +581,12 @@ packages: engines: {node: '>=6.9.0'} dev: false - /@babel/helpers@7.22.5: - resolution: {integrity: sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==} + /@babel/helpers@7.22.6: + resolution: {integrity: sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==} engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.22.5 - '@babel/traverse': 7.22.5 + '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 transitivePeerDependencies: - supports-color @@ -595,40 +600,40 @@ packages: chalk: 2.4.2 js-tokens: 4.0.0 - /@babel/parser@7.22.5: - resolution: {integrity: sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==} + /@babel/parser@7.22.7: + resolution: {integrity: sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==} engines: {node: '>=6.0.0'} hasBin: true dependencies: '@babel/types': 7.22.5 dev: false - /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.22.5): + /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.22.8): resolution: {integrity: sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.22.8 '@babel/helper-plugin-utils': 7.22.5 dev: false - /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.22.5): + /@babel/plugin-transform-react-jsx@7.22.5(@babel/core@7.22.8): resolution: {integrity: sha512-rog5gZaVbUip5iWDMTYbVM15XQq+RkUKhET/IHR6oizR+JEoN6CAfTTuHcK4vwUyzca30qqHqEpzBOnaRMWYMA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': 7.22.5 + '@babel/core': 7.22.8 '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-module-imports': 7.22.5 '@babel/helper-plugin-utils': 7.22.5 - '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.5) + '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.8) '@babel/types': 7.22.5 dev: false - /@babel/runtime@7.22.5: - resolution: {integrity: sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==} + /@babel/runtime@7.22.6: + resolution: {integrity: sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.13.11 @@ -639,23 +644,23 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.7 '@babel/types': 7.22.5 dev: false - /@babel/traverse@7.22.5: - resolution: {integrity: sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==} + /@babel/traverse@7.22.8: + resolution: {integrity: sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==} engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.22.5 - '@babel/generator': 7.22.5 + '@babel/generator': 7.22.7 '@babel/helper-environment-visitor': 7.22.5 '@babel/helper-function-name': 7.22.5 '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.5 - '@babel/parser': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/parser': 7.22.7 '@babel/types': 7.22.5 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -670,11 +675,11 @@ packages: to-fast-properties: 2.0.0 dev: false - /@changesets/apply-release-plan@6.1.3: - resolution: {integrity: sha512-ECDNeoc3nfeAe1jqJb5aFQX7CqzQhD2klXRez2JDb/aVpGUbX673HgKrnrgJRuQR/9f2TtLoYIzrGB9qwD77mg==} + /@changesets/apply-release-plan@6.1.4: + resolution: {integrity: sha512-FMpKF1fRlJyCZVYHr3CbinpZZ+6MwvOtWUuO8uo+svcATEoc1zRDcj23pAurJ2TZ/uVz1wFHH6K3NlACy0PLew==} dependencies: - '@babel/runtime': 7.22.5 - '@changesets/config': 2.3.0 + '@babel/runtime': 7.22.6 + '@changesets/config': 2.3.1 '@changesets/get-version-range-type': 0.3.2 '@changesets/git': 2.0.0 '@changesets/types': 5.2.1 @@ -685,18 +690,18 @@ packages: outdent: 0.5.0 prettier: 2.8.8 resolve-from: 5.0.0 - semver: 5.7.1 + semver: 7.5.3 dev: true - /@changesets/assemble-release-plan@5.2.3: - resolution: {integrity: sha512-g7EVZCmnWz3zMBAdrcKhid4hkHT+Ft1n0mLussFMcB1dE2zCuwcvGoy9ec3yOgPGF4hoMtgHaMIk3T3TBdvU9g==} + /@changesets/assemble-release-plan@5.2.4: + resolution: {integrity: sha512-xJkWX+1/CUaOUWTguXEbCDTyWJFECEhmdtbkjhn5GVBGxdP/JwaHBIU9sW3FR6gD07UwZ7ovpiPclQZs+j+mvg==} dependencies: - '@babel/runtime': 7.22.5 + '@babel/runtime': 7.22.6 '@changesets/errors': 0.1.4 - '@changesets/get-dependents-graph': 1.3.5 + '@changesets/get-dependents-graph': 1.3.6 '@changesets/types': 5.2.1 '@manypkg/get-packages': 1.1.3 - semver: 5.7.1 + semver: 7.5.3 dev: true /@changesets/changelog-git@0.1.14: @@ -715,18 +720,18 @@ packages: - encoding dev: true - /@changesets/cli@2.26.1: - resolution: {integrity: sha512-XnTa+b51vt057fyAudvDKGB0Sh72xutQZNAdXkCqPBKO2zvs2yYZx5hFZj1u9cbtpwM6Sxtcr02/FQJfZOzemQ==} + /@changesets/cli@2.26.2: + resolution: {integrity: sha512-dnWrJTmRR8bCHikJHl9b9HW3gXACCehz4OasrXpMp7sx97ECuBGGNjJhjPhdZNCvMy9mn4BWdplI323IbqsRig==} hasBin: true dependencies: - '@babel/runtime': 7.22.5 - '@changesets/apply-release-plan': 6.1.3 - '@changesets/assemble-release-plan': 5.2.3 + '@babel/runtime': 7.22.6 + '@changesets/apply-release-plan': 6.1.4 + '@changesets/assemble-release-plan': 5.2.4 '@changesets/changelog-git': 0.1.14 - '@changesets/config': 2.3.0 + '@changesets/config': 2.3.1 '@changesets/errors': 0.1.4 - '@changesets/get-dependents-graph': 1.3.5 - '@changesets/get-release-plan': 3.0.16 + '@changesets/get-dependents-graph': 1.3.6 + '@changesets/get-release-plan': 3.0.17 '@changesets/git': 2.0.0 '@changesets/logger': 0.0.5 '@changesets/pre': 1.0.14 @@ -735,7 +740,7 @@ packages: '@changesets/write': 0.2.3 '@manypkg/get-packages': 1.1.3 '@types/is-ci': 3.0.0 - '@types/semver': 6.2.3 + '@types/semver': 7.5.0 ansi-colors: 4.1.3 chalk: 2.4.2 enquirer: 2.3.6 @@ -748,17 +753,17 @@ packages: p-limit: 2.3.0 preferred-pm: 3.0.3 resolve-from: 5.0.0 - semver: 5.7.1 + semver: 7.5.3 spawndamnit: 2.0.0 term-size: 2.2.1 tty-table: 4.2.1 dev: true - /@changesets/config@2.3.0: - resolution: {integrity: sha512-EgP/px6mhCx8QeaMAvWtRrgyxW08k/Bx2tpGT+M84jEdX37v3VKfh4Cz1BkwrYKuMV2HZKeHOh8sHvja/HcXfQ==} + /@changesets/config@2.3.1: + resolution: {integrity: sha512-PQXaJl82CfIXddUOppj4zWu+987GCw2M+eQcOepxN5s+kvnsZOwjEJO3DH9eVy+OP6Pg/KFEWdsECFEYTtbg6w==} dependencies: '@changesets/errors': 0.1.4 - '@changesets/get-dependents-graph': 1.3.5 + '@changesets/get-dependents-graph': 1.3.6 '@changesets/logger': 0.0.5 '@changesets/types': 5.2.1 '@manypkg/get-packages': 1.1.3 @@ -772,31 +777,31 @@ packages: extendable-error: 0.1.7 dev: true - /@changesets/get-dependents-graph@1.3.5: - resolution: {integrity: sha512-w1eEvnWlbVDIY8mWXqWuYE9oKhvIaBhzqzo4ITSJY9hgoqQ3RoBqwlcAzg11qHxv/b8ReDWnMrpjpKrW6m1ZTA==} + /@changesets/get-dependents-graph@1.3.6: + resolution: {integrity: sha512-Q/sLgBANmkvUm09GgRsAvEtY3p1/5OCzgBE5vX3vgb5CvW0j7CEljocx5oPXeQSNph6FXulJlXV3Re/v3K3P3Q==} dependencies: '@changesets/types': 5.2.1 '@manypkg/get-packages': 1.1.3 chalk: 2.4.2 fs-extra: 7.0.1 - semver: 5.7.1 + semver: 7.5.3 dev: true /@changesets/get-github-info@0.5.2: resolution: {integrity: sha512-JppheLu7S114aEs157fOZDjFqUDpm7eHdq5E8SSR0gUBTEK0cNSHsrSR5a66xs0z3RWuo46QvA3vawp8BxDHvg==} dependencies: dataloader: 1.4.0 - node-fetch: 2.6.11 + node-fetch: 2.6.12 transitivePeerDependencies: - encoding dev: true - /@changesets/get-release-plan@3.0.16: - resolution: {integrity: sha512-OpP9QILpBp1bY2YNIKFzwigKh7Qe9KizRsZomzLe6pK8IUo8onkAAVUD8+JRKSr8R7d4+JRuQrfSSNlEwKyPYg==} + /@changesets/get-release-plan@3.0.17: + resolution: {integrity: sha512-6IwKTubNEgoOZwDontYc2x2cWXfr6IKxP3IhKeK+WjyD6y3M4Gl/jdQvBw+m/5zWILSOCAaGLu2ZF6Q+WiPniw==} dependencies: - '@babel/runtime': 7.22.5 - '@changesets/assemble-release-plan': 5.2.3 - '@changesets/config': 2.3.0 + '@babel/runtime': 7.22.6 + '@changesets/assemble-release-plan': 5.2.4 + '@changesets/config': 2.3.1 '@changesets/pre': 1.0.14 '@changesets/read': 0.5.9 '@changesets/types': 5.2.1 @@ -810,7 +815,7 @@ packages: /@changesets/git@2.0.0: resolution: {integrity: sha512-enUVEWbiqUTxqSnmesyJGWfzd51PY4H7mH9yUw0hPVpZBJ6tQZFMU3F3mT/t9OJ/GjyiM4770i+sehAn6ymx6A==} dependencies: - '@babel/runtime': 7.22.5 + '@babel/runtime': 7.22.6 '@changesets/errors': 0.1.4 '@changesets/types': 5.2.1 '@manypkg/get-packages': 1.1.3 @@ -835,7 +840,7 @@ packages: /@changesets/pre@1.0.14: resolution: {integrity: sha512-dTsHmxQWEQekHYHbg+M1mDVYFvegDh9j/kySNuDKdylwfMEevTeDouR7IfHNyVodxZXu17sXoJuf2D0vi55FHQ==} dependencies: - '@babel/runtime': 7.22.5 + '@babel/runtime': 7.22.6 '@changesets/errors': 0.1.4 '@changesets/types': 5.2.1 '@manypkg/get-packages': 1.1.3 @@ -845,7 +850,7 @@ packages: /@changesets/read@0.5.9: resolution: {integrity: sha512-T8BJ6JS6j1gfO1HFq50kU3qawYxa4NTbI/ASNVVCBTsKquy2HYwM9r7ZnzkiMe8IEObAJtUVGSrePCOxAK2haQ==} dependencies: - '@babel/runtime': 7.22.5 + '@babel/runtime': 7.22.6 '@changesets/git': 2.0.0 '@changesets/logger': 0.0.5 '@changesets/parse': 0.3.16 @@ -866,7 +871,7 @@ packages: /@changesets/write@0.2.3: resolution: {integrity: sha512-Dbamr7AIMvslKnNYsLFafaVORx4H0pvCA2MHqgtNCySMe1blImEyAEOzDmcgKAkgz4+uwoLz7demIrX+JBr/Xw==} dependencies: - '@babel/runtime': 7.22.5 + '@babel/runtime': 7.22.6 '@changesets/types': 5.2.1 fs-extra: 7.0.1 human-id: 1.0.2 @@ -877,7 +882,7 @@ packages: resolution: {integrity: sha512-2Pu9HDg/uP/IT10rbQ+4OrTQuxIWdKVUEdcw9/w7kZJv9NeHS6skJx1xuRiFyoGKwAzcHXnLp7csE99sj+O1YA==} dev: false - /@docsearch/react@3.5.1(@algolia/client-search@4.17.2)(@types/react@18.2.12)(react-dom@18.2.0)(react@18.2.0)(search-insights@2.6.0): + /@docsearch/react@3.5.1(@algolia/client-search@4.18.0)(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0)(search-insights@2.6.0): resolution: {integrity: sha512-t5mEODdLzZq4PTFAm/dvqcvZFdPDMdfPE5rJS5SC8OUq9mPzxEy6b+9THIqNM9P0ocCb4UC5jqBrxKclnuIbzQ==} peerDependencies: '@types/react': '>= 16.8.0 < 19.0.0' @@ -891,11 +896,11 @@ packages: react-dom: optional: true dependencies: - '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2)(search-insights@2.6.0) - '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.17.2)(algoliasearch@4.17.2) + '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0)(search-insights@2.6.0) + '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.18.0)(algoliasearch@4.18.0) '@docsearch/css': 3.5.1 - '@types/react': 18.2.12 - algoliasearch: 4.17.2 + '@types/react': 18.2.14 + algoliasearch: 4.18.0 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) transitivePeerDependencies: @@ -925,15 +930,15 @@ packages: cpu: [arm64] os: [android] requiresBuild: true + dev: false optional: true - /@esbuild/android-arm64@0.18.3: - resolution: {integrity: sha512-PgabCsoaEEnnOiF6rUhOBXgYoLFIrHWP6mfLOzuQ1oZ1lwBdTL0hp5ivC4K3Kvz3BD8EipjeQo6l0aty3nr4qQ==} + /@esbuild/android-arm64@0.18.11: + resolution: {integrity: sha512-snieiq75Z1z5LJX9cduSAjUr7vEI1OdlzFPMw0HH5YI7qQHDd3qs+WZoMrWYDsfRJSq36lIA6mfZBkvL46KoIw==} engines: {node: '>=12'} cpu: [arm64] os: [android] requiresBuild: true - dev: true optional: true /@esbuild/android-arm@0.17.19: @@ -942,15 +947,15 @@ packages: cpu: [arm] os: [android] requiresBuild: true + dev: false optional: true - /@esbuild/android-arm@0.18.3: - resolution: {integrity: sha512-QOn3VIlL6Qv1eHBpQB/s7simaZgGss2ASyxDOwYSLmc6vD0uuizZkuYawHmuLjWEm5wPwp0JQWhbpaYwwGevYw==} + /@esbuild/android-arm@0.18.11: + resolution: {integrity: sha512-q4qlUf5ucwbUJZXF5tEQ8LF7y0Nk4P58hOsGk3ucY0oCwgQqAnqXVbUuahCddVHfrxmpyewRpiTHwVHIETYu7Q==} engines: {node: '>=12'} cpu: [arm] os: [android] requiresBuild: true - dev: true optional: true /@esbuild/android-x64@0.17.19: @@ -959,15 +964,15 @@ packages: cpu: [x64] os: [android] requiresBuild: true + dev: false optional: true - /@esbuild/android-x64@0.18.3: - resolution: {integrity: sha512-1OkJf8wNX1W5ucbp5HrK+z42b9DINb4ix59oJH/PIsh9cyFMqjgRKtCBXg0zEWhkmP1k3egdfrnS7cDTpLH43g==} + /@esbuild/android-x64@0.18.11: + resolution: {integrity: sha512-iPuoxQEV34+hTF6FT7om+Qwziv1U519lEOvekXO9zaMMlT9+XneAhKL32DW3H7okrCOBQ44BMihE8dclbZtTuw==} engines: {node: '>=12'} cpu: [x64] os: [android] requiresBuild: true - dev: true optional: true /@esbuild/darwin-arm64@0.17.19: @@ -976,15 +981,15 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true + dev: false optional: true - /@esbuild/darwin-arm64@0.18.3: - resolution: {integrity: sha512-57aofORpY7wDAuMs6DeqpmgSnVfZ63RgGbR/BHdOSTqJgYvHDCMY7/o1myFntl3k0YxtLE3WAm56nMf4qy3UDw==} + /@esbuild/darwin-arm64@0.18.11: + resolution: {integrity: sha512-Gm0QkI3k402OpfMKyQEEMG0RuW2LQsSmI6OeO4El2ojJMoF5NLYb3qMIjvbG/lbMeLOGiW6ooU8xqc+S0fgz2w==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] requiresBuild: true - dev: true optional: true /@esbuild/darwin-x64@0.17.19: @@ -993,15 +998,15 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true + dev: false optional: true - /@esbuild/darwin-x64@0.18.3: - resolution: {integrity: sha512-NVBqMnxT9qvgu7Z322LUDlwjh4GDk6wEePyAQnHF9noxik/WvLFmr5v3Vgz5LSvqFducLCxsdmLztKhdpFW0Gg==} + /@esbuild/darwin-x64@0.18.11: + resolution: {integrity: sha512-N15Vzy0YNHu6cfyDOjiyfJlRJCB/ngKOAvoBf1qybG3eOq0SL2Lutzz9N7DYUbb7Q23XtHPn6lMDF6uWbGv9Fw==} engines: {node: '>=12'} cpu: [x64] os: [darwin] requiresBuild: true - dev: true optional: true /@esbuild/freebsd-arm64@0.17.19: @@ -1010,15 +1015,15 @@ packages: cpu: [arm64] os: [freebsd] requiresBuild: true + dev: false optional: true - /@esbuild/freebsd-arm64@0.18.3: - resolution: {integrity: sha512-XiLK1AsCk2wKxN7j8h9GXXCs8FPZhp07U0rnpwRkAVSVGgLaIWYSqpTRzKjAfqJiZlp+XKo1HwsmDdICEKB3Dg==} + /@esbuild/freebsd-arm64@0.18.11: + resolution: {integrity: sha512-atEyuq6a3omEY5qAh5jIORWk8MzFnCpSTUruBgeyN9jZq1K/QI9uke0ATi3MHu4L8c59CnIi4+1jDKMuqmR71A==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] requiresBuild: true - dev: true optional: true /@esbuild/freebsd-x64@0.17.19: @@ -1027,15 +1032,15 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true + dev: false optional: true - /@esbuild/freebsd-x64@0.18.3: - resolution: {integrity: sha512-xyITfrF0G3l1gwR79hvNCCWKQ/16uK14xNNPFgzjbIqF4EpBvhO6l3jrWxXFUW51z6dVIl2Szh3x3uIbBWzH1Q==} + /@esbuild/freebsd-x64@0.18.11: + resolution: {integrity: sha512-XtuPrEfBj/YYYnAAB7KcorzzpGTvOr/dTtXPGesRfmflqhA4LMF0Gh/n5+a9JBzPuJ+CGk17CA++Hmr1F/gI0Q==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] requiresBuild: true - dev: true optional: true /@esbuild/linux-arm64@0.17.19: @@ -1044,15 +1049,15 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-arm64@0.18.3: - resolution: {integrity: sha512-lsKUYVd8L/j2uNs8dhMjMsKC5MHYh77gR9EThu7YCeeFz1XpIkx1I4a7mhoVfPS2VPVD1pMCh+PgxuAHUcEmXw==} + /@esbuild/linux-arm64@0.18.11: + resolution: {integrity: sha512-c6Vh2WS9VFKxKZ2TvJdA7gdy0n6eSy+yunBvv4aqNCEhSWVor1TU43wNRp2YLO9Vng2G+W94aRz+ILDSwAiYog==} engines: {node: '>=12'} cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-arm@0.17.19: @@ -1061,15 +1066,15 @@ packages: cpu: [arm] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-arm@0.18.3: - resolution: {integrity: sha512-fc/T0QHMzvmnlF+kfD6bHLB8u+17gg13260p/E86yYjVoKNFjonL/+Y0GGQjMbFUas9QijqOa7pcR00a9RNkwg==} + /@esbuild/linux-arm@0.18.11: + resolution: {integrity: sha512-Idipz+Taso/toi2ETugShXjQ3S59b6m62KmLHkJlSq/cBejixmIydqrtM2XTvNCywFl3VC7SreSf6NV0i6sRyg==} engines: {node: '>=12'} cpu: [arm] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-ia32@0.17.19: @@ -1078,15 +1083,15 @@ packages: cpu: [ia32] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-ia32@0.18.3: - resolution: {integrity: sha512-EyfGWeOwRqK5Xj18vok0qv8IFBZ1/+hKV+cqD44oVhGsxHo9TmPtoSiDrWn8Sa2swq/VuO5Aiog6YPDj81oIkA==} + /@esbuild/linux-ia32@0.18.11: + resolution: {integrity: sha512-S3hkIF6KUqRh9n1Q0dSyYcWmcVa9Cg+mSoZEfFuzoYXXsk6196qndrM+ZiHNwpZKi3XOXpShZZ+9dfN5ykqjjw==} engines: {node: '>=12'} cpu: [ia32] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-loong64@0.17.19: @@ -1095,15 +1100,15 @@ packages: cpu: [loong64] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-loong64@0.18.3: - resolution: {integrity: sha512-PwXkcl3t0kSeYH5RuJIeh/fHOzKZd+ZdifAWzpVO+9TLWArutTFBJvOSkTZ3CcqQqNrTj1Qyo6nqE8MQj/a7cQ==} + /@esbuild/linux-loong64@0.18.11: + resolution: {integrity: sha512-MRESANOoObQINBA+RMZW+Z0TJWpibtE7cPFnahzyQHDCA9X9LOmGh68MVimZlM9J8n5Ia8lU773te6O3ILW8kw==} engines: {node: '>=12'} cpu: [loong64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-mips64el@0.17.19: @@ -1112,15 +1117,15 @@ packages: cpu: [mips64el] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-mips64el@0.18.3: - resolution: {integrity: sha512-CRVkkSXf5GQcq7Am2a2tdIn85oqi/bkjuPvhNqcdeTgI0xgNbqLnEPRy2AEGkRuaJWB5uCX1IC4sqnY8ET14Yg==} + /@esbuild/linux-mips64el@0.18.11: + resolution: {integrity: sha512-qVyPIZrXNMOLYegtD1u8EBccCrBVshxMrn5MkuFc3mEVsw7CCQHaqZ4jm9hbn4gWY95XFnb7i4SsT3eflxZsUg==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-ppc64@0.17.19: @@ -1129,15 +1134,15 @@ packages: cpu: [ppc64] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-ppc64@0.18.3: - resolution: {integrity: sha512-t7zK1Cheh0xvzfZbimztiE0wGnpV+YRsBg3tefcEBN3O4GzgLu6fFpA5HxEyVm3hHZW1jAC4OhoGEp7C5Ii6Eg==} + /@esbuild/linux-ppc64@0.18.11: + resolution: {integrity: sha512-T3yd8vJXfPirZaUOoA9D2ZjxZX4Gr3QuC3GztBJA6PklLotc/7sXTOuuRkhE9W/5JvJP/K9b99ayPNAD+R+4qQ==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-riscv64@0.17.19: @@ -1146,15 +1151,15 @@ packages: cpu: [riscv64] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-riscv64@0.18.3: - resolution: {integrity: sha512-fUZPtyCYih6y4lDYdSM4Yoax4nS7aH0/XixJStys+9tfp5cAlIAZhEVKOOdeGXmQn0IEyiUtlIsPnfObbeDQfQ==} + /@esbuild/linux-riscv64@0.18.11: + resolution: {integrity: sha512-evUoRPWiwuFk++snjH9e2cAjF5VVSTj+Dnf+rkO/Q20tRqv+644279TZlPK8nUGunjPAtQRCj1jQkDAvL6rm2w==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-s390x@0.17.19: @@ -1163,15 +1168,15 @@ packages: cpu: [s390x] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-s390x@0.18.3: - resolution: {integrity: sha512-oIcK2LqHWqfMERqjvaKJ3QJmycHn723HsXIv5gH4iGfmePfSj+gi0ZQv2h4bHUg2bs2gJtV0DlIjGhEuvdgxLw==} + /@esbuild/linux-s390x@0.18.11: + resolution: {integrity: sha512-/SlRJ15XR6i93gRWquRxYCfhTeC5PdqEapKoLbX63PLCmAkXZHY2uQm2l9bN0oPHBsOw2IswRZctMYS0MijFcg==} engines: {node: '>=12'} cpu: [s390x] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/linux-x64@0.17.19: @@ -1180,15 +1185,15 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: false optional: true - /@esbuild/linux-x64@0.18.3: - resolution: {integrity: sha512-RW9lpfZ6XZ6f5to2DJPvt0f/4RXEW229Xf++quVoW+YbnPrcapIJChtD/AmZ8cK3hglO/hXxJjs21pV0/l7L5w==} + /@esbuild/linux-x64@0.18.11: + resolution: {integrity: sha512-xcncej+wF16WEmIwPtCHi0qmx1FweBqgsRtEL1mSHLFR6/mb3GEZfLQnx+pUDfRDEM4DQF8dpXIW7eDOZl1IbA==} engines: {node: '>=12'} cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@esbuild/netbsd-x64@0.17.19: @@ -1197,15 +1202,15 @@ packages: cpu: [x64] os: [netbsd] requiresBuild: true + dev: false optional: true - /@esbuild/netbsd-x64@0.18.3: - resolution: {integrity: sha512-piZ2oBoaq58pKZvhgdV6PemlL30Uhd9GmmOkIGZYgChwNcyVSSl6iMEJxMzU7x44Lk9q+hJ6a343M/iVEMEvxA==} + /@esbuild/netbsd-x64@0.18.11: + resolution: {integrity: sha512-aSjMHj/F7BuS1CptSXNg6S3M4F3bLp5wfFPIJM+Km2NfIVfFKhdmfHF9frhiCLIGVzDziggqWll0B+9AUbud/Q==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] requiresBuild: true - dev: true optional: true /@esbuild/openbsd-x64@0.17.19: @@ -1214,15 +1219,15 @@ packages: cpu: [x64] os: [openbsd] requiresBuild: true + dev: false optional: true - /@esbuild/openbsd-x64@0.18.3: - resolution: {integrity: sha512-vaMfouYTz/4tKdQsXDccqhV6wgPEr+hfuxdNU5Pl/vQxYTsqcXv5DYEa5Z1RAxCoua5aEB+Uj5V7VT/bM92wxw==} + /@esbuild/openbsd-x64@0.18.11: + resolution: {integrity: sha512-tNBq+6XIBZtht0xJGv7IBB5XaSyvYPCm1PxJ33zLQONdZoLVM0bgGqUrXnJyiEguD9LU4AHiu+GCXy/Hm9LsdQ==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] requiresBuild: true - dev: true optional: true /@esbuild/sunos-x64@0.17.19: @@ -1231,15 +1236,15 @@ packages: cpu: [x64] os: [sunos] requiresBuild: true + dev: false optional: true - /@esbuild/sunos-x64@0.18.3: - resolution: {integrity: sha512-Fa3rNQQ9q1qwy9u2cdDvuGKy3jmPnPPMDdyy/qbn5d395Pb9hjLYiPzX9BozXMPJDlCNofSY7jN3miM9gyAdHA==} + /@esbuild/sunos-x64@0.18.11: + resolution: {integrity: sha512-kxfbDOrH4dHuAAOhr7D7EqaYf+W45LsAOOhAet99EyuxxQmjbk8M9N4ezHcEiCYPaiW8Dj3K26Z2V17Gt6p3ng==} engines: {node: '>=12'} cpu: [x64] os: [sunos] requiresBuild: true - dev: true optional: true /@esbuild/win32-arm64@0.17.19: @@ -1248,15 +1253,15 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true + dev: false optional: true - /@esbuild/win32-arm64@0.18.3: - resolution: {integrity: sha512-LPJC8ub+9uzyC6ygVmp00dAqet1q1DsZ/OldGIIBt+y+Ctd1OfnKNlzQgXK8nxwY1G8fAhklFSeSRRgAUJnR0w==} + /@esbuild/win32-arm64@0.18.11: + resolution: {integrity: sha512-Sh0dDRyk1Xi348idbal7lZyfSkjhJsdFeuC13zqdipsvMetlGiFQNdO+Yfp6f6B4FbyQm7qsk16yaZk25LChzg==} engines: {node: '>=12'} cpu: [arm64] os: [win32] requiresBuild: true - dev: true optional: true /@esbuild/win32-ia32@0.17.19: @@ -1265,15 +1270,15 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true + dev: false optional: true - /@esbuild/win32-ia32@0.18.3: - resolution: {integrity: sha512-WtUyRspyxZR6NTc2HG4xd9Wvz8lP4C6OUY1gAqisrf151HvXIxsK0mfAacFJNS7EN2wvPTgjP+SM8vgBOx5+zA==} + /@esbuild/win32-ia32@0.18.11: + resolution: {integrity: sha512-o9JUIKF1j0rqJTFbIoF4bXj6rvrTZYOrfRcGyL0Vm5uJ/j5CkBD/51tpdxe9lXEDouhRgdr/BYzUrDOvrWwJpg==} engines: {node: '>=12'} cpu: [ia32] os: [win32] requiresBuild: true - dev: true optional: true /@esbuild/win32-x64@0.17.19: @@ -1282,24 +1287,24 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: false optional: true - /@esbuild/win32-x64@0.18.3: - resolution: {integrity: sha512-Z8qCK4BkBm40j5KUM4NrkxYQS0R12cBO1NBVtI4vws6uwh1n/VaNu31Hm+n2cJUWdFbfH57PBghkhm9yLgmPfw==} + /@esbuild/win32-x64@0.18.11: + resolution: {integrity: sha512-rQI4cjLHd2hGsM1LqgDI7oOCYbQ6IBOVsX9ejuRMSze0GqXUG2ekwiKkiBU1pRGSeCqFFHxTrcEydB2Hyoz9CA==} engines: {node: '>=12'} cpu: [x64] os: [win32] requiresBuild: true - dev: true optional: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.42.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.44.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.42.0 + eslint: 8.44.0 eslint-visitor-keys: 3.4.1 dev: true @@ -1308,13 +1313,13 @@ packages: engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - /@eslint/eslintrc@2.0.3: - resolution: {integrity: sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==} + /@eslint/eslintrc@2.1.0: + resolution: {integrity: sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 - debug: 4.3.4(supports-color@9.3.1) - espree: 9.5.2 + debug: 4.3.4(supports-color@9.4.0) + espree: 9.6.0 globals: 13.20.0 ignore: 5.2.4 import-fresh: 3.3.0 @@ -1325,8 +1330,8 @@ packages: - supports-color dev: true - /@eslint/js@8.42.0: - resolution: {integrity: sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==} + /@eslint/js@8.44.0: + resolution: {integrity: sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -1335,7 +1340,7 @@ packages: engines: {node: '>=10.10.0'} dependencies: '@humanwhocodes/object-schema': 1.2.1 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -1350,6 +1355,13 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: true + /@jest/schemas@29.6.0: + resolution: {integrity: sha512-rxLjXyJBTL4LQeJW3aKo0M/+GkCOXsO+8i9Iu7eDb6KwtP65ayoDsitrdPBtujxQ88k4wI2FNYfa6TOGwSn6cQ==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dependencies: + '@sinclair/typebox': 0.27.8 + dev: true + /@jridgewell/gen-mapping@0.3.3: resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} engines: {node: '>=6.0.0'} @@ -1383,14 +1395,10 @@ packages: '@jridgewell/sourcemap-codec': 1.4.14 dev: false - /@ljharb/has-package-exports-patterns@0.0.2: - resolution: {integrity: sha512-4/RWEeXDO6bocPONheFe6gX/oQdP/bEpv0oL4HqjPP5DCenBSt0mHgahppY49N0CpsaqffdwPq+TlX9CYOq2Dw==} - dev: false - /@manypkg/find-root@1.1.0: resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} dependencies: - '@babel/runtime': 7.22.5 + '@babel/runtime': 7.22.6 '@types/node': 12.20.55 find-up: 4.1.0 fs-extra: 8.1.0 @@ -1399,7 +1407,7 @@ packages: /@manypkg/get-packages@1.1.3: resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==} dependencies: - '@babel/runtime': 7.22.5 + '@babel/runtime': 7.22.6 '@changesets/types': 4.1.0 '@manypkg/find-root': 1.1.0 fs-extra: 8.1.0 @@ -1407,6 +1415,11 @@ packages: read-yaml-file: 1.1.0 dev: true + /@nicolo-ribaudo/semver-v6@6.3.3: + resolution: {integrity: sha512-3Yc1fUTs69MG/uZbJlLSI3JISMn2UV2rg+1D/vROUqZyh3l6iYHCs7GMp+M40ZD7yOdDbYjJcU1oTJhrc+dGKg==} + hasBin: true + dev: false + /@nodelib/fs.scandir@2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -1425,35 +1438,39 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@pkgr/utils@2.4.1: - resolution: {integrity: sha512-JOqwkgFEyi+OROIyq7l4Jy28h/WwhDnG/cPkXG2Z1iFbubB6jsHW1NDvmyOzTBxHr3yg68YGirmh1JUgMqa+9w==} + /@pkgr/utils@2.4.2: + resolution: {integrity: sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dependencies: cross-spawn: 7.0.3 - fast-glob: 3.2.12 + fast-glob: 3.3.0 is-glob: 4.0.3 open: 9.1.0 picocolors: 1.0.0 - tslib: 2.5.3 + tslib: 2.6.0 dev: false - /@preact/signals-core@1.3.0: - resolution: {integrity: sha512-M+M3ZOtd1dtV/uasyk4SZu1vbfEJ4NeENv0F7F12nijZYedB5wSgbtZcuACyssnTznhF4ctUyrR0dZHuHfyWKA==} + /@preact/signals-core@1.3.1: + resolution: {integrity: sha512-DL+3kDssZ3UOMz9HufwSYE/gK0+TnT1jzegfF5rstgyPrnyfjz4BHAoxmzQA6Mkp4UlKe8qjsgl3v5a/obzNig==} dev: false - /@preact/signals@1.1.3(preact@10.15.1): - resolution: {integrity: sha512-N09DuAVvc90bBZVRwD+aFhtGyHAmJLhS3IFoawO/bYJRcil4k83nBOchpCEoS0s5+BXBpahgp0Mjf+IOqP57Og==} + /@preact/signals@1.1.4(preact@10.15.1): + resolution: {integrity: sha512-4s0U8yHfy6OzBjTx8lgG0JZGFq1y+ye7xLmaaI8SXyJ5p+jAtMKW40Mg3GDLISM5WyKnqbfrQ4SOmbq1VTBtTw==} peerDependencies: preact: 10.x dependencies: - '@preact/signals-core': 1.3.0 + '@preact/signals-core': 1.3.1 preact: 10.15.1 dev: false + /@sinclair/typebox@0.27.8: + resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} + dev: true + /@types/babel__core@7.20.1: resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.7 '@babel/types': 7.22.5 '@types/babel__generator': 7.6.4 '@types/babel__template': 7.4.1 @@ -1469,7 +1486,7 @@ packages: /@types/babel__template@7.4.1: resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} dependencies: - '@babel/parser': 7.22.5 + '@babel/parser': 7.22.7 '@babel/types': 7.22.5 dev: false @@ -1502,7 +1519,7 @@ packages: /@types/hast@2.3.4: resolution: {integrity: sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==} dependencies: - '@types/unist': 2.0.6 + '@types/unist': 3.0.0 dev: false /@types/is-ci@3.0.0: @@ -1526,7 +1543,7 @@ packages: /@types/mdast@3.0.11: resolution: {integrity: sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==} dependencies: - '@types/unist': 2.0.6 + '@types/unist': 3.0.0 dev: false /@types/minimist@1.2.2: @@ -1540,7 +1557,7 @@ packages: /@types/nlcst@1.0.0: resolution: {integrity: sha512-3TGCfOcy8R8mMQ4CNSNOe3PG66HttvjcLzCoOpvXvDtfWOTi+uT/rxeOKm/qEwbM4SNe1O/PjdiBK2YcTjU4OQ==} dependencies: - '@types/unist': 2.0.6 + '@types/unist': 3.0.0 dev: false /@types/node@12.20.55: @@ -1551,8 +1568,8 @@ packages: resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} dev: true - /@types/node@20.3.1: - resolution: {integrity: sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==} + /@types/node@20.4.0: + resolution: {integrity: sha512-jfT7iTf/4kOQ9S7CHV9BIyRaQqHu67mOjsIQBC3BKZvzvUB6zLxEwJ6sBE3ozcvP8kF6Uk5PXN0Q+c0dfhGX0g==} /@types/normalize-package-data@2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -1566,14 +1583,14 @@ packages: resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} dev: false - /@types/react-dom@18.2.5: - resolution: {integrity: sha512-sRQsOS/sCLnpQhR4DSKGTtWFE3FZjpQa86KPVbhUqdYMRZ9FEFcfAytKhR/vUG2rH1oFbOOej6cuD7MFSobDRQ==} + /@types/react-dom@18.2.6: + resolution: {integrity: sha512-2et4PDvg6PVCyS7fuTc4gPoksV58bW0RwSxWKcPRcHZf0PRUGq03TKcD/rUHe3azfV6/5/biUBJw+HhCQjaP0A==} dependencies: - '@types/react': 18.2.12 + '@types/react': 18.2.14 dev: false - /@types/react@18.2.12: - resolution: {integrity: sha512-ndmBMLCgn38v3SntMeoJaIrO6tGHYKMEBohCUmw8HoLLQdRMOIGXfeYaBTLe2lsFaSB3MOK1VXscYFnmLtTSmw==} + /@types/react@18.2.14: + resolution: {integrity: sha512-A0zjq+QN/O0Kpe30hA1GidzyFjatVvrpIvWLxD+xv67Vt91TWWgco9IvrJBkeyHm1trGaFS/FSGqPlhyeZRm0g==} dependencies: '@types/prop-types': 15.7.5 '@types/scheduler': 0.16.3 @@ -1587,17 +1604,13 @@ packages: /@types/sax@1.2.4: resolution: {integrity: sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==} dependencies: - '@types/node': 20.3.1 + '@types/node': 20.4.0 dev: true /@types/scheduler@0.16.3: resolution: {integrity: sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==} dev: false - /@types/semver@6.2.3: - resolution: {integrity: sha512-KQf+QAMWKMrtBMsB8/24w53tEsxllMj6TuA80TT/5igJalLI/zm0L3oXRbIAl4Ohfc85gyHX/jhMwsVkmhLU4A==} - dev: true - /@types/semver@7.5.0: resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} dev: true @@ -1606,12 +1619,16 @@ packages: resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==} dev: false + /@types/unist@3.0.0: + resolution: {integrity: sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w==} + dev: false + /@types/yargs-parser@21.0.0: resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==} dev: false - /@typescript-eslint/eslint-plugin@5.59.11(@typescript-eslint/parser@5.59.11)(eslint@8.42.0)(typescript@5.1.3): - resolution: {integrity: sha512-XxuOfTkCUiOSyBWIvHlUraLw/JT/6Io1365RO6ZuI88STKMavJZPNMU0lFcUTeQXEhHiv64CbxYxBNoDVSmghg==} + /@typescript-eslint/eslint-plugin@5.61.0(@typescript-eslint/parser@5.61.0)(eslint@8.44.0)(typescript@5.1.6): + resolution: {integrity: sha512-A5l/eUAug103qtkwccSCxn8ZRwT+7RXWkFECdA4Cvl1dOlDUgTpAOfSEElZn2uSUxhdDpnCdetrf0jvU4qrL+g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -1622,24 +1639,24 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.5.1 - '@typescript-eslint/parser': 5.59.11(eslint@8.42.0)(typescript@5.1.3) - '@typescript-eslint/scope-manager': 5.59.11 - '@typescript-eslint/type-utils': 5.59.11(eslint@8.42.0)(typescript@5.1.3) - '@typescript-eslint/utils': 5.59.11(eslint@8.42.0)(typescript@5.1.3) - debug: 4.3.4(supports-color@9.3.1) - eslint: 8.42.0 - grapheme-splitter: 1.0.4 + '@typescript-eslint/parser': 5.61.0(eslint@8.44.0)(typescript@5.1.6) + '@typescript-eslint/scope-manager': 5.61.0 + '@typescript-eslint/type-utils': 5.61.0(eslint@8.44.0)(typescript@5.1.6) + '@typescript-eslint/utils': 5.61.0(eslint@8.44.0)(typescript@5.1.6) + debug: 4.3.4(supports-color@9.4.0) + eslint: 8.44.0 + graphemer: 1.4.0 ignore: 5.2.4 natural-compare-lite: 1.4.0 - semver: 7.5.2 - tsutils: 3.21.0(typescript@5.1.3) - typescript: 5.1.3 + semver: 7.5.3 + tsutils: 3.21.0(typescript@5.1.6) + typescript: 5.1.6 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@5.59.11(eslint@8.42.0)(typescript@5.1.3): - resolution: {integrity: sha512-s9ZF3M+Nym6CAZEkJJeO2TFHHDsKAM3ecNkLuH4i4s8/RCPnF5JRip2GyviYkeEAcwGMJxkqG9h2dAsnA1nZpA==} + /@typescript-eslint/parser@5.61.0(eslint@8.44.0)(typescript@5.1.6): + resolution: {integrity: sha512-yGr4Sgyh8uO6fSi9hw3jAFXNBHbCtKKFMdX2IkT3ZqpKmtAq3lHS4ixB/COFuAIJpwl9/AqF7j72ZDWYKmIfvg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1648,26 +1665,26 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.59.11 - '@typescript-eslint/types': 5.59.11 - '@typescript-eslint/typescript-estree': 5.59.11(typescript@5.1.3) - debug: 4.3.4(supports-color@9.3.1) - eslint: 8.42.0 - typescript: 5.1.3 + '@typescript-eslint/scope-manager': 5.61.0 + '@typescript-eslint/types': 5.61.0 + '@typescript-eslint/typescript-estree': 5.61.0(typescript@5.1.6) + debug: 4.3.4(supports-color@9.4.0) + eslint: 8.44.0 + typescript: 5.1.6 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/scope-manager@5.59.11: - resolution: {integrity: sha512-dHFOsxoLFtrIcSj5h0QoBT/89hxQONwmn3FOQ0GOQcLOOXm+MIrS8zEAhs4tWl5MraxCY3ZJpaXQQdFMc2Tu+Q==} + /@typescript-eslint/scope-manager@5.61.0: + resolution: {integrity: sha512-W8VoMjoSg7f7nqAROEmTt6LoBpn81AegP7uKhhW5KzYlehs8VV0ZW0fIDVbcZRcaP3aPSW+JZFua+ysQN+m/Nw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.59.11 - '@typescript-eslint/visitor-keys': 5.59.11 + '@typescript-eslint/types': 5.61.0 + '@typescript-eslint/visitor-keys': 5.61.0 dev: true - /@typescript-eslint/type-utils@5.59.11(eslint@8.42.0)(typescript@5.1.3): - resolution: {integrity: sha512-LZqVY8hMiVRF2a7/swmkStMYSoXMFlzL6sXV6U/2gL5cwnLWQgLEG8tjWPpaE4rMIdZ6VKWwcffPlo1jPfk43g==} + /@typescript-eslint/type-utils@5.61.0(eslint@8.44.0)(typescript@5.1.6): + resolution: {integrity: sha512-kk8u//r+oVK2Aj3ph/26XdH0pbAkC2RiSjUYhKD+PExemG4XSjpGFeyZ/QM8lBOa7O8aGOU+/yEbMJgQv/DnCg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -1676,23 +1693,23 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 5.59.11(typescript@5.1.3) - '@typescript-eslint/utils': 5.59.11(eslint@8.42.0)(typescript@5.1.3) - debug: 4.3.4(supports-color@9.3.1) - eslint: 8.42.0 - tsutils: 3.21.0(typescript@5.1.3) - typescript: 5.1.3 + '@typescript-eslint/typescript-estree': 5.61.0(typescript@5.1.6) + '@typescript-eslint/utils': 5.61.0(eslint@8.44.0)(typescript@5.1.6) + debug: 4.3.4(supports-color@9.4.0) + eslint: 8.44.0 + tsutils: 3.21.0(typescript@5.1.6) + typescript: 5.1.6 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/types@5.59.11: - resolution: {integrity: sha512-epoN6R6tkvBYSc+cllrz+c2sOFWkbisJZWkOE+y3xHtvYaOE6Wk6B8e114McRJwFRjGvYdJwLXQH5c9osME/AA==} + /@typescript-eslint/types@5.61.0: + resolution: {integrity: sha512-ldyueo58KjngXpzloHUog/h9REmHl59G1b3a5Sng1GfBo14BkS3ZbMEb3693gnP1k//97lh7bKsp6/V/0v1veQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@typescript-eslint/typescript-estree@5.59.11(typescript@5.1.3): - resolution: {integrity: sha512-YupOpot5hJO0maupJXixi6l5ETdrITxeo5eBOeuV7RSKgYdU3G5cxO49/9WRnJq9EMrB7AuTSLH/bqOsXi7wPA==} + /@typescript-eslint/typescript-estree@5.61.0(typescript@5.1.6): + resolution: {integrity: sha512-Fud90PxONnnLZ36oR5ClJBLTLfU4pIWBmnvGwTbEa2cXIqj70AEDEmOmpkFComjBZ/037ueKrOdHuYmSFVD7Rw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -1700,89 +1717,88 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.59.11 - '@typescript-eslint/visitor-keys': 5.59.11 - debug: 4.3.4(supports-color@9.3.1) + '@typescript-eslint/types': 5.61.0 + '@typescript-eslint/visitor-keys': 5.61.0 + debug: 4.3.4(supports-color@9.4.0) globby: 11.1.0 is-glob: 4.0.3 - semver: 7.5.2 - tsutils: 3.21.0(typescript@5.1.3) - typescript: 5.1.3 + semver: 7.5.3 + tsutils: 3.21.0(typescript@5.1.6) + typescript: 5.1.6 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@5.59.11(eslint@8.42.0)(typescript@5.1.3): - resolution: {integrity: sha512-didu2rHSOMUdJThLk4aZ1Or8IcO3HzCw/ZvEjTTIfjIrcdd5cvSIwwDy2AOlE7htSNp7QIZ10fLMyRCveesMLg==} + /@typescript-eslint/utils@5.61.0(eslint@8.44.0)(typescript@5.1.6): + resolution: {integrity: sha512-mV6O+6VgQmVE6+xzlA91xifndPW9ElFW8vbSF0xCT/czPXVhwDewKila1jOyRwa9AE19zKnrr7Cg5S3pJVrTWQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.42.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.44.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 - '@typescript-eslint/scope-manager': 5.59.11 - '@typescript-eslint/types': 5.59.11 - '@typescript-eslint/typescript-estree': 5.59.11(typescript@5.1.3) - eslint: 8.42.0 + '@typescript-eslint/scope-manager': 5.61.0 + '@typescript-eslint/types': 5.61.0 + '@typescript-eslint/typescript-estree': 5.61.0(typescript@5.1.6) + eslint: 8.44.0 eslint-scope: 5.1.1 - semver: 7.5.2 + semver: 7.5.3 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/visitor-keys@5.59.11: - resolution: {integrity: sha512-KGYniTGG3AMTuKF9QBD7EIrvufkB6O6uX3knP73xbKLMpH+QRPcgnCxjWXSHjMRuOxFLovljqQgQpR0c7GvjoA==} + /@typescript-eslint/visitor-keys@5.61.0: + resolution: {integrity: sha512-50XQ5VdbWrX06mQXhy93WywSFZZGsv3EOjq+lqp6WC2t+j3mb6A9xYVdrRxafvK88vg9k9u+CT4l6D8PEatjKg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.59.11 + '@typescript-eslint/types': 5.61.0 eslint-visitor-keys: 3.4.1 dev: true - /@vitest/expect@0.32.0: - resolution: {integrity: sha512-VxVHhIxKw9Lux+O9bwLEEk2gzOUe93xuFHy9SzYWnnoYZFYg1NfBtnfnYWiJN7yooJ7KNElCK5YtA7DTZvtXtg==} + /@vitest/expect@0.33.0: + resolution: {integrity: sha512-sVNf+Gla3mhTCxNJx+wJLDPp/WcstOe0Ksqz4Vec51MmgMth/ia0MGFEkIZmVGeTL5HtjYR4Wl/ZxBxBXZJTzQ==} dependencies: - '@vitest/spy': 0.32.0 - '@vitest/utils': 0.32.0 + '@vitest/spy': 0.33.0 + '@vitest/utils': 0.33.0 chai: 4.3.7 dev: true - /@vitest/runner@0.32.0: - resolution: {integrity: sha512-QpCmRxftHkr72xt5A08xTEs9I4iWEXIOCHWhQQguWOKE4QH7DXSKZSOFibuwEIMAD7G0ERvtUyQn7iPWIqSwmw==} + /@vitest/runner@0.33.0: + resolution: {integrity: sha512-UPfACnmCB6HKRHTlcgCoBh6ppl6fDn+J/xR8dTufWiKt/74Y9bHci5CKB8tESSV82zKYtkBJo9whU3mNvfaisg==} dependencies: - '@vitest/utils': 0.32.0 - concordance: 5.0.4 + '@vitest/utils': 0.33.0 p-limit: 4.0.0 pathe: 1.1.1 dev: true - /@vitest/snapshot@0.32.0: - resolution: {integrity: sha512-yCKorPWjEnzpUxQpGlxulujTcSPgkblwGzAUEL+z01FTUg/YuCDZ8dxr9sHA08oO2EwxzHXNLjQKWJ2zc2a19Q==} + /@vitest/snapshot@0.33.0: + resolution: {integrity: sha512-tJjrl//qAHbyHajpFvr8Wsk8DIOODEebTu7pgBrP07iOepR5jYkLFiqLq2Ltxv+r0uptUb4izv1J8XBOwKkVYA==} dependencies: - magic-string: 0.30.0 + magic-string: 0.30.1 pathe: 1.1.1 - pretty-format: 27.5.1 + pretty-format: 29.6.1 dev: true - /@vitest/spy@0.32.0: - resolution: {integrity: sha512-MruAPlM0uyiq3d53BkwTeShXY0rYEfhNGQzVO5GHBmmX3clsxcWp79mMnkOVcV244sNTeDcHbcPFWIjOI4tZvw==} + /@vitest/spy@0.33.0: + resolution: {integrity: sha512-Kv+yZ4hnH1WdiAkPUQTpRxW8kGtH8VRTnus7ZTGovFYM1ZezJpvGtb9nPIjPnptHbsyIAxYZsEpVPYgtpjGnrg==} dependencies: tinyspy: 2.1.1 dev: true - /@vitest/utils@0.32.0: - resolution: {integrity: sha512-53yXunzx47MmbuvcOPpLaVljHaeSu1G2dHdmy7+9ngMnQIkBQcvwOcoclWFnxDMxFbnq8exAfh3aKSZaK71J5A==} + /@vitest/utils@0.33.0: + resolution: {integrity: sha512-pF1w22ic965sv+EN6uoePkAOTkAPWM03Ri/jXNyMIKBb/XHLDPfhLvf/Fa9g0YECevAIz56oVYXhodLvLQ/awA==} dependencies: - concordance: 5.0.4 + diff-sequences: 29.4.3 loupe: 2.3.6 - pretty-format: 27.5.1 + pretty-format: 29.6.1 dev: true - /@vscode/emmet-helper@2.8.9: - resolution: {integrity: sha512-ygpVStaePHt9aI9zk4NNJWI/NsRaeDSW1vQsZVmtpVRVCOdwYlsc3BfB/eppUu1OucT0x3OHDAzKcxnitjcSXQ==} + /@vscode/emmet-helper@2.9.2: + resolution: {integrity: sha512-MaGuyW+fa13q3aYsluKqclmh62Hgp0BpKIqS66fCxfOaBcVQ1OnMQxRRgQUYnCkxFISAQlkJ0qWWPyXjro1Qrg==} dependencies: - emmet: 2.4.4 + emmet: 2.4.5 jsonc-parser: 2.3.1 vscode-languageserver-textdocument: 1.0.8 vscode-languageserver-types: 3.17.3 @@ -1793,12 +1809,12 @@ packages: resolution: {integrity: sha512-/yrv59IEnmh655z1oeDnGcvMYwnEzNzHLgeYcQCkhYX0xBvYWrAuefoiLcPBUkMpJsb46bqQ6Yv4pwTTQ4d3Qg==} dev: false - /acorn-jsx@5.3.2(acorn@8.8.2): + /acorn-jsx@5.3.2(acorn@8.10.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.8.2 + acorn: 8.10.0 dev: true /acorn-walk@8.2.0: @@ -1806,17 +1822,16 @@ packages: engines: {node: '>=0.4.0'} dev: true - /acorn@8.8.2: - resolution: {integrity: sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==} + /acorn@8.10.0: + resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} engines: {node: '>=0.4.0'} hasBin: true - dev: true - /acorn@8.9.0: - resolution: {integrity: sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==} + /acorn@8.8.2: + resolution: {integrity: sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==} engines: {node: '>=0.4.0'} hasBin: true - dev: false + dev: true /aggregate-error@4.0.1: resolution: {integrity: sha512-0poP0T7el6Vq3rstR8Mn4V/IQrpBLO6POkUSrN7RhyY+GF/InCFShQzsQ39T25gkHhLgSLByyAz+Kjb+c2L98w==} @@ -1835,23 +1850,23 @@ packages: uri-js: 4.4.1 dev: true - /algoliasearch@4.17.2: - resolution: {integrity: sha512-VFu43JJNYIW74awp7oeQcQsPcxOhd8psqBDTfyNO2Zt6L1NqnNMTVnaIdQ+8dtKqUDBqQZp0szPxECvX8CK2Fg==} + /algoliasearch@4.18.0: + resolution: {integrity: sha512-pCuVxC1SVcpc08ENH32T4sLKSyzoU7TkRIDBMwSLfIiW+fq4znOmWDkAygHZ6pRcO9I1UJdqlfgnV7TRj+MXrA==} dependencies: - '@algolia/cache-browser-local-storage': 4.17.2 - '@algolia/cache-common': 4.17.2 - '@algolia/cache-in-memory': 4.17.2 - '@algolia/client-account': 4.17.2 - '@algolia/client-analytics': 4.17.2 - '@algolia/client-common': 4.17.2 - '@algolia/client-personalization': 4.17.2 - '@algolia/client-search': 4.17.2 - '@algolia/logger-common': 4.17.2 - '@algolia/logger-console': 4.17.2 - '@algolia/requester-browser-xhr': 4.17.2 - '@algolia/requester-common': 4.17.2 - '@algolia/requester-node-http': 4.17.2 - '@algolia/transporter': 4.17.2 + '@algolia/cache-browser-local-storage': 4.18.0 + '@algolia/cache-common': 4.18.0 + '@algolia/cache-in-memory': 4.18.0 + '@algolia/client-account': 4.18.0 + '@algolia/client-analytics': 4.18.0 + '@algolia/client-common': 4.18.0 + '@algolia/client-personalization': 4.18.0 + '@algolia/client-search': 4.18.0 + '@algolia/logger-common': 4.18.0 + '@algolia/logger-console': 4.18.0 + '@algolia/requester-browser-xhr': 4.18.0 + '@algolia/requester-common': 4.18.0 + '@algolia/requester-node-http': 4.18.0 + '@algolia/transporter': 4.18.0 dev: false /ansi-align@3.0.1: @@ -1953,8 +1968,8 @@ packages: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} dev: true - /astro@2.6.4(@types/node@20.3.1)(sass@1.63.4): - resolution: {integrity: sha512-YM5H9SLHflxCB/3H8S2Bi+1Lbwn/MA9Vl/eOZmkCT491gvBsyuKCTsoUas6fwggeKn+fIR2XpdYd2F+unQve3g==} + /astro@2.8.0(@types/node@20.4.0)(sass@1.63.6): + resolution: {integrity: sha512-bqdhE9039dzi0mqaWGO9rMk5HKxTn5TckxFmRPUdsV1qmbpghXtwuERHblfJu5etQofV6WVEyTrouG+BLRkqfA==} engines: {node: '>=16.12.0', npm: '>=6.14.0'} hasBin: true peerDependencies: @@ -1963,27 +1978,27 @@ packages: sharp: optional: true dependencies: - '@astrojs/compiler': 1.5.1 - '@astrojs/internal-helpers': 0.1.0 + '@astrojs/compiler': 1.5.4 + '@astrojs/internal-helpers': 0.1.1 '@astrojs/language-server': 1.0.8 - '@astrojs/markdown-remark': 2.2.1(astro@2.6.4) + '@astrojs/markdown-remark': 2.2.1(astro@2.8.0) '@astrojs/telemetry': 2.1.1 '@astrojs/webapi': 2.2.0 - '@babel/core': 7.22.5 - '@babel/generator': 7.22.5 - '@babel/parser': 7.22.5 - '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.5) - '@babel/traverse': 7.22.5 + '@babel/core': 7.22.8 + '@babel/generator': 7.22.7 + '@babel/parser': 7.22.7 + '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.8) + '@babel/traverse': 7.22.8 '@babel/types': 7.22.5 '@types/babel__core': 7.20.1 '@types/yargs-parser': 21.0.0 - acorn: 8.9.0 + acorn: 8.10.0 boxen: 6.2.1 chokidar: 3.5.3 ci-info: 3.8.0 common-ancestor-path: 1.0.1 cookie: 0.5.0 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) deepmerge-ts: 4.3.0 devalue: 4.3.2 diff: 5.1.0 @@ -1991,7 +2006,7 @@ packages: esbuild: 0.17.19 estree-walker: 3.0.0 execa: 6.1.0 - fast-glob: 3.2.12 + fast-glob: 3.3.0 github-slugger: 2.0.0 gray-matter: 4.0.3 html-escaper: 3.0.3 @@ -2005,24 +2020,24 @@ packages: preferred-pm: 3.0.3 prompts: 2.4.2 rehype: 12.0.1 - semver: 7.5.2 + semver: 7.5.3 server-destroy: 1.0.1 - shiki: 0.14.2 - slash: 4.0.0 + shiki: 0.14.3 string-width: 5.1.2 strip-ansi: 7.1.0 - supports-esm: 1.0.0 tsconfig-resolver: 3.0.1 - typescript: 5.1.3 + typescript: 5.1.6 unist-util-visit: 4.1.2 vfile: 5.3.7 - vite: 4.3.9(@types/node@20.3.1)(sass@1.63.4) - vitefu: 0.2.4(vite@4.3.9) + vite: 4.4.1(@types/node@20.4.0)(sass@1.63.6) + vitefu: 0.2.4(vite@4.4.1) + which-pm: 2.0.0 yargs-parser: 21.1.1 zod: 3.21.4 transitivePeerDependencies: - '@types/node' - less + - lightningcss - sass - stylus - sugarss @@ -2081,10 +2096,6 @@ packages: readable-stream: 3.6.2 dev: false - /blueimp-md5@2.19.0: - resolution: {integrity: sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==} - dev: true - /boxen@6.2.1: resolution: {integrity: sha512-H4PEsJXfFI/Pt8sjDWbHlQPx4zL/bvSQjcilJmaulGt5mLDorHOHpmdXAJcBcmru7PhYSp/cDMWRko4ZUMFkSw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -2136,8 +2147,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001504 - electron-to-chromium: 1.4.433 + caniuse-lite: 1.0.30001512 + electron-to-chromium: 1.4.451 node-releases: 2.0.12 update-browserslist-db: 1.0.11(browserslist@4.21.9) dev: false @@ -2208,8 +2219,8 @@ packages: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} - /caniuse-lite@1.0.30001504: - resolution: {integrity: sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q==} + /caniuse-lite@1.0.30001512: + resolution: {integrity: sha512-2S9nK0G/mE+jasCUsMPlARhRCts1ebcp2Ji8Y8PWi4NDE1iRdLCnEPHkEfeBrGC45L4isBx5ur3IQ6yTE2mRZw==} dev: false /ccount@2.0.1: @@ -2244,8 +2255,8 @@ packages: ansi-styles: 4.3.0 supports-color: 7.2.0 - /chalk@5.2.0: - resolution: {integrity: sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==} + /chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: false @@ -2361,20 +2372,6 @@ packages: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} dev: true - /concordance@5.0.4: - resolution: {integrity: sha512-OAcsnTEYu1ARJqWVGwf4zh4JDfHZEaSNlNccFmt8YjB2l/n19/PF2viLINHc57vO4FKIAFl2FWASIGZZWZ2Kxw==} - engines: {node: '>=10.18.0 <11 || >=12.14.0 <13 || >=14'} - dependencies: - date-time: 3.1.0 - esutils: 2.0.3 - fast-diff: 1.3.0 - js-string-escape: 1.0.1 - lodash: 4.17.21 - md5-hex: 3.0.1 - semver: 7.5.2 - well-known-symbols: 2.0.0 - dev: true - /convert-source-map@1.9.0: resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} dev: false @@ -2384,10 +2381,10 @@ packages: engines: {node: '>= 0.6'} dev: false - /cross-fetch@3.1.6: - resolution: {integrity: sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==} + /cross-fetch@3.1.8: + resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==} dependencies: - node-fetch: 2.6.11 + node-fetch: 2.6.12 transitivePeerDependencies: - encoding dev: true @@ -2449,14 +2446,7 @@ packages: resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} dev: true - /date-time@3.1.0: - resolution: {integrity: sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==} - engines: {node: '>=6'} - dependencies: - time-zone: 1.0.0 - dev: true - - /debug@4.3.4(supports-color@9.3.1): + /debug@4.3.4(supports-color@9.4.0): resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} peerDependencies: @@ -2466,7 +2456,7 @@ packages: optional: true dependencies: ms: 2.1.2 - supports-color: 9.3.1 + supports-color: 9.4.0 /decamelize-keys@1.1.1: resolution: {integrity: sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg==} @@ -2563,7 +2553,7 @@ packages: resolution: {integrity: sha512-tQbV/4u5WVB8HMJr08pgw0b6nG4RGt/tj+7Numvq+zqcvUFeMaIWWOUFltiU+6go8BSO2/ogsB4EasDaj0y68Q==} engines: {node: '>=14.16'} dependencies: - globby: 13.1.4 + globby: 13.2.2 graceful-fs: 4.2.11 is-glob: 4.0.3 is-path-cwd: 3.0.0 @@ -2587,6 +2577,11 @@ packages: resolution: {integrity: sha512-KqFl6pOgOW+Y6wJgu80rHpo2/3H07vr8ntR9rkkFIRETewbf5GaYYcakYfiKz89K+sLsuPkQIZaXDMjUObZwWg==} dev: false + /diff-sequences@29.4.3: + resolution: {integrity: sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + dev: true + /diff@5.1.0: resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} engines: {node: '>=0.3.1'} @@ -2624,12 +2619,12 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: false - /electron-to-chromium@1.4.433: - resolution: {integrity: sha512-MGO1k0w1RgrfdbLVwmXcDhHHuxCn2qRgR7dYsJvWFKDttvYPx6FNzCGG0c/fBBvzK2LDh3UV7Tt9awnHnvAAUQ==} + /electron-to-chromium@1.4.451: + resolution: {integrity: sha512-YYbXHIBxAHe3KWvGOJOuWa6f3tgow44rBW+QAuwVp2DvGqNZeE//K2MowNdWS7XE8li5cgQDrX1LdBr41LufkA==} dev: false - /emmet@2.4.4: - resolution: {integrity: sha512-v8Mwpjym55CS3EjJgiCLWUB3J2HSR93jhzXW325720u8KvYxdI2voYLstW3pHBxFz54H6jFjayR9G4LfTG0q+g==} + /emmet@2.4.5: + resolution: {integrity: sha512-xOiVNINJFh0dMik+KzXSEYbAnFLTnadEzanxj7+F15uIf6avQwu3uPa1wI/8AFtOWKZ8lHg7TjC83wXcPhgOPw==} dependencies: '@emmetio/abbreviation': 2.3.3 '@emmetio/css-abbreviation': 2.1.8 @@ -2751,36 +2746,36 @@ packages: '@esbuild/win32-arm64': 0.17.19 '@esbuild/win32-ia32': 0.17.19 '@esbuild/win32-x64': 0.17.19 + dev: false - /esbuild@0.18.3: - resolution: {integrity: sha512-eadWJC4CRpj93+miO5ZBlvCv+m2x6pzyNBznTvUeLFObMmxs1IMd8cCf6qiDVEZuDL6W8W7u+ZNW3GKEfOdDsA==} + /esbuild@0.18.11: + resolution: {integrity: sha512-i8u6mQF0JKJUlGR3OdFLKldJQMMs8OqM9Cc3UCi9XXziJ9WERM5bfkHaEAy0YAvPRMgqSW55W7xYn84XtEFTtA==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': 0.18.3 - '@esbuild/android-arm64': 0.18.3 - '@esbuild/android-x64': 0.18.3 - '@esbuild/darwin-arm64': 0.18.3 - '@esbuild/darwin-x64': 0.18.3 - '@esbuild/freebsd-arm64': 0.18.3 - '@esbuild/freebsd-x64': 0.18.3 - '@esbuild/linux-arm': 0.18.3 - '@esbuild/linux-arm64': 0.18.3 - '@esbuild/linux-ia32': 0.18.3 - '@esbuild/linux-loong64': 0.18.3 - '@esbuild/linux-mips64el': 0.18.3 - '@esbuild/linux-ppc64': 0.18.3 - '@esbuild/linux-riscv64': 0.18.3 - '@esbuild/linux-s390x': 0.18.3 - '@esbuild/linux-x64': 0.18.3 - '@esbuild/netbsd-x64': 0.18.3 - '@esbuild/openbsd-x64': 0.18.3 - '@esbuild/sunos-x64': 0.18.3 - '@esbuild/win32-arm64': 0.18.3 - '@esbuild/win32-ia32': 0.18.3 - '@esbuild/win32-x64': 0.18.3 - dev: true + '@esbuild/android-arm': 0.18.11 + '@esbuild/android-arm64': 0.18.11 + '@esbuild/android-x64': 0.18.11 + '@esbuild/darwin-arm64': 0.18.11 + '@esbuild/darwin-x64': 0.18.11 + '@esbuild/freebsd-arm64': 0.18.11 + '@esbuild/freebsd-x64': 0.18.11 + '@esbuild/linux-arm': 0.18.11 + '@esbuild/linux-arm64': 0.18.11 + '@esbuild/linux-ia32': 0.18.11 + '@esbuild/linux-loong64': 0.18.11 + '@esbuild/linux-mips64el': 0.18.11 + '@esbuild/linux-ppc64': 0.18.11 + '@esbuild/linux-riscv64': 0.18.11 + '@esbuild/linux-s390x': 0.18.11 + '@esbuild/linux-x64': 0.18.11 + '@esbuild/netbsd-x64': 0.18.11 + '@esbuild/openbsd-x64': 0.18.11 + '@esbuild/sunos-x64': 0.18.11 + '@esbuild/win32-arm64': 0.18.11 + '@esbuild/win32-ia32': 0.18.11 + '@esbuild/win32-x64': 0.18.11 /escalade@3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -2799,16 +2794,16 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - /eslint-config-prettier@8.8.0(eslint@8.42.0): + /eslint-config-prettier@8.8.0(eslint@8.44.0): resolution: {integrity: sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.42.0 + eslint: 8.44.0 dev: true - /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.42.0)(prettier@2.8.8): + /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.44.0)(prettier@2.8.8): resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -2819,8 +2814,8 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.42.0 - eslint-config-prettier: 8.8.0(eslint@8.42.0) + eslint: 8.44.0 + eslint-config-prettier: 8.8.0(eslint@8.44.0) prettier: 2.8.8 prettier-linter-helpers: 1.0.0 dev: true @@ -2846,27 +2841,27 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.42.0: - resolution: {integrity: sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==} + /eslint@8.44.0: + resolution: {integrity: sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.42.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.44.0) '@eslint-community/regexpp': 4.5.1 - '@eslint/eslintrc': 2.0.3 - '@eslint/js': 8.42.0 + '@eslint/eslintrc': 2.1.0 + '@eslint/js': 8.44.0 '@humanwhocodes/config-array': 0.11.10 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.0 eslint-visitor-keys: 3.4.1 - espree: 9.5.2 + espree: 9.6.0 esquery: 1.5.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 @@ -2886,7 +2881,7 @@ packages: lodash.merge: 4.6.2 minimatch: 3.1.2 natural-compare: 1.4.0 - optionator: 0.9.1 + optionator: 0.9.3 strip-ansi: 6.0.1 strip-json-comments: 3.1.1 text-table: 0.2.0 @@ -2894,12 +2889,12 @@ packages: - supports-color dev: true - /espree@9.5.2: - resolution: {integrity: sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==} + /espree@9.6.0: + resolution: {integrity: sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.8.2 - acorn-jsx: 5.3.2(acorn@8.8.2) + acorn: 8.10.0 + acorn-jsx: 5.3.2(acorn@8.10.0) eslint-visitor-keys: 3.4.1 dev: true @@ -3022,8 +3017,8 @@ packages: resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} dev: true - /fast-glob@3.2.12: - resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==} + /fast-glob@3.3.0: + resolution: {integrity: sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==} engines: {node: '>=8.6.0'} dependencies: '@nodelib/fs.stat': 2.0.5 @@ -3259,18 +3254,18 @@ packages: dependencies: array-union: 2.1.0 dir-glob: 3.0.1 - fast-glob: 3.2.12 + fast-glob: 3.3.0 ignore: 5.2.4 merge2: 1.4.1 slash: 3.0.0 dev: true - /globby@13.1.4: - resolution: {integrity: sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==} + /globby@13.2.2: + resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: dir-glob: 3.0.1 - fast-glob: 3.2.12 + fast-glob: 3.3.0 ignore: 5.2.4 merge2: 1.4.1 slash: 4.0.0 @@ -3320,12 +3315,6 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - /has-package-exports@1.3.0: - resolution: {integrity: sha512-e9OeXPQnmPhYoJ63lXC4wWe34TxEGZDZ3OQX9XRqp2VwsfLl3bQBy7VehLnd34g3ef8CmYlBLGqEMKXuz8YazQ==} - dependencies: - '@ljharb/has-package-exports-patterns': 0.0.2 - dev: false - /has-property-descriptors@1.0.0: resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} dependencies: @@ -3757,11 +3746,6 @@ packages: /isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - /js-string-escape@1.0.1: - resolution: {integrity: sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==} - engines: {node: '>= 0.8'} - dev: true - /js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -3896,15 +3880,11 @@ packages: resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==} dev: true - /lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} - dev: true - /log-symbols@5.1.0: resolution: {integrity: sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==} engines: {node: '>=12'} dependencies: - chalk: 5.2.0 + chalk: 5.3.0 is-unicode-supported: 1.3.0 dev: false @@ -3951,8 +3931,8 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: false - /magic-string@0.30.0: - resolution: {integrity: sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ==} + /magic-string@0.30.1: + resolution: {integrity: sha512-mbVKXPmS0z0G4XqFDCTllmDQ6coZzn94aMlb0o/A4HEHJCKcanlDZwYJgwnkmgD3jyWhUgj9VsPrfd972yPffA==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 @@ -3972,13 +3952,6 @@ packages: resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==} dev: false - /md5-hex@3.0.1: - resolution: {integrity: sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==} - engines: {node: '>=8'} - dependencies: - blueimp-md5: 2.19.0 - dev: true - /mdast-util-definitions@5.1.2: resolution: {integrity: sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==} dependencies: @@ -4384,7 +4357,7 @@ packages: resolution: {integrity: sha512-uD66tJj54JLYq0De10AhWycZWGQNUvDI55xPgk2sQM5kn1JYlhbCMTtEeT27+vAhW2FBQxLlOmS3pmA7/2z4aA==} dependencies: '@types/debug': 4.1.8 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) decode-named-character-reference: 1.0.2 micromark-core-commonmark: 1.1.0 micromark-factory-space: 1.1.0 @@ -4458,10 +4431,10 @@ packages: engines: {node: '>= 8.0.0'} dev: true - /mlly@1.3.0: - resolution: {integrity: sha512-HT5mcgIQKkOrZecOjOX3DJorTikWXwsBfpcr/MGBkhfWcjiqvnaL/9ppxvIUXfjT6xt4DVIAsN9fMUz1ev4bIw==} + /mlly@1.4.0: + resolution: {integrity: sha512-ua8PAThnTwpprIaU47EPeZ/bPUVp2QYBbWMphUQpVdBI3Lgqzm5KZQ45Agm3YJedHXaIHl6pBGabaLSUPPSptg==} dependencies: - acorn: 8.8.2 + acorn: 8.10.0 pathe: 1.1.1 pkg-types: 1.0.3 ufo: 1.1.2 @@ -4480,9 +4453,9 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - /nanostores@0.8.1: - resolution: {integrity: sha512-1ZCfQtII2XeFDrtqXL2cdQ/diGrLxzRB3YMyQjn8m7GSGQrJfGST2iuqMpWnS/ZlifhtjgR/SX0Jy6Uij6lRLA==} - engines: {node: ^16.0.0 || >=18.0.0} + /nanostores@0.9.3: + resolution: {integrity: sha512-KobZjcVyNndNrb5DAjfs0WG0lRcZu5Q1BOrfTOxokFLi25zFrWPjg+joXC6kuDqNfSt9fQwppyjUBkRPtsL+8w==} + engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} dev: true /natural-compare-lite@1.4.0: @@ -4503,8 +4476,8 @@ packages: '@types/nlcst': 1.0.0 dev: false - /node-fetch@2.6.11: - resolution: {integrity: sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==} + /node-fetch@2.6.12: + resolution: {integrity: sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==} engines: {node: 4.x || >=6.0.0} peerDependencies: encoding: ^0.1.0 @@ -4618,23 +4591,23 @@ packages: is-wsl: 2.2.0 dev: false - /optionator@0.9.1: - resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} + /optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} engines: {node: '>= 0.8.0'} dependencies: + '@aashutoshrathi/word-wrap': 1.2.6 deep-is: 0.1.4 fast-levenshtein: 2.0.6 levn: 0.4.1 prelude-ls: 1.2.1 type-check: 0.4.0 - word-wrap: 1.2.3 dev: true /ora@6.3.1: resolution: {integrity: sha512-ERAyNnZOfqM+Ao3RAvIXkYh5joP220yf59gVe2X/cI6SiCxIdi4c9HZKZD8R6q/RDXEje1THBju6iExiSsgJaQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: - chalk: 5.2.0 + chalk: 5.3.0 cli-cursor: 4.0.0 cli-spinners: 2.9.0 is-interactive: 2.0.0 @@ -4837,7 +4810,7 @@ packages: resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} dependencies: jsonc-parser: 3.2.0 - mlly: 1.3.0 + mlly: 1.4.0 pathe: 1.1.1 dev: true @@ -4848,8 +4821,8 @@ packages: find-up: 3.0.0 dev: false - /postcss@8.4.24: - resolution: {integrity: sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==} + /postcss@8.4.25: + resolution: {integrity: sha512-7taJ/8t2av0Z+sQEvNzCkpDynl0tX3uJMCODi6nT3PfASC7dYCWV9aQ+uiCf+KBD4SEFcu+GvJdGdwzQ6OSjCw==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.6 @@ -4894,7 +4867,7 @@ packages: resolution: {integrity: sha512-pYZXSbdq0eElvzoIMArzv1SBn1NUXzopjlcnt6Ql8VW32PjC12NovwBjXJ6rh8qQLi7vF8jNqAbraKW03UPfag==} engines: {node: ^14.15.0 || >=16.0.0, pnpm: '>=7.14.0'} dependencies: - '@astrojs/compiler': 1.5.1 + '@astrojs/compiler': 1.5.4 prettier: 2.8.8 sass-formatter: 0.7.6 synckit: 0.8.5 @@ -4905,13 +4878,13 @@ packages: engines: {node: '>=10.13.0'} hasBin: true - /pretty-format@27.5.1: - resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==} - engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} + /pretty-format@29.6.1: + resolution: {integrity: sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==} + engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - ansi-regex: 5.0.1 + '@jest/schemas': 29.6.0 ansi-styles: 5.2.0 - react-is: 17.0.2 + react-is: 18.2.0 dev: true /pretty-format@3.8.0: @@ -4967,8 +4940,8 @@ packages: scheduler: 0.23.0 dev: false - /react-is@17.0.2: - resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + /react-is@18.2.0: + resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} dev: true /react@18.2.0: @@ -5237,8 +5210,8 @@ packages: glob: 7.2.3 dev: true - /rollup@3.25.1: - resolution: {integrity: sha512-tywOR+rwIt5m2ZAWSe5AIJcTat8vGlnPFAv15ycCrw33t6iFsXZ6mzHVFh2psSjxQPmI+xgzMZZizUAukBI4aQ==} + /rollup@3.26.2: + resolution: {integrity: sha512-6umBIGVz93er97pMgQO08LuH3m6PUb3jlDUUGFsNJB6VgTCUaDFpupf5JfU30529m/UKOgmiX+uY6Sx8cOYpLA==} engines: {node: '>=14.18.0', npm: '>=8.0.0'} hasBin: true optionalDependencies: @@ -5289,8 +5262,8 @@ packages: suf-log: 2.5.3 dev: false - /sass@1.63.4: - resolution: {integrity: sha512-Sx/+weUmK+oiIlI+9sdD0wZHsqpbgQg8wSwSnGBjwb5GwqFhYNwwnI+UWZtLjKvKyFlKkatRK235qQ3mokyPoQ==} + /sass@1.63.6: + resolution: {integrity: sha512-MJuxGMHzaOW7ipp+1KdELtqKbfAWbH7OLIdoSMnVe3EXPMTmxTmlaZDCTsgIpPCs3w99lLo9/zDKkOrJuT5byw==} engines: {node: '>=14.0.0'} hasBin: true dependencies: @@ -5326,17 +5299,20 @@ packages: hasBin: true dev: true - /semver@6.3.0: - resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} - hasBin: true - dev: false - /semver@7.5.2: resolution: {integrity: sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==} engines: {node: '>=10'} hasBin: true dependencies: lru-cache: 6.0.0 + dev: true + + /semver@7.5.3: + resolution: {integrity: sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 /server-destroy@1.0.1: resolution: {integrity: sha512-rb+9B5YBIEzYcD6x2VKidaa+cqYBJQKnU4oe4E3ANwRRN56yk/ua1YCJT1n21NTS8w6CcOclAKNP3PhdCXKYtQ==} @@ -5372,8 +5348,8 @@ packages: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} dev: true - /shiki@0.14.2: - resolution: {integrity: sha512-ltSZlSLOuSY0M0Y75KA+ieRaZ0Trf5Wl3gutE7jzLuIcWxLp5i/uEnLoQWNvgKXQ5OMpGkJnVMRLAuzjc0LJ2A==} + /shiki@0.14.3: + resolution: {integrity: sha512-U3S/a+b0KS+UkTyMjoNojvTgrBHjgp7L6ovhFVZsXmBGnVdQ4K4U9oK0z63w538S91ATngv1vXigHCSWOwnr+g==} dependencies: ansi-sequence-parser: 1.1.0 jsonc-parser: 3.2.0 @@ -5419,6 +5395,7 @@ packages: /slash@4.0.0: resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==} engines: {node: '>=12'} + dev: true /smartwrap@2.0.2: resolution: {integrity: sha512-vCsKNQxb7PnCNd2wY1WClWifAc2lwqsG8OaswpJkVJsvMGcnEntdTCDajZCkk93Ay1U3t/9puJmb525Rg5MZBA==} @@ -5642,16 +5619,10 @@ packages: dependencies: has-flag: 4.0.0 - /supports-color@9.3.1: - resolution: {integrity: sha512-knBY82pjmnIzK3NifMo3RxEIRD9E0kIzV4BKcyTZ9+9kWgLMxd4PrsTSMoFQUabgRBbF8KOLRDCyKgNV+iK44Q==} + /supports-color@9.4.0: + resolution: {integrity: sha512-VL+lNrEoIXww1coLPOmiEmK/0sGigko5COxI09KzHc2VJXJsQ37UaQ+8quuxjDeA7+KnLGTWRyOXSLLR2Wb4jw==} engines: {node: '>=12'} - /supports-esm@1.0.0: - resolution: {integrity: sha512-96Am8CDqUaC0I2+C/swJ0yEvM8ZnGn4unoers/LSdE4umhX7mELzqyLzx3HnZAluq5PXIsGMKqa7NkqaeHMPcg==} - dependencies: - has-package-exports: 1.3.0 - dev: false - /supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -5660,8 +5631,8 @@ packages: resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==} engines: {node: ^14.18.0 || >=16.0.0} dependencies: - '@pkgr/utils': 2.4.1 - tslib: 2.5.3 + '@pkgr/utils': 2.4.2 + tslib: 2.6.0 dev: false /term-size@2.2.1: @@ -5673,17 +5644,12 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true - /time-zone@1.0.0: - resolution: {integrity: sha512-TIsDdtKo6+XrPtiTm1ssmMngN1sAhyKnTO2kunQWqNPWIVvCm15Wmw4SWInwTVgJ5u/Tr04+8Ei9TNcw4x4ONA==} - engines: {node: '>=4'} - dev: true - /tinybench@2.5.0: resolution: {integrity: sha512-kRwSG8Zx4tjF9ZiyH4bhaebu+EDz1BOx9hOigYHlUW4xxI/wKIUQUqo018UlU4ar6ATPBsaMrdbKZ+tmPdohFA==} dev: true - /tinypool@0.5.0: - resolution: {integrity: sha512-paHQtnrlS1QZYKF/GnLoOM/DN9fqaGOFbCbxzAhwniySnzl9Ebk8w73/dd34DAhe/obUbPAOldTyYXQZxnPBPQ==} + /tinypool@0.6.0: + resolution: {integrity: sha512-FdswUUo5SxRizcBc6b1GSuLpLjisa8N8qMyYoP3rl+bym+QauhtJP5bvZY1ytt8krKGmMLYIRl36HBZfeAoqhQ==} engines: {node: '>=14.0.0'} dev: true @@ -5752,18 +5718,18 @@ packages: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} dev: true - /tslib@2.5.3: - resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==} + /tslib@2.6.0: + resolution: {integrity: sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==} dev: false - /tsutils@3.21.0(typescript@5.1.3): + /tsutils@3.21.0(typescript@5.1.6): resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 - typescript: 5.1.3 + typescript: 5.1.6 dev: true /tty-table@4.2.1: @@ -5829,8 +5795,8 @@ packages: is-typed-array: 1.1.10 dev: true - /typescript@5.1.3: - resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==} + /typescript@5.1.6: + resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==} engines: {node: '>=14.17'} hasBin: true @@ -5992,20 +5958,21 @@ packages: vfile-message: 3.1.4 dev: false - /vite-node@0.32.0(@types/node@20.3.1)(supports-color@9.3.1): - resolution: {integrity: sha512-220P/y8YacYAU+daOAqiGEFXx2A8AwjadDzQqos6wSukjvvTWNqleJSwoUn0ckyNdjHIKoxn93Nh1vWBqEKr3Q==} + /vite-node@0.33.0(@types/node@20.4.0)(supports-color@9.4.0): + resolution: {integrity: sha512-19FpHYbwWWxDr73ruNahC+vtEdza52kA90Qb3La98yZ0xULqV8A5JLNPUff0f5zID4984tW7l3DH2przTJUZSw==} engines: {node: '>=v14.18.0'} hasBin: true dependencies: cac: 6.7.14 - debug: 4.3.4(supports-color@9.3.1) - mlly: 1.3.0 + debug: 4.3.4(supports-color@9.4.0) + mlly: 1.4.0 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.3.9(@types/node@20.3.1)(sass@1.63.4) + vite: 4.4.1(@types/node@20.4.0)(sass@1.63.6) transitivePeerDependencies: - '@types/node' - less + - lightningcss - sass - stylus - sugarss @@ -6013,13 +5980,14 @@ packages: - terser dev: true - /vite@4.3.9(@types/node@20.3.1)(sass@1.63.4): - resolution: {integrity: sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==} + /vite@4.4.1(@types/node@20.4.0)(sass@1.63.6): + resolution: {integrity: sha512-8mmwPlsy7t+ZcTme7vdbVGuZ3Tri+lrLXr6hsF5UHdyYyARPPPMtM16QlqC9TZuCd5j3NmWs1rwka3cVSRHZTw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: '@types/node': '>= 14' less: '*' + lightningcss: ^1.21.0 sass: '*' stylus: '*' sugarss: '*' @@ -6029,6 +5997,8 @@ packages: optional: true less: optional: true + lightningcss: + optional: true sass: optional: true stylus: @@ -6038,15 +6008,15 @@ packages: terser: optional: true dependencies: - '@types/node': 20.3.1 - esbuild: 0.17.19 - postcss: 8.4.24 - rollup: 3.25.1 - sass: 1.63.4 + '@types/node': 20.4.0 + esbuild: 0.18.11 + postcss: 8.4.25 + rollup: 3.26.2 + sass: 1.63.6 optionalDependencies: fsevents: 2.3.2 - /vitefu@0.2.4(vite@4.3.9): + /vitefu@0.2.4(vite@4.4.1): resolution: {integrity: sha512-fanAXjSaf9xXtOOeno8wZXIhgia+CZury481LsDaV++lSvcU2R9Ch2bPh3PYFyoHW+w9LqAeYRISVQjUIew14g==} peerDependencies: vite: ^3.0.0 || ^4.0.0 @@ -6054,23 +6024,23 @@ packages: vite: optional: true dependencies: - vite: 4.3.9(@types/node@20.3.1)(sass@1.63.4) + vite: 4.4.1(@types/node@20.4.0)(sass@1.63.6) dev: false - /vitest-fetch-mock@0.2.2(vitest@0.32.0): + /vitest-fetch-mock@0.2.2(vitest@0.33.0): resolution: {integrity: sha512-XmH6QgTSjCWrqXoPREIdbj40T7i1xnGmAsTAgfckoO75W1IEHKR8hcPCQ7SO16RsdW1t85oUm6pcQRLeBgjVYQ==} engines: {node: '>=14.14.0'} peerDependencies: vitest: '>=0.16.0' dependencies: - cross-fetch: 3.1.6 - vitest: 0.32.0(supports-color@9.3.1) + cross-fetch: 3.1.8 + vitest: 0.33.0(supports-color@9.4.0) transitivePeerDependencies: - encoding dev: true - /vitest@0.32.0(supports-color@9.3.1): - resolution: {integrity: sha512-SW83o629gCqnV3BqBnTxhB10DAwzwEx3z+rqYZESehUB+eWsJxwcBQx7CKy0otuGMJTYh7qCVuUX23HkftGl/Q==} + /vitest@0.33.0(supports-color@9.4.0): + resolution: {integrity: sha512-1CxaugJ50xskkQ0e969R/hW47za4YXDUfWJDxip1hwbnhUjYolpfUn2AMOulqG/Dtd9WYAtkHmM/m3yKVrEejQ==} engines: {node: '>=v14.18.0'} hasBin: true peerDependencies: @@ -6102,31 +6072,31 @@ packages: dependencies: '@types/chai': 4.3.5 '@types/chai-subset': 1.3.3 - '@types/node': 20.3.1 - '@vitest/expect': 0.32.0 - '@vitest/runner': 0.32.0 - '@vitest/snapshot': 0.32.0 - '@vitest/spy': 0.32.0 - '@vitest/utils': 0.32.0 - acorn: 8.8.2 + '@types/node': 20.4.0 + '@vitest/expect': 0.33.0 + '@vitest/runner': 0.33.0 + '@vitest/snapshot': 0.33.0 + '@vitest/spy': 0.33.0 + '@vitest/utils': 0.33.0 + acorn: 8.10.0 acorn-walk: 8.2.0 cac: 6.7.14 chai: 4.3.7 - concordance: 5.0.4 - debug: 4.3.4(supports-color@9.3.1) + debug: 4.3.4(supports-color@9.4.0) local-pkg: 0.4.3 - magic-string: 0.30.0 + magic-string: 0.30.1 pathe: 1.1.1 picocolors: 1.0.0 std-env: 3.3.3 strip-literal: 1.0.1 tinybench: 2.5.0 - tinypool: 0.5.0 - vite: 4.3.9(@types/node@20.3.1)(sass@1.63.4) - vite-node: 0.32.0(@types/node@20.3.1)(supports-color@9.3.1) + tinypool: 0.6.0 + vite: 4.4.1(@types/node@20.4.0)(sass@1.63.6) + vite-node: 0.33.0(@types/node@20.4.0)(supports-color@9.4.0) why-is-node-running: 2.2.2 transitivePeerDependencies: - less + - lightningcss - sass - stylus - sugarss @@ -6208,11 +6178,6 @@ packages: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} dev: true - /well-known-symbols@2.0.0: - resolution: {integrity: sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==} - engines: {node: '>=6'} - dev: true - /whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} dependencies: @@ -6288,11 +6253,6 @@ packages: string-width: 5.1.2 dev: false - /word-wrap@1.2.3: - resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==} - engines: {node: '>=0.10.0'} - dev: true - /wrap-ansi@6.2.0: resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} engines: {node: '>=8'}