diff --git a/providers/src/github/v00.00.00000/services/actions.yaml b/providers/src/github/v00.00.00000/services/actions.yaml index f566ed97..344bc9bd 100644 --- a/providers/src/github/v00.00.00000/services/actions.yaml +++ b/providers/src/github/v00.00.00000/services/actions.yaml @@ -30558,7 +30558,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/org_secrets/methods/get_org_secret' - $ref: '#/components/x-stackQL-resources/org_secrets/methods/list_org_secrets' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/org_secrets/methods/create_or_update_org_secret' update: [] delete: - $ref: '#/components/x-stackQL-resources/org_secrets/methods/delete_org_secret' @@ -31091,70 +31092,82 @@ components: insert: [] update: [] delete: [] - secrets: - id: github.actions.secrets - name: secrets - title: Secrets + environment_secrets: + id: github.actions.environment_secrets + name: environment_secrets + title: Environment Secrets methods: - list_repo_secrets: + list_environment_secrets: operation: - $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets/get' + $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets/get' response: mediaType: application/json openAPIDocKey: '200' - get_repo_secret: + get_environment_secret: operation: - $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/get' + $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/get' response: mediaType: application/json openAPIDocKey: '200' - create_or_update_repo_secret: + create_or_update_environment_secret: operation: - $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/put' + $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/put' response: mediaType: application/json openAPIDocKey: '200' - delete_repo_secret: + delete_environment_secret: operation: - $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/delete' + $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/delete' response: mediaType: application/json openAPIDocKey: '200' - list_environment_secrets: + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/environment_secrets/methods/get_environment_secret' + - $ref: '#/components/x-stackQL-resources/environment_secrets/methods/list_environment_secrets' + insert: + - $ref: '#/components/x-stackQL-resources/environment_secrets/methods/create_or_update_environment_secret' + update: [] + delete: + - $ref: '#/components/x-stackQL-resources/environment_secrets/methods/delete_environment_secret' + secrets: + id: github.actions.secrets + name: secrets + title: Secrets + methods: + list_repo_secrets: operation: - $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets/get' + $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets/get' response: mediaType: application/json openAPIDocKey: '200' - get_environment_secret: + get_repo_secret: operation: - $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/get' + $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/get' response: mediaType: application/json openAPIDocKey: '200' - create_or_update_environment_secret: + create_or_update_repo_secret: operation: - $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/put' + $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/put' response: mediaType: application/json openAPIDocKey: '200' - delete_environment_secret: + delete_repo_secret: operation: - $ref: '#/paths/~1repositories~1{repository_id}~1environments~1{environment_name}~1secrets~1{secret_name}/delete' + $ref: '#/paths/~1repos~1{owner}~1{repo}~1actions~1secrets~1{secret_name}/delete' response: mediaType: application/json openAPIDocKey: '200' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/secrets/methods/get_repo_secret' - - $ref: '#/components/x-stackQL-resources/secrets/methods/get_environment_secret' - $ref: '#/components/x-stackQL-resources/secrets/methods/list_repo_secrets' - - $ref: '#/components/x-stackQL-resources/secrets/methods/list_environment_secrets' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/secrets/methods/create_or_update_repo_secret' update: [] delete: - $ref: '#/components/x-stackQL-resources/secrets/methods/delete_repo_secret' - - $ref: '#/components/x-stackQL-resources/secrets/methods/delete_environment_secret' variables: id: github.actions.variables name: variables diff --git a/providers/src/github/v00.00.00000/services/activity.yaml b/providers/src/github/v00.00.00000/services/activity.yaml index f65a26cf..979c55ce 100644 --- a/providers/src/github/v00.00.00000/services/activity.yaml +++ b/providers/src/github/v00.00.00000/services/activity.yaml @@ -29329,6 +29329,84 @@ components: insert: [] update: [] delete: [] + repo_stargazers_extended: + id: github.activity.repo_stargazers_extended + name: repo_stargazers_extended + title: Repo Stargazers extened response + methods: + list_stargazers_for_repo: + operation: + $ref: '#/paths/~1repos~1{owner}~1{repo}~1stargazers/get' + response: + mediaType: application/vnd.github.star+json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/repo_stargazers_extended/methods/list_stargazers_for_repo' + insert: [] + update: [] + delete: [] + repo_stargazers_with_timestamps: + name: repo_stargazers_with_timestamps + id: github.activity.repo_stargazers_with_timestamps + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + SELECT + owner, + repo, + JSON_EXTRACT(user, '$.login') as login, + JSON_EXTRACT(user, '$.id') as id, + JSON_EXTRACT(user, '$.node_id') as node_id, + JSON_EXTRACT(user, '$.type') as type, + JSON_EXTRACT(user, '$.url') as url, + JSON_EXTRACT(user, '$.avatar_url') as avatar_url, + JSON_EXTRACT(user, '$.events_url') as events_url, + JSON_EXTRACT(user, '$.followers_url') as followers_url, + JSON_EXTRACT(user, '$.following_url') as following_url, + JSON_EXTRACT(user, '$.gists_url') as gists_url, + JSON_EXTRACT(user, '$.gravatar_id') as gravatar_id, + JSON_EXTRACT(user, '$.html_url') as html_url, + JSON_EXTRACT(user, '$.organizations_url') as organizations_url, + JSON_EXTRACT(user, '$.received_events_url') as received_events_url, + JSON_EXTRACT(user, '$.repos_url') as repos_url, + JSON_EXTRACT(user, '$.site_admin') as site_admin, + JSON_EXTRACT(user, '$.starred_url') as starred_url, + JSON_EXTRACT(user, '$.subscriptions_url') as subscriptions_url, + starred_at + FROM + github.activity.repo_stargazers_extended + WHERE owner = 'stackql' and repo = 'stackql' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + SELECT + owner, + repo, + json_extract_path_text(user, 'login') as login, + json_extract_path_text(user, 'id') as id, + json_extract_path_text(user, 'node_id') as node_id, + json_extract_path_text(user, 'type') as type, + json_extract_path_text(user, 'url') as url, + json_extract_path_text(user, 'avatar_url') as avatar_url, + json_extract_path_text(user, 'events_url') as events_url, + json_extract_path_text(user, 'followers_url') as followers_url, + json_extract_path_text(user, 'following_url') as following_url, + json_extract_path_text(user, 'gists_url') as gists_url, + json_extract_path_text(user, 'gravatar_id') as gravatar_id, + json_extract_path_text(user, 'html_url') as html_url, + json_extract_path_text(user, 'organizations_url') as organizations_url, + json_extract_path_text(user, 'received_events_url') as received_events_url, + json_extract_path_text(user, 'repos_url') as repos_url, + json_extract_path_text(user, 'site_admin') as site_admin, + json_extract_path_text(user, 'starred_url') as starred_url, + json_extract_path_text(user, 'subscriptions_url') as subscriptions_url, + starred_at + FROM + github.activity.repo_stargazers_extended + WHERE owner = 'stackql' and repo = 'stackql' repo_watchers: id: github.activity.repo_watchers name: repo_watchers @@ -30063,6 +30141,11 @@ paths: $ref: '#/components/examples/simple-user-items-default-response' alternative-response-with-star-creation-timestamps: $ref: '#/components/examples/stargazer-items-alternative-response-with-star-creation-timestamps' + application/vnd.github.star+json: + schema: + type: array + items: + $ref: '#/components/schemas/stargazer' headers: Link: $ref: '#/components/headers/link' diff --git a/providers/src/github/v00.00.00000/services/codespaces.yaml b/providers/src/github/v00.00.00000/services/codespaces.yaml index c2e1a0aa..f52fe35b 100644 --- a/providers/src/github/v00.00.00000/services/codespaces.yaml +++ b/providers/src/github/v00.00.00000/services/codespaces.yaml @@ -29662,7 +29662,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/organization_secrets/methods/get_org_secret' - $ref: '#/components/x-stackQL-resources/organization_secrets/methods/list_org_secrets' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/organization_secrets/methods/create_or_update_org_secret' update: [] delete: - $ref: '#/components/x-stackQL-resources/organization_secrets/methods/delete_org_secret' @@ -29882,7 +29883,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/repository_secrets/methods/get_repo_secret' - $ref: '#/components/x-stackQL-resources/repository_secrets/methods/list_repo_secrets' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/repository_secrets/methods/create_or_update_repo_secret' update: [] delete: - $ref: '#/components/x-stackQL-resources/repository_secrets/methods/delete_repo_secret' @@ -29919,7 +29921,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/secrets/methods/get_secret_for_authenticated_user' - $ref: '#/components/x-stackQL-resources/secrets/methods/list_secrets_for_authenticated_user' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/secrets/methods/create_or_update_secret_for_authenticated_user' update: [] delete: - $ref: '#/components/x-stackQL-resources/secrets/methods/delete_secret_for_authenticated_user' diff --git a/providers/src/github/v00.00.00000/services/dependabot.yaml b/providers/src/github/v00.00.00000/services/dependabot.yaml index 8920dad4..b8180606 100644 --- a/providers/src/github/v00.00.00000/services/dependabot.yaml +++ b/providers/src/github/v00.00.00000/services/dependabot.yaml @@ -28314,7 +28314,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/org_secrets/methods/get_org_secret' - $ref: '#/components/x-stackQL-resources/org_secrets/methods/list_org_secrets' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/org_secrets/methods/create_or_update_org_secret' update: [] delete: - $ref: '#/components/x-stackQL-resources/org_secrets/methods/delete_org_secret' @@ -28441,7 +28442,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/secrets/methods/get_repo_secret' - $ref: '#/components/x-stackQL-resources/secrets/methods/list_repo_secrets' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/secrets/methods/create_or_update_repo_secret' update: [] delete: - $ref: '#/components/x-stackQL-resources/secrets/methods/delete_repo_secret' diff --git a/providers/src/github/v00.00.00000/services/repos.yaml b/providers/src/github/v00.00.00000/services/repos.yaml index 7069a3e7..099d34e0 100644 --- a/providers/src/github/v00.00.00000/services/repos.yaml +++ b/providers/src/github/v00.00.00000/services/repos.yaml @@ -34864,7 +34864,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/contents/methods/get_readme_in_directory' - $ref: '#/components/x-stackQL-resources/contents/methods/get_readme' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/contents/methods/create_or_update_file_contents' update: [] delete: - $ref: '#/components/x-stackQL-resources/contents/methods/delete_file' @@ -34987,7 +34988,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/environments/methods/get_environment' - $ref: '#/components/x-stackQL-resources/environments/methods/get_all_environments' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/environments/methods/create_or_update_environment' update: [] delete: - $ref: '#/components/x-stackQL-resources/environments/methods/delete_an_environment'