@jurislm/woodpecker-ci-plugin 1.1.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codex-plugin/plugin.json +1 -2
- package/README.md +43 -19
- package/api/manifest.json +8 -0
- package/contracts/woodpecker-mcp-v2.json +2653 -0
- package/dist/api.d.ts +11 -0
- package/dist/api.js +23 -0
- package/dist/api.js.map +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +49 -7
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +2 -5
- package/dist/config.js +3 -30
- package/dist/config.js.map +1 -1
- package/dist/errors.d.ts +14 -0
- package/dist/errors.js +29 -0
- package/dist/errors.js.map +1 -1
- package/dist/generated/operations.d.ts +1 -0
- package/dist/generated/operations.js +105 -118
- package/dist/generated/operations.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +19 -35
- package/dist/server.js.map +1 -1
- package/dist/tools/pipelines.d.ts +3 -0
- package/dist/tools/pipelines.js +47 -0
- package/dist/tools/pipelines.js.map +1 -0
- package/openapi/woodpecker-dev.yaml +4747 -0
- package/package.json +6 -4
- package/plugin.json +1 -1
- package/skills/woodpecker-ci/SKILL.md +1 -1
- package/.app.json +0 -3
- package/dist/generated/woodpecker-zod.d.ts +0 -1229
- package/dist/generated/woodpecker-zod.js +0 -56
- package/dist/generated/woodpecker-zod.js.map +0 -1
|
@@ -1,123 +1,110 @@
|
|
|
1
1
|
// Generated by scripts/generate-openapi.ts.
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export const operations = [
|
|
4
|
-
{ name: "woodpecker_list_agents", method: "GET", path: "/agents", description: "
|
|
5
|
-
{ name: "woodpecker_create_new_agent", method: "POST", path: "/agents", description: "
|
|
6
|
-
{ name: "woodpecker_delete_agent", method: "DELETE", path: "/agents/{agent_id}", description: "
|
|
7
|
-
{ name: "woodpecker_get_agent", method: "GET", path: "/agents/{agent_id}", description: "
|
|
8
|
-
{ name: "woodpecker_update_agent", method: "PATCH", path: "/agents/{agent_id}", description: "
|
|
9
|
-
{ name: "woodpecker_list_agent_tasks", method: "GET", path: "/agents/{agent_id}/tasks", description: "
|
|
10
|
-
{ name: "woodpecker_provide_pipeline_status_information_ccmenu_tool", method: "GET", path: "/badges/{repo_id}/cc.xml", description: "
|
|
11
|
-
{ name: "woodpecker_get_status_pipeline_as_svg_badge", method: "GET", path: "/badges/{repo_id}/status.svg", description: "
|
|
12
|
-
{ name: "
|
|
13
|
-
{ name: "
|
|
14
|
-
{ name: "
|
|
15
|
-
{ name: "
|
|
16
|
-
{ name: "
|
|
17
|
-
{ name: "
|
|
18
|
-
{ name: "
|
|
19
|
-
{ name: "
|
|
20
|
-
{ name: "
|
|
21
|
-
{ name: "
|
|
22
|
-
{ name: "
|
|
23
|
-
{ name: "
|
|
24
|
-
{ name: "
|
|
25
|
-
{ name: "
|
|
26
|
-
{ name: "
|
|
27
|
-
{ name: "
|
|
28
|
-
{ name: "
|
|
29
|
-
{ name: "
|
|
30
|
-
{ name: "
|
|
31
|
-
{ name: "
|
|
32
|
-
{ name: "
|
|
33
|
-
{ name: "
|
|
34
|
-
{ name: "
|
|
35
|
-
{ name: "
|
|
36
|
-
{ name: "
|
|
37
|
-
{ name: "
|
|
38
|
-
{ name: "
|
|
39
|
-
{ name: "
|
|
40
|
-
{ name: "
|
|
41
|
-
{ name: "
|
|
42
|
-
{ name: "
|
|
43
|
-
{ name: "
|
|
44
|
-
{ name: "
|
|
45
|
-
{ name: "
|
|
46
|
-
{ name: "
|
|
47
|
-
{ name: "
|
|
48
|
-
{ name: "
|
|
49
|
-
{ name: "
|
|
50
|
-
{ name: "
|
|
51
|
-
{ name: "
|
|
52
|
-
{ name: "
|
|
53
|
-
{ name: "
|
|
54
|
-
{ name: "
|
|
55
|
-
{ name: "
|
|
56
|
-
{ name: "
|
|
57
|
-
{ name: "
|
|
58
|
-
{ name: "
|
|
59
|
-
{ name: "
|
|
60
|
-
{ name: "
|
|
61
|
-
{ name: "
|
|
62
|
-
{ name: "
|
|
63
|
-
{ name: "
|
|
64
|
-
{ name: "
|
|
65
|
-
{ name: "
|
|
66
|
-
{ name: "
|
|
67
|
-
{ name: "
|
|
68
|
-
{ name: "
|
|
69
|
-
{ name: "
|
|
70
|
-
{ name: "
|
|
71
|
-
{ name: "
|
|
72
|
-
{ name: "
|
|
73
|
-
{ name: "
|
|
74
|
-
{ name: "
|
|
75
|
-
{ name: "
|
|
76
|
-
{ name: "
|
|
77
|
-
{ name: "
|
|
78
|
-
{ name: "
|
|
79
|
-
{ name: "
|
|
80
|
-
{ name: "
|
|
81
|
-
{ name: "
|
|
82
|
-
{ name: "
|
|
83
|
-
{ name: "
|
|
84
|
-
{ name: "
|
|
85
|
-
{ name: "
|
|
86
|
-
{ name: "
|
|
87
|
-
{ name: "
|
|
88
|
-
{ name: "
|
|
89
|
-
{ name: "
|
|
90
|
-
{ name: "
|
|
91
|
-
{ name: "
|
|
92
|
-
{ name: "
|
|
93
|
-
{ name: "
|
|
94
|
-
{ name: "
|
|
95
|
-
{ name: "
|
|
96
|
-
{ name: "
|
|
97
|
-
{ name: "
|
|
98
|
-
{ name: "
|
|
99
|
-
{ name: "
|
|
100
|
-
{ name: "
|
|
101
|
-
{ name: "
|
|
102
|
-
{ name: "
|
|
103
|
-
{ name: "
|
|
104
|
-
{ name: "
|
|
105
|
-
{ name: "
|
|
106
|
-
{ name: "
|
|
107
|
-
{ name: "
|
|
108
|
-
{ name: "
|
|
109
|
-
{ name: "woodpecker_stream_events_like_pipeline_updates", method: "GET", path: "/stream/events", description: "Use this when an agent needs to stream events like pipeline updates.", inputSchema: z.object({ duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: true, inputSchemaHash: "4be151af5ea94b8032b0ab5f8ea34757935fee87da8afc3bd801ebcf7b3cd608", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
110
|
-
{ name: "woodpecker_stream_logs_pipeline_step", method: "GET", path: "/stream/logs/{repo_id}/{pipeline}/{step_id}", description: "Use this when an agent needs to stream logs of a pipeline step.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline": z.number().int(), "step_id": z.number().int(), duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline" }, { location: "path", name: "step_id" }], stream: true, inputSchemaHash: "f07a5481c47aa2931aebabf0d9a18f755a5dff4dff06d5049727adcb9d964a7d", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
111
|
-
{ name: "woodpecker_get_currently_authenticated_user", method: "GET", path: "/user", description: "Use this when an agent needs to get the currently authenticated user.", inputSchema: z.object({}), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
112
|
-
{ name: "woodpecker_get_currently_authenticated_users_pipeline_feed", method: "GET", path: "/user/feed", description: "Use this when an agent needs to get the currently authenticated users pipeline feed.", inputSchema: z.object({}), responseSchema: z.array(z.object({ "author": z.string().optional(), "author_avatar": z.string().optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "finished": z.number().int().optional(), "full_name": z.string().optional(), "id": z.number().int().optional(), "message": z.string().describe("// Deprecated").optional(), "number": z.number().int().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "repo_id": z.number().int().optional(), "started": z.number().int().optional(), "status": z.string().optional(), "tag_title": z.string().optional(), "title": z.string().optional() })), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "baee75469b6396066081044fa961f96ac14ea9ed1fa006c076fee7729320c240", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
113
|
-
{ name: "woodpecker_get_user_s_repositories", method: "GET", path: "/user/repos", description: "Use this when an agent needs to get user's repositories.", inputSchema: z.object({ "all": z.boolean().optional(), "name": z.string().optional() }), responseSchema: z.array(z.object({ "active": z.boolean().optional(), "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "avatar_url": z.string().optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "clone_url": z.string().optional(), "clone_url_ssh": z.string().optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "default_branch": z.string().optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge.").optional(), "forge_url": z.string().optional(), "full_name": z.string().optional(), "has_forge_name_conflict": z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id").optional(), "has_no_forge_repo": z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore").optional(), "id": z.number().int().optional(), "last_pipeline": z.object({ "author": z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event").optional(), "author_avatar": z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit").optional(), "author_email": z.string().optional(), "branch": z.string().optional(), "cancel_info": z.object({ "canceled_by_step": z.string().optional(), "canceled_by_user": z.string().optional(), "superseded_by": z.number().int().optional() }).optional(), "changed_files": z.array(z.string()).optional(), "commit": z.string().optional(), "created": z.number().int().optional(), "cron": z.string().describe("name of the cron job").optional(), "deploy_task": z.string().optional(), "deploy_to": z.string().optional(), "errors": z.array(z.object({ "data": z.any().optional(), "is_warning": z.boolean().optional(), "message": z.string().optional(), "type": z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]).optional() })).optional(), "event": z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]).optional(), "event_reason": z.array(z.string()).optional(), "finished": z.number().int().optional(), "forge_url": z.string().optional(), "from_fork": z.boolean().optional(), "id": z.number().int().optional(), "is_prerelease": z.boolean().describe("deprecated, use release.is_prerelease instead").optional(), "message": z.string().optional(), "number": z.number().int().optional(), "parent": z.number().int().optional(), "pr_draft": z.boolean().optional(), "pr_labels": z.array(z.string()).optional(), "pr_milestone": z.string().optional(), "ref": z.string().optional(), "refspec": z.string().optional(), "release": z.object({ "is_prerelease": z.boolean().optional(), "title": z.string().optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New").optional(), "rerun_count": z.number().int().optional(), "reviewed": z.number().int().optional(), "reviewed_by": z.string().optional(), "sender": z.string().describe("uses reported user for webhooks and name of cron for cron pipelines").optional(), "started": z.number().int().optional(), "status": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "tag_title": z.string().optional(), "timestamp": z.number().int().optional(), "title": z.string().describe("// Deprecated").optional(), "updated": z.number().int().optional(), "variables": z.record(z.string(), z.string()).optional(), "version": z.string().optional(), "workflows": z.array(z.object({ "agent_id": z.number().int().optional(), "children": z.array(z.object({ "error": z.string().optional(), "exit_code": z.number().int().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "ppid": z.number().int().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional(), "type": z.enum(["clone", "service", "plugin", "commands", "cache"]).optional(), "uuid": z.string().optional() })).optional(), "environ": z.record(z.string(), z.string()).optional(), "error": z.string().optional(), "finished": z.number().int().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "pid": z.number().int().optional(), "pipeline_id": z.number().int().optional(), "platform": z.string().optional(), "started": z.number().int().optional(), "state": z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]).optional() })).optional() }).optional(), "name": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "org_id": z.number().int().optional(), "owner": z.string().optional(), "pr_enabled": z.boolean().optional(), "private": z.boolean().optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.enum(["none", "forks", "pull_requests", "all_events"]).optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.enum(["public", "private", "internal"]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "all" }, { location: "query", name: "name" }], stream: false, inputSchemaHash: "247449d19cc6dc8f42e65a84ab188d512587e5d581ab479f046fb672fdfc2e56", responseSchemaHash: "3b237bf935b96e17d91414a7d36568fa8a56f2a3aacf27f94c8367ea4dc6753e", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
114
|
-
{ name: "woodpecker_reset_token", method: "DELETE", path: "/user/token", description: "Use this when an agent needs to reset a token.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
115
|
-
{ name: "woodpecker_return_token_current_user_as_string", method: "POST", path: "/user/token", description: "Use this when an agent needs to return the token of the current user as string.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
116
|
-
{ name: "woodpecker_list_users", method: "GET", path: "/users", description: "Use this when an agent needs to list users.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "3dc7f67a1bad8fdc3af0a9b5fc96aeb3a57116571f656aea3f59996367293fa7", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
117
|
-
{ name: "woodpecker_create_user", method: "POST", path: "/users", description: "Use this when an agent needs to create a user.", inputSchema: z.object({ body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "9706f03799be617684bab5eea10180cc63890213acae49b1af45e7c70837d938", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
118
|
-
{ name: "woodpecker_delete_user", method: "DELETE", path: "/users/{login}", description: "Use this when an agent needs to delete a user.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "e08ff1775904c477bdd3f649793337074b66b69a1def9e2b1636f80c5e3ecc55", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
119
|
-
{ name: "woodpecker_get_user", method: "GET", path: "/users/{login}", description: "Use this when an agent needs to get a user.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "e08ff1775904c477bdd3f649793337074b66b69a1def9e2b1636f80c5e3ecc55", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
120
|
-
{ name: "woodpecker_update_user", method: "PATCH", path: "/users/{login}", description: "Use this when an agent needs to update a user.", inputSchema: z.object({ "login": z.string(), body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }], stream: false, inputSchemaHash: "df6ff49d0666b054d2d9e98174e0d56376a10e00b43b05a32f32266bf4744e8c", responseSchemaHash: "3e0d2c624af8354286a7eb06e0e957acce14a1532122364ee4cb0b035d19b33f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
121
|
-
{ name: "woodpecker_get_version", method: "GET", path: "/version", description: "Use this when an agent needs to get version.", inputSchema: z.object({}), responseSchema: z.object({ "source": z.string().optional(), "version": z.string().optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1c685f431fc75ff4b1e6d01a6fffae51df45e5c566f7bcc17943507a9da6093f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }
|
|
4
|
+
{ name: "woodpecker_list_agents", title: "List agents", method: "GET", path: "/agents", description: "List agents for Woodpecker CI.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "backend": z.union([z.string(), z.null()]).optional(), "capacity": z.union([z.number().int(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "custom_labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "filters": z.union([z.record(z.string(), z.string()).describe("Server side enforced agent filters"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_contact": z.union([z.number().int(), z.null()]).optional(), "last_work": z.union([z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler"), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "no_schedule": z.union([z.boolean(), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default"), z.null()]).optional(), "owner_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "f13056d5d204d4b19303bff26a3aad200f40ca4c5c01c0ad59f5b1126288bbfd", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
5
|
+
{ name: "woodpecker_create_new_agent", title: "Create a new agent", method: "POST", path: "/agents", description: "Create a new agent for Woodpecker CI.", inputSchema: z.object({ body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.union([z.string(), z.null()]).optional(), "capacity": z.union([z.number().int(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "custom_labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "filters": z.union([z.record(z.string(), z.string()).describe("Server side enforced agent filters"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_contact": z.union([z.number().int(), z.null()]).optional(), "last_work": z.union([z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler"), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "no_schedule": z.union([z.boolean(), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default"), z.null()]).optional(), "owner_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "cd6d7cc87d4371647bb168a39fdbdf589efb306a632c111264a78ccf9a0e82e2", responseSchemaHash: "15bc3195eb3b5b006ec018f2bb22a73dcda05dd8d4b1c1e231ca4168be8070fd", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
6
|
+
{ name: "woodpecker_delete_agent", title: "Delete an agent", method: "DELETE", path: "/agents/{agent_id}", description: "Delete an agent for Woodpecker CI.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "98a6abdc55666fe6c062ea20acba1e02f94a495ec22f0ce49a51e2459522e580", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
7
|
+
{ name: "woodpecker_get_agent", title: "Get an agent", method: "GET", path: "/agents/{agent_id}", description: "Get an agent for Woodpecker CI.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.object({ "backend": z.union([z.string(), z.null()]).optional(), "capacity": z.union([z.number().int(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "custom_labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "filters": z.union([z.record(z.string(), z.string()).describe("Server side enforced agent filters"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_contact": z.union([z.number().int(), z.null()]).optional(), "last_work": z.union([z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler"), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "no_schedule": z.union([z.boolean(), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default"), z.null()]).optional(), "owner_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "98a6abdc55666fe6c062ea20acba1e02f94a495ec22f0ce49a51e2459522e580", responseSchemaHash: "15bc3195eb3b5b006ec018f2bb22a73dcda05dd8d4b1c1e231ca4168be8070fd", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
8
|
+
{ name: "woodpecker_update_agent", title: "Update an agent", method: "PATCH", path: "/agents/{agent_id}", description: "Update an agent for Woodpecker CI.", inputSchema: z.object({ "agent_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.union([z.string(), z.null()]).optional(), "capacity": z.union([z.number().int(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "custom_labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "filters": z.union([z.record(z.string(), z.string()).describe("Server side enforced agent filters"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_contact": z.union([z.number().int(), z.null()]).optional(), "last_work": z.union([z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler"), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "no_schedule": z.union([z.boolean(), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default"), z.null()]).optional(), "owner_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "f8d89947877a8aa73e1483e243757c71a4ee23c0d6606d2abd9c49c659d26e2f", responseSchemaHash: "15bc3195eb3b5b006ec018f2bb22a73dcda05dd8d4b1c1e231ca4168be8070fd", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
9
|
+
{ name: "woodpecker_list_agent_tasks", title: "List agent tasks", method: "GET", path: "/agents/{agent_id}/tasks", description: "List agent tasks for Woodpecker CI.", inputSchema: z.object({ "agent_id": z.number().int() }), responseSchema: z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "concurrency_group": z.union([z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies."), z.null()]).optional(), "concurrency_limit": z.union([z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited."), z.null()]).optional(), "created": z.union([z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines."), z.null()]).optional(), "dep_status": z.union([z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])), z.null()]).optional(), "dependencies": z.union([z.array(z.string()), z.null()]).optional(), "id": z.union([z.string(), z.null()]).optional(), "labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "run_on": z.union([z.array(z.string()), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "98a6abdc55666fe6c062ea20acba1e02f94a495ec22f0ce49a51e2459522e580", responseSchemaHash: "6e1b0f22d4e949d50e46bef0e19326df3c5c85d39362faf7b0045426ece03d89", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
10
|
+
{ name: "woodpecker_provide_pipeline_status_information_ccmenu_tool", title: "Provide pipeline status information to the CCMenu tool", method: "GET", path: "/badges/{repo_id}/cc.xml", description: "Provide pipeline status information to the CCMenu tool for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
11
|
+
{ name: "woodpecker_get_status_pipeline_as_svg_badge", title: "Get status of pipeline as SVG badge", method: "GET", path: "/badges/{repo_id}/status.svg", description: "Get status of pipeline as SVG badge for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
12
|
+
{ name: "woodpecker_list_forges", title: "List forges", method: "GET", path: "/forges", description: "List forges for Woodpecker CI.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "additional_options": z.union([z.record(z.string(), z.any()), z.null()]).optional(), "client": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "oauth_host": z.union([z.string().describe("public url for oauth if different from url"), z.null()]).optional(), "orgs": z.union([z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones"), z.null()]).optional(), "skip_verify": z.union([z.boolean(), z.null()]).optional(), "type": z.union([z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]), z.null()]).optional(), "url": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "5ab2b283da02d169221d16889e52928e146f27ddc54a9d102e331a3c028c545f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
13
|
+
{ name: "woodpecker_create_new_forge", title: "Create a new forge", method: "POST", path: "/forges", description: "Create a new forge for Woodpecker CI.", inputSchema: z.object({ body: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_client_secret": z.string().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }) }), responseSchema: z.object({ "additional_options": z.union([z.record(z.string(), z.any()), z.null()]).optional(), "client": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "oauth_host": z.union([z.string().describe("public url for oauth if different from url"), z.null()]).optional(), "orgs": z.union([z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones"), z.null()]).optional(), "skip_verify": z.union([z.boolean(), z.null()]).optional(), "type": z.union([z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]), z.null()]).optional(), "url": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "9e3f026519c89f5bb0a65d1728d30c1740451d84fe612180a586208662169885", responseSchemaHash: "1f83752b381b01c72d0755ce2cdc16c01284115b18e1eef6aeefa0da63d81e45", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
14
|
+
{ name: "woodpecker_delete_forge", title: "Delete a forge", method: "DELETE", path: "/forges/{forge_id}", description: "Delete a forge for Woodpecker CI.", inputSchema: z.object({ "forge_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, inputSchemaHash: "3529d520df7b3ec2ed1deafa0a1a7a6fa9cb073372b7387eea0174d8b7f18426", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
15
|
+
{ name: "woodpecker_get_forge", title: "Get a forge", method: "GET", path: "/forges/{forge_id}", description: "Get a forge for Woodpecker CI.", inputSchema: z.object({ "forge_id": z.number().int() }), responseSchema: z.object({ "additional_options": z.union([z.record(z.string(), z.any()), z.null()]).optional(), "client": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "oauth_host": z.union([z.string().describe("public url for oauth if different from url"), z.null()]).optional(), "orgs": z.union([z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones"), z.null()]).optional(), "skip_verify": z.union([z.boolean(), z.null()]).optional(), "type": z.union([z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]), z.null()]).optional(), "url": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, inputSchemaHash: "3529d520df7b3ec2ed1deafa0a1a7a6fa9cb073372b7387eea0174d8b7f18426", responseSchemaHash: "1f83752b381b01c72d0755ce2cdc16c01284115b18e1eef6aeefa0da63d81e45", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
16
|
+
{ name: "woodpecker_update_forge", title: "Update a forge", method: "PATCH", path: "/forges/{forge_id}", description: "Update a forge for Woodpecker CI.", inputSchema: z.object({ "forge_id": z.number().int(), body: z.object({ "additional_options": z.record(z.string(), z.any()).optional(), "client": z.string().optional(), "id": z.number().int().optional(), "oauth_client_secret": z.string().optional(), "oauth_host": z.string().describe("public url for oauth if different from url").optional(), "orgs": z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones").optional(), "skip_verify": z.boolean().optional(), "type": z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]).optional(), "url": z.string().optional() }) }), responseSchema: z.object({ "additional_options": z.union([z.record(z.string(), z.any()), z.null()]).optional(), "client": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "oauth_host": z.union([z.string().describe("public url for oauth if different from url"), z.null()]).optional(), "orgs": z.union([z.array(z.string()).describe("members of those orgs may log in using this forge, in addition to the globally allowed ones"), z.null()]).optional(), "skip_verify": z.union([z.boolean(), z.null()]).optional(), "type": z.union([z.enum(["github", "gitlab", "gitea", "forgejo", "bitbucket", "bitbucket-dc", "addon"]), z.null()]).optional(), "url": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "forge_id" }], stream: false, inputSchemaHash: "8dcafb0276e9bf76f970c270cf6380c230792f5fbc1b6eb825558065362f088c", responseSchemaHash: "1f83752b381b01c72d0755ce2cdc16c01284115b18e1eef6aeefa0da63d81e45", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
17
|
+
{ name: "woodpecker_health_information", title: "Health information", method: "GET", path: "/healthz", description: "Health information for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
18
|
+
{ name: "woodpecker_incoming_webhook_from_forge", title: "Incoming webhook from forge", method: "POST", path: "/hook", description: "Incoming webhook from forge for Woodpecker CI.", inputSchema: z.object({ body: z.record(z.string(), z.any()) }), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "799e617e7a2d95d586ac1d164d4812374a9327140108a6c9ad9a9e2b900f759d", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
19
|
+
{ name: "woodpecker_current_log_level", title: "Current log level", method: "GET", path: "/log-level", description: "Current log level for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.object({ "log-level": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "3bc65168a3fa597244213468adfd17f8d2df3bf27d683ef0538b0e22d1819410", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
20
|
+
{ name: "woodpecker_set_log_level", title: "Set log level", method: "POST", path: "/log-level", description: "Set log level for Woodpecker CI.", inputSchema: z.object({ body: z.object({ "log-level": z.string().optional() }) }), responseSchema: z.object({ "log-level": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "c366fb9b894d45535403c39b38c1e8f2d5f4b8b345a51d3fac549db5360733a4", responseSchemaHash: "3bc65168a3fa597244213468adfd17f8d2df3bf27d683ef0538b0e22d1819410", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
21
|
+
{ name: "woodpecker_list_organizations", title: "List organizations", method: "GET", path: "/orgs", description: "List organizations for Woodpecker CI.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "forge_id": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_user": z.union([z.boolean(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "db7cf4196bb430ce701708fec08ac19aad1060f232701371535835324f3cb910", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
22
|
+
{ name: "woodpecker_lookup_organization_full_name", title: "Lookup an organization by full name", method: "GET", path: "/orgs/lookup/{org_full_name}", description: "Lookup an organization by full name for Woodpecker CI.", inputSchema: z.object({ "org_full_name": z.string() }), responseSchema: z.object({ "forge_id": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_user": z.union([z.boolean(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_full_name" }], stream: false, inputSchemaHash: "2e6af9f95da38e821b240321a00a20a1db988303d30a8ec178067e1b834c6b1b", responseSchemaHash: "bffafcf8127f36e94e1c5958d0d2bec8f03665964e4e89342b44292aa73fe15b", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
23
|
+
{ name: "woodpecker_delete_organization", title: "Delete an organization", method: "DELETE", path: "/orgs/{org_id}", description: "Delete an organization for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "c3576f7b88063be3fc09a9263f3cd605d21c25504b6bb6883f34d08e4b148cf2", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
24
|
+
{ name: "woodpecker_get_organization", title: "Get an organization", method: "GET", path: "/orgs/{org_id}", description: "Get an organization for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.array(z.object({ "forge_id": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_user": z.union([z.boolean(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "c3576f7b88063be3fc09a9263f3cd605d21c25504b6bb6883f34d08e4b148cf2", responseSchemaHash: "db7cf4196bb430ce701708fec08ac19aad1060f232701371535835324f3cb910", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
25
|
+
{ name: "woodpecker_list_agents_organization", title: "List agents for an organization", method: "GET", path: "/orgs/{org_id}/agents", description: "List agents for an organization for Woodpecker CI.", inputSchema: z.object({ "org_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "backend": z.union([z.string(), z.null()]).optional(), "capacity": z.union([z.number().int(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "custom_labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "filters": z.union([z.record(z.string(), z.string()).describe("Server side enforced agent filters"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_contact": z.union([z.number().int(), z.null()]).optional(), "last_work": z.union([z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler"), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "no_schedule": z.union([z.boolean(), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default"), z.null()]).optional(), "owner_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "50be11b10c15ea92e8fd0a670b0b74d2705eb0c1513858bcbab79dd55d3e6da5", responseSchemaHash: "f13056d5d204d4b19303bff26a3aad200f40ca4c5c01c0ad59f5b1126288bbfd", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
26
|
+
{ name: "woodpecker_create_new_organization_scoped_agent", title: "Create a new organization-scoped agent", method: "POST", path: "/orgs/{org_id}/agents", description: "Create a new organization-scoped agent for Woodpecker CI.", inputSchema: z.object({ "org_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.union([z.string(), z.null()]).optional(), "capacity": z.union([z.number().int(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "custom_labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "filters": z.union([z.record(z.string(), z.string()).describe("Server side enforced agent filters"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_contact": z.union([z.number().int(), z.null()]).optional(), "last_work": z.union([z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler"), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "no_schedule": z.union([z.boolean(), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default"), z.null()]).optional(), "owner_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "6b2992e43e28f0cc4943a67ac60bc870d22ba3973231e75f7be8de589cb0c9ff", responseSchemaHash: "15bc3195eb3b5b006ec018f2bb22a73dcda05dd8d4b1c1e231ca4168be8070fd", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
27
|
+
{ name: "woodpecker_delete_organization_scoped_agent", title: "Delete an organization-scoped agent", method: "DELETE", path: "/orgs/{org_id}/agents/{agent_id}", description: "Delete an organization-scoped agent for Woodpecker CI.", inputSchema: z.object({ "org_id": z.number().int(), "agent_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "55c6a22508f196272ccef291998599019c87f59b743bc3a9596c6593d02b7953", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
28
|
+
{ name: "woodpecker_update_organization_scoped_agent", title: "Update an organization-scoped agent", method: "PATCH", path: "/orgs/{org_id}/agents/{agent_id}", description: "Update an organization-scoped agent for Woodpecker CI.", inputSchema: z.object({ "org_id": z.number().int(), "agent_id": z.number().int(), body: z.object({ "backend": z.string().optional(), "capacity": z.number().int().optional(), "created": z.number().int().optional(), "custom_labels": z.record(z.string(), z.string()).optional(), "filters": z.record(z.string(), z.string()).describe("Server side enforced agent filters").optional(), "id": z.number().int().optional(), "last_contact": z.number().int().optional(), "last_work": z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler").optional(), "name": z.string().optional(), "no_schedule": z.boolean().optional(), "org_id": z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default").optional(), "owner_id": z.number().int().optional(), "platform": z.string().optional(), "updated": z.number().int().optional(), "version": z.string().optional() }) }), responseSchema: z.object({ "backend": z.union([z.string(), z.null()]).optional(), "capacity": z.union([z.number().int(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "custom_labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "filters": z.union([z.record(z.string(), z.string()).describe("Server side enforced agent filters"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_contact": z.union([z.number().int(), z.null()]).optional(), "last_work": z.union([z.number().int().describe("last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler"), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "no_schedule": z.union([z.boolean(), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default"), z.null()]).optional(), "owner_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "agent_id" }], stream: false, inputSchemaHash: "92150bfeb15917d6b94f737056922a13f414a3a11382c7ea65190ff668a9d6e9", responseSchemaHash: "15bc3195eb3b5b006ec018f2bb22a73dcda05dd8d4b1c1e231ca4168be8070fd", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
29
|
+
{ name: "woodpecker_get_permissions_currently_authenticated_user_given_organization", title: "Get the permissions of the currently authenticated user for the given organization", method: "GET", path: "/orgs/{org_id}/permissions", description: "Get the permissions of the currently authenticated user for the given organization for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string() }), responseSchema: z.array(z.object({ "admin": z.union([z.boolean(), z.null()]).optional(), "member": z.union([z.boolean(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "c3576f7b88063be3fc09a9263f3cd605d21c25504b6bb6883f34d08e4b148cf2", responseSchemaHash: "b5a3f61ccd68bebd3ea8638a923af5fef778dce04dac6657302583f220353037", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
30
|
+
{ name: "woodpecker_list_organization_registries", title: "List organization registries", method: "GET", path: "/orgs/{org_id}/registries", description: "List organization registries for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "b0ba688263fc6f4ba53df342926ec98757d53cd9ff7a5f6071074537c579a94e", responseSchemaHash: "46e9d1c0e8202a685ddb8e33ebce25b036a8404c15d9a65bdb9177f24b23d7d4", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
31
|
+
{ name: "woodpecker_create_organization_registry", title: "Create an organization registry", method: "POST", path: "/orgs/{org_id}/registries", description: "Create an organization registry for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "48d99858a485f0963e77eeb3f9b586e4088f70f52528ab39b606ee12d70d3613", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
32
|
+
{ name: "woodpecker_delete_organization_registry_name", title: "Delete an organization registry by name", method: "DELETE", path: "/orgs/{org_id}/registries/{registry}", description: "Delete an organization registry by name for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "9cf9e295e438bee0067d44217d5df0f57f5c6da7ad56e9bf886d008a12cf9b79", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
33
|
+
{ name: "woodpecker_get_organization_registry_address", title: "Get a organization registry by address", method: "GET", path: "/orgs/{org_id}/registries/{registry}", description: "Get a organization registry by address for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string() }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "9cf9e295e438bee0067d44217d5df0f57f5c6da7ad56e9bf886d008a12cf9b79", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
34
|
+
{ name: "woodpecker_update_organization_registry_name", title: "Update an organization registry by name", method: "PATCH", path: "/orgs/{org_id}/registries/{registry}", description: "Update an organization registry by name for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "3f095d389ed27f316a1a69bf6273619cd681a5e9b7d6fd50f161f4060a07b2c7", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
35
|
+
{ name: "woodpecker_list_organization_secrets", title: "List organization secrets", method: "GET", path: "/orgs/{org_id}/secrets", description: "List organization secrets for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "b0ba688263fc6f4ba53df342926ec98757d53cd9ff7a5f6071074537c579a94e", responseSchemaHash: "bd0b6b94fcaedb44e2e6bf40881333a5cfe104ffec7d4597b880c5dcd5ebcedd", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
36
|
+
{ name: "woodpecker_create_organization_secret", title: "Create an organization secret", method: "POST", path: "/orgs/{org_id}/secrets", description: "Create an organization secret for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }], stream: false, inputSchemaHash: "9986a827772b0fcb86ad97820be2d2dae1e2e4530c894884e08359fd5dded9ae", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
37
|
+
{ name: "woodpecker_delete_organization_secret_name", title: "Delete an organization secret by name", method: "DELETE", path: "/orgs/{org_id}/secrets/{secret}", description: "Delete an organization secret by name for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, inputSchemaHash: "97bcc9d248643cbecd14dfb03bc9d69b05e96aba0846764f7ec68947cf328ea5", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
38
|
+
{ name: "woodpecker_get_organization_secret_name", title: "Get a organization secret by name", method: "GET", path: "/orgs/{org_id}/secrets/{secret}", description: "Get a organization secret by name for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string() }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, inputSchemaHash: "97bcc9d248643cbecd14dfb03bc9d69b05e96aba0846764f7ec68947cf328ea5", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
39
|
+
{ name: "woodpecker_update_organization_secret_name", title: "Update an organization secret by name", method: "PATCH", path: "/orgs/{org_id}/secrets/{secret}", description: "Update an organization secret by name for Woodpecker CI.", inputSchema: z.object({ "org_id": z.string(), "secret": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "org_id" }, { location: "path", name: "secret" }], stream: false, inputSchemaHash: "5fcdb181b50c6aedac49c6f16346836483374744cbb42a9dd231b555eb0e29c9", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
40
|
+
{ name: "woodpecker_list_pipelines_in_queue", title: "List pipelines in queue", method: "GET", path: "/pipelines", description: "List pipelines in queue for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.array(z.object({ "author": z.union([z.string(), z.null()]).optional(), "author_avatar": z.union([z.string(), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "message": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.string(), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "430adbfb77680406248379863246780356e159cf83d7f0728057d80e24b467a5", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
41
|
+
{ name: "woodpecker_get_pipeline_queue_information", title: "Get pipeline queue information", method: "GET", path: "/queue/info", description: "Get pipeline queue information for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.object({ "paused": z.union([z.boolean(), z.null()]).optional(), "pending": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "agent_name": z.union([z.string(), z.null()]).optional(), "concurrency_group": z.union([z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies."), z.null()]).optional(), "concurrency_limit": z.union([z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited."), z.null()]).optional(), "created": z.union([z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines."), z.null()]).optional(), "dep_status": z.union([z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])), z.null()]).optional(), "dependencies": z.union([z.array(z.string()), z.null()]).optional(), "id": z.union([z.string(), z.null()]).optional(), "labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "pipeline_number": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "run_on": z.union([z.array(z.string()), z.null()]).optional() })), z.null()]).optional(), "running": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "agent_name": z.union([z.string(), z.null()]).optional(), "concurrency_group": z.union([z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies."), z.null()]).optional(), "concurrency_limit": z.union([z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited."), z.null()]).optional(), "created": z.union([z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines."), z.null()]).optional(), "dep_status": z.union([z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])), z.null()]).optional(), "dependencies": z.union([z.array(z.string()), z.null()]).optional(), "id": z.union([z.string(), z.null()]).optional(), "labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "pipeline_number": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "run_on": z.union([z.array(z.string()), z.null()]).optional() })), z.null()]).optional(), "stats": z.union([z.object({ "pending_count": z.union([z.number().int(), z.null()]).optional(), "running_count": z.union([z.number().int(), z.null()]).optional(), "waiting_on_deps_count": z.union([z.number().int(), z.null()]).optional(), "worker_count": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "waiting_on_deps": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "agent_name": z.union([z.string(), z.null()]).optional(), "concurrency_group": z.union([z.string().describe("ConcurrencyGroup identifies tasks that are limited against each other.\nIt is empty when no concurrency limit applies."), z.null()]).optional(), "concurrency_limit": z.union([z.number().int().describe("ConcurrencyLimit is the maximum number of tasks sharing the same\nConcurrencyGroup that may run at once. A value <= 0 means unlimited."), z.null()]).optional(), "created": z.union([z.number().int().describe("Created is the unix timestamp the task's pipeline was created at. It\ndefines the queue ordering across pipelines."), z.null()]).optional(), "dep_status": z.union([z.record(z.string(), z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"])), z.null()]).optional(), "dependencies": z.union([z.array(z.string()), z.null()]).optional(), "id": z.union([z.string(), z.null()]).optional(), "labels": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "pipeline_number": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "run_on": z.union([z.array(z.string()), z.null()]).optional() })), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "d1f6ff4952afba54b3a311a1ac5807aa3a501326602d90a1797d5e2d6ca43db1", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
42
|
+
{ name: "woodpecker_block_til_pipeline_queue_has_running_item", title: "Block til pipeline queue has a running item", method: "GET", path: "/queue/norunningpipelines", description: "Block til pipeline queue has a running item for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
43
|
+
{ name: "woodpecker_pause_pipeline_queue", title: "Pause the pipeline queue", method: "POST", path: "/queue/pause", description: "Pause the pipeline queue for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
44
|
+
{ name: "woodpecker_resume_pipeline_queue", title: "Resume the pipeline queue", method: "POST", path: "/queue/resume", description: "Resume the pipeline queue for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
45
|
+
{ name: "woodpecker_list_global_registries", title: "List global registries", method: "GET", path: "/registries", description: "List global registries for Woodpecker CI.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "46e9d1c0e8202a685ddb8e33ebce25b036a8404c15d9a65bdb9177f24b23d7d4", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
46
|
+
{ name: "woodpecker_create_global_registry", title: "Create a global registry", method: "POST", path: "/registries", description: "Create a global registry for Woodpecker CI.", inputSchema: z.object({ body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "4f60b389568a4633910456331182f3ecf74c28cfd316f8e5d1db80e74f8cd7bb", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
47
|
+
{ name: "woodpecker_delete_global_registry_name", title: "Delete a global registry by name", method: "DELETE", path: "/registries/{registry}", description: "Delete a global registry by name for Woodpecker CI.", inputSchema: z.object({ "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, inputSchemaHash: "40f92513f6d4dc3b1898f61d72899a03600dd35fd4feffe96acda3eef2119d65", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
48
|
+
{ name: "woodpecker_get_global_registry_name", title: "Get a global registry by name", method: "GET", path: "/registries/{registry}", description: "Get a global registry by name for Woodpecker CI.", inputSchema: z.object({ "registry": z.string() }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, inputSchemaHash: "40f92513f6d4dc3b1898f61d72899a03600dd35fd4feffe96acda3eef2119d65", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
49
|
+
{ name: "woodpecker_update_global_registry_name", title: "Update a global registry by name", method: "PATCH", path: "/registries/{registry}", description: "Update a global registry by name for Woodpecker CI.", inputSchema: z.object({ "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "registry" }], stream: false, inputSchemaHash: "464594b73a3c69b2c088c82b8c0cccb704cbe9542220dd431fb14124043b07ad", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
50
|
+
{ name: "woodpecker_list_all_repositories_on_server", title: "List all repositories on the server", method: "GET", path: "/repos", description: "List all repositories on the server for Woodpecker CI.", inputSchema: z.object({ "active": z.boolean().optional(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "active" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "c6face9680432048ef73dd248680eaf090aeb816a55de1b5a269aceb9ca97002", responseSchemaHash: "2a5c8bc951c1133859f3fef02be9ada4c8766d60b129494031a150314eb88ae5", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
51
|
+
{ name: "woodpecker_activate_repository", title: "Activate a repository", method: "POST", path: "/repos", description: "Activate a repository for Woodpecker CI.", inputSchema: z.object({ "forge_remote_id": z.string() }), responseSchema: z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "984f3e0fba61450a396e04ff1025d6f755e2f727fa11053a4f2c2cc07f637f56", responseSchemaHash: "d6f68c1aa1d2a83074e8fb78aaf45961d5318adce428984af838836c5d45051b", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
52
|
+
{ name: "woodpecker_lookup_repository_full_name", title: "Lookup a repository by full name", method: "GET", path: "/repos/lookup/{repo_full_name}", description: "Lookup a repository by full name for Woodpecker CI.", inputSchema: z.object({ "repo_full_name": z.string() }), responseSchema: z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_full_name" }], stream: false, inputSchemaHash: "dff967441cec49b0181ebcc9ac2d7e470df589f0c467dd09d7899c824add0aa0", responseSchemaHash: "d6f68c1aa1d2a83074e8fb78aaf45961d5318adce428984af838836c5d45051b", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
53
|
+
{ name: "woodpecker_repair_all_repositories_on_server", title: "Repair all repositories on the server", method: "POST", path: "/repos/repair", description: "Repair all repositories on the server for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
54
|
+
{ name: "woodpecker_delete_repository", title: "Delete a repository", method: "DELETE", path: "/repos/{repo_id}", description: "Delete a repository for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "d6f68c1aa1d2a83074e8fb78aaf45961d5318adce428984af838836c5d45051b", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
55
|
+
{ name: "woodpecker_get_repository", title: "Get a repository", method: "GET", path: "/repos/{repo_id}", description: "Get a repository for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "d6f68c1aa1d2a83074e8fb78aaf45961d5318adce428984af838836c5d45051b", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
56
|
+
{ name: "woodpecker_update_repository", title: "Update a repository", method: "PATCH", path: "/repos/{repo_id}", description: "Update a repository for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "allow_deploy": z.boolean().optional(), "allow_pr": z.boolean().optional(), "approval_allowed_users": z.array(z.string()).optional(), "cancel_previous_pipeline_events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "config_extension_endpoint": z.string().optional(), "config_extension_exclusive": z.boolean().optional(), "config_extension_netrc": z.boolean().optional(), "config_file": z.string().optional(), "netrc_trusted": z.array(z.string()).optional(), "registry_extension_endpoint": z.string().optional(), "registry_extension_netrc": z.boolean().optional(), "require_approval": z.string().optional(), "secret_extension_endpoint": z.string().optional(), "secret_extension_netrc": z.boolean().optional(), "timeout": z.number().int().optional(), "trusted": z.object({ "network": z.boolean().optional(), "security": z.boolean().optional(), "volumes": z.boolean().optional() }).optional(), "visibility": z.string().optional() }) }), responseSchema: z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "99d14c0d1752c734a8922959bcb1e24f57a1e87e1454026d091e4c2df471978e", responseSchemaHash: "d6f68c1aa1d2a83074e8fb78aaf45961d5318adce428984af838836c5d45051b", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
57
|
+
{ name: "woodpecker_get_branches_repository", title: "Get branches of a repository", method: "GET", path: "/repos/{repo_id}/branches", description: "Get branches of a repository for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.string()), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "2000ba4632f98bde4c5a0c2482bf604638b912b1a43b66cc655c6ff22f765718", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
58
|
+
{ name: "woodpecker_change_repository_s_owner_currently_authenticated_user", title: "Change a repository's owner to the currently authenticated user", method: "POST", path: "/repos/{repo_id}/chown", description: "Change a repository's owner to the currently authenticated user for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "d6f68c1aa1d2a83074e8fb78aaf45961d5318adce428984af838836c5d45051b", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
59
|
+
{ name: "woodpecker_list_cron_jobs", title: "List cron jobs", method: "GET", path: "/repos/{repo_id}/cron", description: "List cron jobs for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "branch": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "creator_id": z.union([z.number().int().describe("TODO: drop with next major version"), z.null()]).optional(), "enabled": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "next_exec": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "schedule": z.union([z.string().describe("@weekly,\t3min, ..."), z.null()]).optional(), "timezone": z.union([z.string(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "e815ae6e7abb3e5630b5564d16b331920ba738e1602ac696de4e36806416d54e", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
60
|
+
{ name: "woodpecker_create_cron_job", title: "Create a cron job", method: "POST", path: "/repos/{repo_id}/cron", description: "Create a cron job for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "branch": z.string().optional(), "created": z.number().int().optional(), "creator_id": z.number().int().describe("TODO: drop with next major version").optional(), "enabled": z.boolean().optional(), "id": z.number().int().optional(), "name": z.string().optional(), "next_exec": z.number().int().optional(), "repo_id": z.number().int().optional(), "schedule": z.string().describe("@weekly,\t3min, ...").optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "branch": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "creator_id": z.union([z.number().int().describe("TODO: drop with next major version"), z.null()]).optional(), "enabled": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "next_exec": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "schedule": z.union([z.string().describe("@weekly,\t3min, ..."), z.null()]).optional(), "timezone": z.union([z.string(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "3ecf89d008d143343ba753a8e466f1cd944690d6d2b55ea0ddc0963d5c4dd009", responseSchemaHash: "d0b7cd83e3801cfe6eedaf29f8579e2f697a2773e4c54a54dc4c565de8eac1a0", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
61
|
+
{ name: "woodpecker_delete_cron_job", title: "Delete a cron job", method: "DELETE", path: "/repos/{repo_id}/cron/{cron}", description: "Delete a cron job for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "b6c61d2c610ade79f5c4b15c6fea2f42193de208fc69335617ebad94aee6d452", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
62
|
+
{ name: "woodpecker_get_cron_job", title: "Get a cron job", method: "GET", path: "/repos/{repo_id}/cron/{cron}", description: "Get a cron job for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.object({ "branch": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "creator_id": z.union([z.number().int().describe("TODO: drop with next major version"), z.null()]).optional(), "enabled": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "next_exec": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "schedule": z.union([z.string().describe("@weekly,\t3min, ..."), z.null()]).optional(), "timezone": z.union([z.string(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "b6c61d2c610ade79f5c4b15c6fea2f42193de208fc69335617ebad94aee6d452", responseSchemaHash: "d0b7cd83e3801cfe6eedaf29f8579e2f697a2773e4c54a54dc4c565de8eac1a0", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
63
|
+
{ name: "woodpecker_update_cron_job", title: "Update a cron job", method: "PATCH", path: "/repos/{repo_id}/cron/{cron}", description: "Update a cron job for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string(), body: z.object({ "branch": z.string().optional(), "enabled": z.boolean().optional(), "name": z.string().optional(), "schedule": z.string().optional(), "timezone": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "branch": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "creator_id": z.union([z.number().int().describe("TODO: drop with next major version"), z.null()]).optional(), "enabled": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "next_exec": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "schedule": z.union([z.string().describe("@weekly,\t3min, ..."), z.null()]).optional(), "timezone": z.union([z.string(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "3dc4f5fd6c884dd5297cf9f1f24ee96b7ed13139c21018676837a1dee47b522a", responseSchemaHash: "d0b7cd83e3801cfe6eedaf29f8579e2f697a2773e4c54a54dc4c565de8eac1a0", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
64
|
+
{ name: "woodpecker_start_cron_job_now", title: "Start a cron job now", method: "POST", path: "/repos/{repo_id}/cron/{cron}", description: "Start a cron job now for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "cron": z.string() }), responseSchema: z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "cron" }], stream: false, inputSchemaHash: "b6c61d2c610ade79f5c4b15c6fea2f42193de208fc69335617ebad94aee6d452", responseSchemaHash: "c8fd5316cc93893c5525f90fc8be37bf379614a42e3a65cb0ee59d383d734d21", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
65
|
+
{ name: "woodpecker_deletes_all_logs_pipeline", title: "Deletes all logs of a pipeline", method: "DELETE", path: "/repos/{repo_id}/logs/{pipeline_number}", description: "Deletes all logs of a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
66
|
+
{ name: "woodpecker_delete_step_logs_pipeline", title: "Delete step logs of a pipeline", method: "DELETE", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}", description: "Delete step logs of a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, inputSchemaHash: "54e147f353c7fa8cfe3c46b33cf52abe47db90b9012f68876ffcc0d5b9d97f09", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
67
|
+
{ name: "woodpecker_get_logs_pipeline_step", title: "Get logs for a pipeline step", method: "GET", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}", description: "Get logs for a pipeline step for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.array(z.object({ "data": z.union([z.array(z.number().int()), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "line": z.union([z.number().int(), z.null()]).optional(), "step_id": z.union([z.number().int(), z.null()]).optional(), "time": z.union([z.number().int(), z.null()]).optional(), "type": z.union([z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, inputSchemaHash: "54e147f353c7fa8cfe3c46b33cf52abe47db90b9012f68876ffcc0d5b9d97f09", responseSchemaHash: "b821fc1de7128a2433e6e89655562dea066b8e4c0c3e1e58f30ec56ef7a7c023", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
68
|
+
{ name: "woodpecker_download_logs_pipeline_step", title: "Download logs for a pipeline step", method: "GET", path: "/repos/{repo_id}/logs/{pipeline_number}/{step_id}/download", description: "Download logs for a pipeline step for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "step_id": z.number().int() }), responseSchema: z.string(), responseKind: "text", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "path", name: "step_id" }], stream: false, inputSchemaHash: "54e147f353c7fa8cfe3c46b33cf52abe47db90b9012f68876ffcc0d5b9d97f09", responseSchemaHash: "6707424af03d5eaeea59971cf28ed28dcd9a8b064ce0307119036bd8c7676391", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
69
|
+
{ name: "woodpecker_move_repository_new_owner", title: "Move a repository to a new owner", method: "POST", path: "/repos/{repo_id}/move", description: "Move a repository to a new owner for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "to": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "to" }], stream: false, inputSchemaHash: "306994ee4e822c3a50e7a6d90aecac37c5acb7e5525d59365c0a355ddba7cc93", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
70
|
+
{ name: "woodpecker_check_current_authenticated_users_access_repository", title: "Check current authenticated users access to the repository", method: "GET", path: "/repos/{repo_id}/permissions", description: "Check current authenticated users access to the repository for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.object({ "admin": z.union([z.boolean(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "pull": z.union([z.boolean(), z.null()]).optional(), "push": z.union([z.boolean(), z.null()]).optional(), "synced": z.union([z.number().int(), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "ee655db386d9e2c86536c8093587cad532fc398195ce6fbf4a2dd32563c9b797", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
71
|
+
{ name: "woodpecker_list_repository_pipelines", title: "List repository pipelines", method: "GET", path: "/repos/{repo_id}/pipelines", description: "List repository pipelines for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50), "before": z.string().optional(), "after": z.string().optional(), "branch": z.string().optional(), "event": z.string().optional(), "ref": z.string().optional(), "status": z.string().optional() }), responseSchema: z.array(z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }, { location: "query", name: "before" }, { location: "query", name: "after" }, { location: "query", name: "branch" }, { location: "query", name: "event" }, { location: "query", name: "ref" }, { location: "query", name: "status" }], stream: false, inputSchemaHash: "eeb6bd35d22a63896f8701bd5e876c26822a93052c733d44384de935f3c316aa", responseSchemaHash: "4cc7b53bc00f39e46f260ade50f2e4ec66d1de89608ac409794dd4e78bc6f2d1", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
72
|
+
{ name: "woodpecker_trigger_manual_pipeline", title: "Trigger a manual pipeline", method: "POST", path: "/repos/{repo_id}/pipelines", description: "Trigger a manual pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "branch": z.string().optional(), "message": z.string().optional(), "variables": z.record(z.string(), z.string()).optional() }) }), responseSchema: z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "3ec9a3a0578f2f0e761adc9b51d1bb5b07975299e87462f10943dafb4f1d5d4e", responseSchemaHash: "c8fd5316cc93893c5525f90fc8be37bf379614a42e3a65cb0ee59d383d734d21", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
73
|
+
{ name: "woodpecker_delete_pipeline", title: "Delete a pipeline", method: "DELETE", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Delete a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
74
|
+
{ name: "woodpecker_get_repositories_pipeline", title: "Get a repositories pipeline", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Get a repositories pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "c8fd5316cc93893c5525f90fc8be37bf379614a42e3a65cb0ee59d383d734d21", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
75
|
+
{ name: "woodpecker_restart_pipeline", title: "Restart a pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}", description: "Restart a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int(), "event": z.string().optional(), "deploy_to": z.string().optional() }), responseSchema: z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }, { location: "query", name: "event" }, { location: "query", name: "deploy_to" }], stream: false, inputSchemaHash: "890bf7ddd02935303f65b322b1f28a14a93dded45c28270223cc6b8b05ad6a3c", responseSchemaHash: "c8fd5316cc93893c5525f90fc8be37bf379614a42e3a65cb0ee59d383d734d21", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
76
|
+
{ name: "woodpecker_approve_and_start_pipeline", title: "Approve and start a pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/approve", description: "Approve and start a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "c8fd5316cc93893c5525f90fc8be37bf379614a42e3a65cb0ee59d383d734d21", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
77
|
+
{ name: "woodpecker_cancel_pipeline", title: "Cancel a pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/cancel", description: "Cancel a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
78
|
+
{ name: "woodpecker_get_configuration_files_pipeline", title: "Get configuration files for a pipeline", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}/config", description: "Get configuration files for a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.array(z.object({ "data": z.union([z.array(z.number().int()), z.null()]).optional(), "hash": z.union([z.string(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "46634ff95fc9a2d819eaf416ec1fb9b2e5c8900a75b65e51126051bc43543ca1", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
79
|
+
{ name: "woodpecker_decline_pipeline", title: "Decline a pipeline", method: "POST", path: "/repos/{repo_id}/pipelines/{pipeline_number}/decline", description: "Decline a pipeline for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "c8fd5316cc93893c5525f90fc8be37bf379614a42e3a65cb0ee59d383d734d21", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
80
|
+
{ name: "woodpecker_get_metadata_pipeline_or_specific_workflow_including_previous_pipeline_info", title: "Get metadata for a pipeline or a specific workflow, including previous pipeline info", method: "GET", path: "/repos/{repo_id}/pipelines/{pipeline_number}/metadata", description: "Get metadata for a pipeline or a specific workflow, including previous pipeline info for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline_number": z.number().int() }), responseSchema: z.object({ "curr": z.union([z.object({ "author": z.union([z.string(), z.null()]).optional(), "avatar": z.union([z.string(), z.null()]).optional(), "commit": z.union([z.object({ "author": z.union([z.object({ "email": z.union([z.string(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "draft": z.union([z.boolean(), z.null()]).optional(), "labels": z.union([z.array(z.string()), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "sha": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string(), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.string(), z.null()]).optional(), "target": z.union([z.string(), z.null()]).optional(), "task": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "forge": z.union([z.object({ "type": z.union([z.string(), z.null()]).optional(), "url": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "id": z.union([z.string(), z.null()]).optional(), "prev": z.union([z.object({ "author": z.union([z.string(), z.null()]).optional(), "avatar": z.union([z.string(), z.null()]).optional(), "commit": z.union([z.object({ "author": z.union([z.object({ "email": z.union([z.string(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "draft": z.union([z.boolean(), z.null()]).optional(), "labels": z.union([z.array(z.string()), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "sha": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string(), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.string(), z.null()]).optional(), "target": z.union([z.string(), z.null()]).optional(), "task": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "repo": z.union([z.object({ "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "remote_id": z.union([z.string(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional() }), z.null()]).optional(), "step": z.union([z.object({ "name": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "sys": z.union([z.object({ "arch": z.union([z.string(), z.null()]).optional(), "host": z.union([z.string(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "url": z.union([z.string(), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional() }), z.null()]).optional(), "workflow": z.union([z.object({ "matrix": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline_number" }], stream: false, inputSchemaHash: "dc679e2c5bc9deb71f717dfae4f8c2db22dc5320ca302d0a90917df38397d577", responseSchemaHash: "bd699a802b9cb1af4c2e31a44b296d8557a3aa9e3d63c5ea7fb64f7235451064", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
81
|
+
{ name: "woodpecker_list_active_pull_requests_repository", title: "List active pull requests of a repository", method: "GET", path: "/repos/{repo_id}/pull_requests", description: "List active pull requests of a repository for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "index": z.union([z.string(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "69312885259fe87d2b122841d36a34fe465a544fc58030f3404ca57e72fd4d69", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
82
|
+
{ name: "woodpecker_list_registries", title: "List registries", method: "GET", path: "/repos/{repo_id}/registries", description: "List registries for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "46e9d1c0e8202a685ddb8e33ebce25b036a8404c15d9a65bdb9177f24b23d7d4", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
83
|
+
{ name: "woodpecker_create_registry", title: "Create a registry", method: "POST", path: "/repos/{repo_id}/registries", description: "Create a registry for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "bc29798f963cea6e7ac6387e78321b29a06094f59f836c99744cf696f0a1d00f", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
84
|
+
{ name: "woodpecker_delete_registry_name", title: "Delete a registry by name", method: "DELETE", path: "/repos/{repo_id}/registries/{registry}", description: "Delete a registry by name for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "f19bdc385342016f93f5423c72d74586cd8e470cac7a5a4abb3a22ec562963c1", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
85
|
+
{ name: "woodpecker_get_registry_name", title: "Get a registry by name", method: "GET", path: "/repos/{repo_id}/registries/{registry}", description: "Get a registry by name for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string() }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "f19bdc385342016f93f5423c72d74586cd8e470cac7a5a4abb3a22ec562963c1", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
86
|
+
{ name: "woodpecker_update_registry_name", title: "Update a registry by name", method: "PATCH", path: "/repos/{repo_id}/registries/{registry}", description: "Update a registry by name for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "registry": z.string(), body: z.object({ "address": z.string().optional(), "id": z.number().int().optional(), "org_id": z.number().int().optional(), "password": z.string().optional(), "readonly": z.boolean().optional(), "repo_id": z.number().int().optional(), "username": z.string().optional() }) }), responseSchema: z.object({ "address": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "readonly": z.union([z.boolean(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "username": z.union([z.string(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "registry" }], stream: false, inputSchemaHash: "c78b7fc0c4da004df5913a6fa452cb21f2ae8497c2bb8a9a57bc87072c7f58ba", responseSchemaHash: "2644fa2dd9aad84a4103cb770747f8f3b556cccd12c3d0bfda24f0be8ac1820f", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
87
|
+
{ name: "woodpecker_repair_repository", title: "Repair a repository", method: "POST", path: "/repos/{repo_id}/repair", description: "Repair a repository for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "fb263411cf244dbd0e450a462643b1aacfd98157a48ff7957cac9111dfdd513b", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
88
|
+
{ name: "woodpecker_list_repository_secrets", title: "List repository secrets", method: "GET", path: "/repos/{repo_id}/secrets", description: "List repository secrets for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "e83809d8a2201fd0d5c4788c4044d97725eb053136cc6678db6ee92889b94018", responseSchemaHash: "bd0b6b94fcaedb44e2e6bf40881333a5cfe104ffec7d4597b880c5dcd5ebcedd", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
89
|
+
{ name: "woodpecker_create_repository_secret", title: "Create a repository secret", method: "POST", path: "/repos/{repo_id}/secrets", description: "Create a repository secret for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }], stream: false, inputSchemaHash: "c2319619bb897d986ba7fd9158ff63b0cc0efd53beed3036c5159c767feaddf2", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
90
|
+
{ name: "woodpecker_delete_repository_secret_name", title: "Delete a repository secret by name", method: "DELETE", path: "/repos/{repo_id}/secrets/{secretName}", description: "Delete a repository secret by name for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, inputSchemaHash: "3ccc19ffdca8c66004694bf11e082be9b98b4e576eef27b2c3bf00a021ea9359", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
91
|
+
{ name: "woodpecker_get_repository_secret_name", title: "Get a repository secret by name", method: "GET", path: "/repos/{repo_id}/secrets/{secretName}", description: "Get a repository secret by name for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string() }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, inputSchemaHash: "3ccc19ffdca8c66004694bf11e082be9b98b4e576eef27b2c3bf00a021ea9359", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
92
|
+
{ name: "woodpecker_update_repository_secret_name", title: "Update a repository secret by name", method: "PATCH", path: "/repos/{repo_id}/secrets/{secretName}", description: "Update a repository secret by name for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "secretName": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "secretName" }], stream: false, inputSchemaHash: "08b25d44e4f5f40287298b14b78d4f0263b831a2fb65871545222a08bc5606d4", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
93
|
+
{ name: "woodpecker_list_global_secrets", title: "List global secrets", method: "GET", path: "/secrets", description: "List global secrets for Woodpecker CI.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "bd0b6b94fcaedb44e2e6bf40881333a5cfe104ffec7d4597b880c5dcd5ebcedd", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
94
|
+
{ name: "woodpecker_create_global_secret", title: "Create a global secret", method: "POST", path: "/secrets", description: "Create a global secret for Woodpecker CI.", inputSchema: z.object({ body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "id": z.number().int().optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "org_id": z.number().int().optional(), "repo_id": z.number().int().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "3446805db9cfd41f14d76b6669b5484ab9678357470e086ae337a96e4ed7d54b", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
95
|
+
{ name: "woodpecker_delete_global_secret_name", title: "Delete a global secret by name", method: "DELETE", path: "/secrets/{secret}", description: "Delete a global secret by name for Woodpecker CI.", inputSchema: z.object({ "secret": z.string() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, inputSchemaHash: "2c029a5d67471377e0c3cc733dccb1203e4c80f20f8125a9d6043ef0ff87bfef", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
96
|
+
{ name: "woodpecker_get_global_secret_name", title: "Get a global secret by name", method: "GET", path: "/secrets/{secret}", description: "Get a global secret by name for Woodpecker CI.", inputSchema: z.object({ "secret": z.string() }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, inputSchemaHash: "2c029a5d67471377e0c3cc733dccb1203e4c80f20f8125a9d6043ef0ff87bfef", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
97
|
+
{ name: "woodpecker_update_global_secret_name", title: "Update a global secret by name", method: "PATCH", path: "/secrets/{secret}", description: "Update a global secret by name for Woodpecker CI.", inputSchema: z.object({ "secret": z.string(), body: z.object({ "events": z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])).optional(), "images": z.array(z.string()).optional(), "name": z.string().optional(), "note": z.string().optional(), "value": z.string().optional() }) }), responseSchema: z.object({ "events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "images": z.union([z.array(z.string()), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "note": z.union([z.string(), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "secret" }], stream: false, inputSchemaHash: "b897bbb3b0aa06d7b8948784404d786a42eb2914b85b59a557cec6269af15e7e", responseSchemaHash: "249bd3a33fa317c54f9a546a8fcae4375a76895d7ffb9245a1923bd4b55c86f3", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
98
|
+
{ name: "woodpecker_get_server_s_signature_public_key", title: "Get server's signature public key", method: "GET", path: "/signature/public-key", description: "Get server's signature public key for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
99
|
+
{ name: "woodpecker_stream_events_like_pipeline_updates", title: "Stream events like pipeline updates", method: "GET", path: "/stream/events", description: "Stream events like pipeline updates for Woodpecker CI.", inputSchema: z.object({ duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [], stream: true, inputSchemaHash: "4be151af5ea94b8032b0ab5f8ea34757935fee87da8afc3bd801ebcf7b3cd608", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
100
|
+
{ name: "woodpecker_stream_logs_pipeline_step", title: "Stream logs of a pipeline step", method: "GET", path: "/stream/logs/{repo_id}/{pipeline}/{step_id}", description: "Stream logs of a pipeline step for Woodpecker CI.", inputSchema: z.object({ "repo_id": z.number().int(), "pipeline": z.number().int(), "step_id": z.number().int(), duration_ms: z.number().int().min(1).max(30000).optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "repo_id" }, { location: "path", name: "pipeline" }, { location: "path", name: "step_id" }], stream: true, inputSchemaHash: "f07a5481c47aa2931aebabf0d9a18f755a5dff4dff06d5049727adcb9d964a7d", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
101
|
+
{ name: "woodpecker_get_currently_authenticated_user", title: "Get the currently authenticated user", method: "GET", path: "/user", description: "Get the currently authenticated user for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.object({ "admin": z.union([z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login."), z.null()]).optional(), "admin_env": z.union([z.boolean(), z.null()]).optional(), "avatar_url": z.union([z.string().describe("the avatar url for this user."), z.null()]).optional(), "email": z.union([z.string().describe("Email is the email address for this user.\n\nrequired: true"), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int().describe("the id for this user.\n\nrequired: true"), z.null()]).optional(), "login": z.union([z.string().describe("Login is the username for this user.\n\nrequired: true"), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is the of the user as model.Org."), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "268925163a279193b702e78c86771fe1d1cf33c09102ad8d83a49af6754456e7", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
102
|
+
{ name: "woodpecker_get_currently_authenticated_users_pipeline_feed", title: "Get the currently authenticated users pipeline feed", method: "GET", path: "/user/feed", description: "Get the currently authenticated users pipeline feed for Woodpecker CI.", inputSchema: z.object({}), responseSchema: z.array(z.object({ "author": z.union([z.string(), z.null()]).optional(), "author_avatar": z.union([z.string(), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "message": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "repo_id": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.string(), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() })), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "42c78b8845773eecebb023be7aff9029ec75a44a7d76a122181215ea9d4433e0", responseSchemaHash: "430adbfb77680406248379863246780356e159cf83d7f0728057d80e24b467a5", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
103
|
+
{ name: "woodpecker_get_user_s_repositories", title: "Get user's repositories", method: "GET", path: "/user/repos", description: "Get user's repositories for Woodpecker CI.", inputSchema: z.object({ "all": z.boolean().optional(), "name": z.string().optional() }), responseSchema: z.array(z.object({ "active": z.union([z.boolean(), z.null()]).optional(), "allow_deploy": z.union([z.boolean(), z.null()]).optional(), "allow_pr": z.union([z.boolean(), z.null()]).optional(), "approval_allowed_users": z.union([z.array(z.string()), z.null()]).optional(), "avatar_url": z.union([z.string(), z.null()]).optional(), "cancel_previous_pipeline_events": z.union([z.array(z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"])), z.null()]).optional(), "clone_url": z.union([z.string(), z.null()]).optional(), "clone_url_ssh": z.union([z.string(), z.null()]).optional(), "config_extension_endpoint": z.union([z.string(), z.null()]).optional(), "config_extension_exclusive": z.union([z.boolean(), z.null()]).optional(), "config_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "config_file": z.union([z.string(), z.null()]).optional(), "default_branch": z.union([z.string(), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string().describe("ForgeRemoteID is the unique identifier for the repository on the forge."), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "full_name": z.union([z.string(), z.null()]).optional(), "has_forge_name_conflict": z.union([z.boolean().describe("HasForgeNameConflict is true if forge returned a repo with same name but different forge remote id"), z.null()]).optional(), "has_no_forge_repo": z.union([z.boolean().describe("HasNoForgeRepo is true if repo only exist in the woodpecker store and not at the forge anymore"), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "last_pipeline": z.union([z.object({ "author": z.union([z.string().describe("TODO: only // The user sending the webhook data or triggering the pipeline event"), z.null()]).optional(), "author_avatar": z.union([z.string().describe("TODO: only & rename to AuthorAvatar // Avatar URL of the author of the commit"), z.null()]).optional(), "author_email": z.union([z.string(), z.null()]).optional(), "branch": z.union([z.string(), z.null()]).optional(), "cancel_info": z.union([z.object({ "canceled_by_step": z.union([z.string(), z.null()]).optional(), "canceled_by_user": z.union([z.string(), z.null()]).optional(), "superseded_by": z.union([z.number().int(), z.null()]).optional() }), z.null()]).optional(), "changed_files": z.union([z.array(z.string()), z.null()]).optional(), "commit": z.union([z.string(), z.null()]).optional(), "created": z.union([z.number().int(), z.null()]).optional(), "cron": z.union([z.string().describe("name of the cron job"), z.null()]).optional(), "deploy_task": z.union([z.string(), z.null()]).optional(), "deploy_to": z.union([z.string(), z.null()]).optional(), "errors": z.union([z.array(z.object({ "data": z.union([z.any(), z.null()]).optional(), "is_warning": z.union([z.boolean(), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "type": z.union([z.enum(["linter", "deprecation", "compiler", "generic", "bad_habit"]), z.null()]).optional() })), z.null()]).optional(), "event": z.union([z.enum(["push", "pull_request", "pull_request_closed", "pull_request_metadata", "tag", "release", "deployment", "cron", "manual"]), z.null()]).optional(), "event_reason": z.union([z.array(z.string()), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "forge_url": z.union([z.string(), z.null()]).optional(), "from_fork": z.union([z.boolean(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "is_prerelease": z.union([z.boolean().describe("deprecated, use release.is_prerelease instead"), z.null()]).optional(), "message": z.union([z.string(), z.null()]).optional(), "number": z.union([z.number().int(), z.null()]).optional(), "parent": z.union([z.number().int(), z.null()]).optional(), "pr_draft": z.union([z.boolean(), z.null()]).optional(), "pr_labels": z.union([z.array(z.string()), z.null()]).optional(), "pr_milestone": z.union([z.string(), z.null()]).optional(), "ref": z.union([z.string(), z.null()]).optional(), "refspec": z.union([z.string(), z.null()]).optional(), "release": z.union([z.object({ "is_prerelease": z.union([z.boolean(), z.null()]).optional(), "title": z.union([z.string(), z.null()]).optional() }).describe("Ongoing Work: https://github.com/woodpecker-ci/woodpecker/pull/4626\n// New"), z.null()]).optional(), "rerun_count": z.union([z.number().int(), z.null()]).optional(), "reviewed": z.union([z.number().int(), z.null()]).optional(), "reviewed_by": z.union([z.string(), z.null()]).optional(), "sender": z.union([z.string().describe("uses reported user for webhooks and name of cron for cron pipelines"), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "status": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "tag_title": z.union([z.string(), z.null()]).optional(), "timestamp": z.union([z.number().int(), z.null()]).optional(), "title": z.union([z.string().describe("// Deprecated"), z.null()]).optional(), "updated": z.union([z.number().int(), z.null()]).optional(), "variables": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "version": z.union([z.string(), z.null()]).optional(), "workflows": z.union([z.array(z.object({ "agent_id": z.union([z.number().int(), z.null()]).optional(), "children": z.union([z.array(z.object({ "error": z.union([z.string(), z.null()]).optional(), "exit_code": z.union([z.number().int(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "ppid": z.union([z.number().int(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional(), "type": z.union([z.enum(["clone", "service", "plugin", "commands", "cache"]), z.null()]).optional(), "uuid": z.union([z.string(), z.null()]).optional() })), z.null()]).optional(), "environ": z.union([z.record(z.string(), z.string()), z.null()]).optional(), "error": z.union([z.string(), z.null()]).optional(), "finished": z.union([z.number().int(), z.null()]).optional(), "id": z.union([z.number().int(), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "pid": z.union([z.number().int(), z.null()]).optional(), "pipeline_id": z.union([z.number().int(), z.null()]).optional(), "platform": z.union([z.string(), z.null()]).optional(), "started": z.union([z.number().int(), z.null()]).optional(), "state": z.union([z.enum(["skipped", "pending", "running", "success", "failure", "killed", "canceled", "error", "blocked", "declined", "created"]), z.null()]).optional() })), z.null()]).optional() }), z.null()]).optional(), "name": z.union([z.string(), z.null()]).optional(), "netrc_trusted": z.union([z.array(z.string()), z.null()]).optional(), "org_id": z.union([z.number().int(), z.null()]).optional(), "owner": z.union([z.string(), z.null()]).optional(), "pr_enabled": z.union([z.boolean(), z.null()]).optional(), "private": z.union([z.boolean(), z.null()]).optional(), "registry_extension_endpoint": z.union([z.string(), z.null()]).optional(), "registry_extension_netrc": z.union([z.boolean(), z.null()]).optional(), "require_approval": z.union([z.enum(["none", "forks", "pull_requests", "all_events"]), z.null()]).optional(), "secret_extension_endpoint": z.union([z.string(), z.null()]).optional(), "secret_extension_netrc": z.union([z.union([z.boolean(), z.string()]), z.null()]).optional(), "timeout": z.union([z.number().int(), z.null()]).optional(), "trusted": z.union([z.object({ "network": z.union([z.boolean(), z.null()]).optional(), "security": z.union([z.boolean(), z.null()]).optional(), "volumes": z.union([z.boolean(), z.null()]).optional() }), z.null()]).optional(), "visibility": z.union([z.enum(["public", "private", "internal"]), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "all" }, { location: "query", name: "name" }], stream: false, inputSchemaHash: "247449d19cc6dc8f42e65a84ab188d512587e5d581ab479f046fb672fdfc2e56", responseSchemaHash: "ee5a7e817b4ea2aa798025dd85184ed09eb9567caa39778d67776b66af80d9fa", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
104
|
+
{ name: "woodpecker_list_users", title: "List users", method: "GET", path: "/users", description: "List users for Woodpecker CI.", inputSchema: z.object({ "page": z.number().int().default(1), "perPage": z.number().int().default(50) }), responseSchema: z.array(z.object({ "admin": z.union([z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login."), z.null()]).optional(), "admin_env": z.union([z.boolean(), z.null()]).optional(), "avatar_url": z.union([z.string().describe("the avatar url for this user."), z.null()]).optional(), "email": z.union([z.string().describe("Email is the email address for this user.\n\nrequired: true"), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int().describe("the id for this user.\n\nrequired: true"), z.null()]).optional(), "login": z.union([z.string().describe("Login is the username for this user.\n\nrequired: true"), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is the of the user as model.Org."), z.null()]).optional() })), responseKind: "json", parameters: [{ location: "query", name: "page" }, { location: "query", name: "perPage" }], stream: false, inputSchemaHash: "477348081748e20f025292ed20d94e9eb495660ca54c9d20c697a1a8eb6a6c0d", responseSchemaHash: "29847daad30ace907e01690e9fe7246c4083f99912b292b363b961a21de7cd32", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
105
|
+
{ name: "woodpecker_create_user", title: "Create a user", method: "POST", path: "/users", description: "Create a user for Woodpecker CI.", inputSchema: z.object({ body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.union([z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login."), z.null()]).optional(), "admin_env": z.union([z.boolean(), z.null()]).optional(), "avatar_url": z.union([z.string().describe("the avatar url for this user."), z.null()]).optional(), "email": z.union([z.string().describe("Email is the email address for this user.\n\nrequired: true"), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int().describe("the id for this user.\n\nrequired: true"), z.null()]).optional(), "login": z.union([z.string().describe("Login is the username for this user.\n\nrequired: true"), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is the of the user as model.Org."), z.null()]).optional() }), responseKind: "json", parameters: [], stream: false, inputSchemaHash: "9706f03799be617684bab5eea10180cc63890213acae49b1af45e7c70837d938", responseSchemaHash: "268925163a279193b702e78c86771fe1d1cf33c09102ad8d83a49af6754456e7", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } },
|
|
106
|
+
{ name: "woodpecker_delete_user", title: "Delete a user", method: "DELETE", path: "/users/{login}", description: "Delete a user for Woodpecker CI.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.unknown(), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "e08ff1775904c477bdd3f649793337074b66b69a1def9e2b1636f80c5e3ecc55", responseSchemaHash: "1ab1dcbe984c565fe53cdb21824fbc47b8c482422d427c1ce42f71e4539a4710", annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } },
|
|
107
|
+
{ name: "woodpecker_get_user", title: "Get a user", method: "GET", path: "/users/{login}", description: "Get a user for Woodpecker CI.", inputSchema: z.object({ "login": z.string(), "forge_id": z.string(), "forge_remote_id": z.string().optional() }), responseSchema: z.object({ "admin": z.union([z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login."), z.null()]).optional(), "admin_env": z.union([z.boolean(), z.null()]).optional(), "avatar_url": z.union([z.string().describe("the avatar url for this user."), z.null()]).optional(), "email": z.union([z.string().describe("Email is the email address for this user.\n\nrequired: true"), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int().describe("the id for this user.\n\nrequired: true"), z.null()]).optional(), "login": z.union([z.string().describe("Login is the username for this user.\n\nrequired: true"), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is the of the user as model.Org."), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }, { location: "query", name: "forge_id" }, { location: "query", name: "forge_remote_id" }], stream: false, inputSchemaHash: "e08ff1775904c477bdd3f649793337074b66b69a1def9e2b1636f80c5e3ecc55", responseSchemaHash: "268925163a279193b702e78c86771fe1d1cf33c09102ad8d83a49af6754456e7", annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } },
|
|
108
|
+
{ name: "woodpecker_update_user", title: "Update a user", method: "PATCH", path: "/users/{login}", description: "Update a user for Woodpecker CI.", inputSchema: z.object({ "login": z.string(), body: z.object({ "admin": z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login.").optional(), "admin_env": z.boolean().optional(), "avatar_url": z.string().describe("the avatar url for this user.").optional(), "email": z.string().describe("Email is the email address for this user.\n\nrequired: true").optional(), "forge_id": z.number().int().optional(), "forge_remote_id": z.string().optional(), "id": z.number().int().describe("the id for this user.\n\nrequired: true").optional(), "login": z.string().describe("Login is the username for this user.\n\nrequired: true").optional(), "org_id": z.number().int().describe("OrgID is the of the user as model.Org.").optional() }) }), responseSchema: z.object({ "admin": z.union([z.boolean().describe("Admin indicates the user is a system administrator.\n\nNOTE: If the username is part of the WOODPECKER_ADMIN\nenvironment variable, this value will be set to true on login."), z.null()]).optional(), "admin_env": z.union([z.boolean(), z.null()]).optional(), "avatar_url": z.union([z.string().describe("the avatar url for this user."), z.null()]).optional(), "email": z.union([z.string().describe("Email is the email address for this user.\n\nrequired: true"), z.null()]).optional(), "forge_id": z.union([z.number().int(), z.null()]).optional(), "forge_remote_id": z.union([z.string(), z.null()]).optional(), "id": z.union([z.number().int().describe("the id for this user.\n\nrequired: true"), z.null()]).optional(), "login": z.union([z.string().describe("Login is the username for this user.\n\nrequired: true"), z.null()]).optional(), "org_id": z.union([z.number().int().describe("OrgID is the of the user as model.Org."), z.null()]).optional() }), responseKind: "json", parameters: [{ location: "path", name: "login" }], stream: false, inputSchemaHash: "df6ff49d0666b054d2d9e98174e0d56376a10e00b43b05a32f32266bf4744e8c", responseSchemaHash: "268925163a279193b702e78c86771fe1d1cf33c09102ad8d83a49af6754456e7", annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false } }
|
|
122
109
|
];
|
|
123
110
|
//# sourceMappingURL=operations.js.map
|