kaiten-cli 0.3.3__py3-none-any.whl
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.
- kaiten_cli/__init__.py +5 -0
- kaiten_cli/__main__.py +9 -0
- kaiten_cli/agent_gateway.py +577 -0
- kaiten_cli/app.py +1636 -0
- kaiten_cli/completion.py +570 -0
- kaiten_cli/discovery.py +39 -0
- kaiten_cli/errors.py +79 -0
- kaiten_cli/i18n.py +92 -0
- kaiten_cli/locales/ru.json +2967 -0
- kaiten_cli/localized_click.py +160 -0
- kaiten_cli/models.py +202 -0
- kaiten_cli/profiles.py +316 -0
- kaiten_cli/registry/__init__.py +260 -0
- kaiten_cli/registry/addons.py +392 -0
- kaiten_cli/registry/audit_and_analytics.py +451 -0
- kaiten_cli/registry/automation_schema.py +44 -0
- kaiten_cli/registry/automation_schemas.json +7417 -0
- kaiten_cli/registry/automations.py +342 -0
- kaiten_cli/registry/base.py +62 -0
- kaiten_cli/registry/blockers.py +320 -0
- kaiten_cli/registry/boards.py +520 -0
- kaiten_cli/registry/card_relations.py +376 -0
- kaiten_cli/registry/card_types.py +363 -0
- kaiten_cli/registry/cards.py +1329 -0
- kaiten_cli/registry/charts.py +539 -0
- kaiten_cli/registry/checklists.py +600 -0
- kaiten_cli/registry/columns.py +558 -0
- kaiten_cli/registry/comments.py +224 -0
- kaiten_cli/registry/custom_directories.py +980 -0
- kaiten_cli/registry/custom_properties.py +1460 -0
- kaiten_cli/registry/dashboards.py +564 -0
- kaiten_cli/registry/documents.py +761 -0
- kaiten_cli/registry/external_links.py +128 -0
- kaiten_cli/registry/files.py +738 -0
- kaiten_cli/registry/github_addon.py +613 -0
- kaiten_cli/registry/iterations.py +397 -0
- kaiten_cli/registry/lanes.py +205 -0
- kaiten_cli/registry/live_contracts.py +361 -0
- kaiten_cli/registry/members.py +336 -0
- kaiten_cli/registry/module_docs.py +108 -0
- kaiten_cli/registry/projects.py +369 -0
- kaiten_cli/registry/query.py +129 -0
- kaiten_cli/registry/restrictions.py +249 -0
- kaiten_cli/registry/roles_and_groups.py +1102 -0
- kaiten_cli/registry/scim.py +263 -0
- kaiten_cli/registry/service_desk.py +1270 -0
- kaiten_cli/registry/snapshot.py +187 -0
- kaiten_cli/registry/spaces.py +272 -0
- kaiten_cli/registry/subscribers.py +168 -0
- kaiten_cli/registry/tags.py +193 -0
- kaiten_cli/registry/time_logs.py +353 -0
- kaiten_cli/registry/tree.py +352 -0
- kaiten_cli/registry/utilities.py +287 -0
- kaiten_cli/registry/webhooks.py +265 -0
- kaiten_cli/runtime/__init__.py +1 -0
- kaiten_cli/runtime/automation_validation.py +115 -0
- kaiten_cli/runtime/behaviors.py +787 -0
- kaiten_cli/runtime/cache.py +733 -0
- kaiten_cli/runtime/client.py +387 -0
- kaiten_cli/runtime/endpoints.py +59 -0
- kaiten_cli/runtime/executor.py +269 -0
- kaiten_cli/runtime/fs_security.py +168 -0
- kaiten_cli/runtime/input.py +310 -0
- kaiten_cli/runtime/output.py +59 -0
- kaiten_cli/runtime/public_validation.py +35 -0
- kaiten_cli/runtime/snapshot_build.py +527 -0
- kaiten_cli/runtime/snapshot_common.py +363 -0
- kaiten_cli/runtime/snapshot_query.py +306 -0
- kaiten_cli/runtime/snapshot_store.py +1192 -0
- kaiten_cli/runtime/snapshots.py +62 -0
- kaiten_cli/runtime/sqlite_errors.py +23 -0
- kaiten_cli/runtime/support/__init__.py +1 -0
- kaiten_cli/runtime/support/addons.py +953 -0
- kaiten_cli/runtime/support/audit.py +70 -0
- kaiten_cli/runtime/support/batch.py +234 -0
- kaiten_cli/runtime/support/card_move_url.py +213 -0
- kaiten_cli/runtime/support/cards.py +174 -0
- kaiten_cli/runtime/support/checklists.py +21 -0
- kaiten_cli/runtime/support/company_users.py +117 -0
- kaiten_cli/runtime/support/dashboards.py +35 -0
- kaiten_cli/runtime/support/documents.py +175 -0
- kaiten_cli/runtime/support/files.py +561 -0
- kaiten_cli/runtime/support/markdown_export.py +525 -0
- kaiten_cli/runtime/support/pagination.py +167 -0
- kaiten_cli/runtime/support/projects.py +66 -0
- kaiten_cli/runtime/support/relations.py +86 -0
- kaiten_cli/runtime/support/restrictions.py +62 -0
- kaiten_cli/runtime/support/spaces.py +20 -0
- kaiten_cli/runtime/support/time_logs.py +61 -0
- kaiten_cli/runtime/support/tree.py +140 -0
- kaiten_cli/runtime/support/tree_sharing.py +447 -0
- kaiten_cli/runtime/trace.py +500 -0
- kaiten_cli/runtime/transforms.py +128 -0
- kaiten_cli/schema_docs.py +22 -0
- kaiten_cli/update_check.py +519 -0
- kaiten_cli-0.3.3.dist-info/METADATA +1110 -0
- kaiten_cli-0.3.3.dist-info/RECORD +99 -0
- kaiten_cli-0.3.3.dist-info/WHEEL +4 -0
- kaiten_cli-0.3.3.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,1460 @@
|
|
|
1
|
+
"""Custom property and select-value tool specs."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from kaiten_cli.models import ExampleSpec, OperationSpec, ResponsePolicy, RuntimeBehavior
|
|
6
|
+
from kaiten_cli.registry.base import make_tool
|
|
7
|
+
from kaiten_cli.runtime.behaviors import (
|
|
8
|
+
payload_body_request,
|
|
9
|
+
reject_custom_property_include_values,
|
|
10
|
+
)
|
|
11
|
+
from kaiten_cli.runtime.public_validation import validate_public_request
|
|
12
|
+
|
|
13
|
+
CARD_CATALOG_PROPERTY_USAGE_NOTES = (
|
|
14
|
+
"A catalog card field is a Kaiten custom property with API type `catalog`.",
|
|
15
|
+
"The catalog card field itself is managed by `custom-properties.*`.",
|
|
16
|
+
"Use `custom-properties.*` to list, create, update, get, or delete the card field definition itself.",
|
|
17
|
+
"Allowed entries/options are managed separately from the field definition.",
|
|
18
|
+
"Do not confuse this with UI catalog tables (`custom-directories`) or document groups.",
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
CATALOG_VALUES_USAGE_NOTES = (
|
|
22
|
+
"These are catalog property values: values/options of a catalog-typed custom property, identified by `property_id`.",
|
|
23
|
+
"The values of a catalog card field are managed by these commands.",
|
|
24
|
+
"Use these commands for values/options of a catalog card field.",
|
|
25
|
+
"Use these commands when the request is about property catalog options/values, not the UI catalog table itself (`custom-directories`).",
|
|
26
|
+
"For UI catalog tables use custom-directories, custom-directory-fields, and custom-directory-records.",
|
|
27
|
+
"Do not confuse this with document folders/containers; those use `document-groups.*` and tree navigation.",
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
TOOLS = (
|
|
32
|
+
make_tool(
|
|
33
|
+
canonical_name="custom-properties.list",
|
|
34
|
+
mcp_alias="kaiten_list_custom_properties",
|
|
35
|
+
description="List company custom properties.",
|
|
36
|
+
input_schema={
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"include_values": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "Deprecated compatibility input. false is ignored; true is rejected. Use select-values.list or catalog-values.list instead.",
|
|
42
|
+
},
|
|
43
|
+
"include_author": {"type": "boolean", "description": "Include author user object"},
|
|
44
|
+
"types": {"type": "string", "description": "Comma-separated type names to filter"},
|
|
45
|
+
"conditions": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Comma-separated conditions to filter",
|
|
48
|
+
},
|
|
49
|
+
"query": {"type": "string", "description": "Search filter by name"},
|
|
50
|
+
"order_by": {"type": "string", "description": "Sort column"},
|
|
51
|
+
"order_direction": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Sort direction (asc or desc)",
|
|
54
|
+
},
|
|
55
|
+
"board_id": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"description": "Filter properties available on a specific board",
|
|
58
|
+
},
|
|
59
|
+
"limit": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"minimum": 1,
|
|
62
|
+
"maximum": 100,
|
|
63
|
+
"description": "Max results",
|
|
64
|
+
},
|
|
65
|
+
"offset": {"type": "integer", "minimum": 0, "description": "Pagination offset"},
|
|
66
|
+
"compact": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"description": "Returns the minimum set of parameters of custom properties",
|
|
69
|
+
},
|
|
70
|
+
"load_by_ids": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"description": "Returns custom properties by ids if ids parameter is presented",
|
|
73
|
+
},
|
|
74
|
+
"ids": {"type": "array", "description": "Array of custom property ids"},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
operation=OperationSpec(
|
|
78
|
+
method="GET",
|
|
79
|
+
path_template="/company/custom-properties",
|
|
80
|
+
query_fields=(
|
|
81
|
+
"include_author",
|
|
82
|
+
"types",
|
|
83
|
+
"conditions",
|
|
84
|
+
"query",
|
|
85
|
+
"order_by",
|
|
86
|
+
"order_direction",
|
|
87
|
+
"board_id",
|
|
88
|
+
"limit",
|
|
89
|
+
"offset",
|
|
90
|
+
"compact",
|
|
91
|
+
"load_by_ids",
|
|
92
|
+
"ids",
|
|
93
|
+
),
|
|
94
|
+
),
|
|
95
|
+
response_policy=ResponsePolicy(default_limit=50, result_kind="list"),
|
|
96
|
+
runtime_behavior=RuntimeBehavior(
|
|
97
|
+
payload_validator=reject_custom_property_include_values,
|
|
98
|
+
),
|
|
99
|
+
examples=(
|
|
100
|
+
ExampleSpec(
|
|
101
|
+
command="kaiten --json custom-properties list --types select",
|
|
102
|
+
description="List custom properties.",
|
|
103
|
+
),
|
|
104
|
+
ExampleSpec(
|
|
105
|
+
command="kaiten --json custom-properties list --types catalog",
|
|
106
|
+
description="List catalog card fields.",
|
|
107
|
+
),
|
|
108
|
+
),
|
|
109
|
+
search_terms=("поле карточки справочник", "само поле карточки типа справочник"),
|
|
110
|
+
usage_notes=CARD_CATALOG_PROPERTY_USAGE_NOTES
|
|
111
|
+
+ (
|
|
112
|
+
"include_values is retained only as a migration input: false is ignored and true fails with replacement command guidance.",
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
make_tool(
|
|
116
|
+
canonical_name="custom-properties.get",
|
|
117
|
+
mcp_alias="kaiten_get_custom_property",
|
|
118
|
+
description="Get a custom property by ID.",
|
|
119
|
+
input_schema={
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {"property_id": {"type": "integer", "description": "Property ID"}},
|
|
122
|
+
"required": ["property_id"],
|
|
123
|
+
},
|
|
124
|
+
operation=OperationSpec(
|
|
125
|
+
method="GET",
|
|
126
|
+
path_template="/company/custom-properties/{property_id}",
|
|
127
|
+
path_fields=("property_id",),
|
|
128
|
+
),
|
|
129
|
+
examples=(
|
|
130
|
+
ExampleSpec(
|
|
131
|
+
command="kaiten --json custom-properties get --property-id 5",
|
|
132
|
+
description="Get a custom property.",
|
|
133
|
+
),
|
|
134
|
+
),
|
|
135
|
+
search_terms=("поле карточки справочник", "само поле карточки типа справочник"),
|
|
136
|
+
usage_notes=CARD_CATALOG_PROPERTY_USAGE_NOTES,
|
|
137
|
+
),
|
|
138
|
+
make_tool(
|
|
139
|
+
canonical_name="custom-properties.create",
|
|
140
|
+
mcp_alias="kaiten_create_custom_property",
|
|
141
|
+
description="Create a company custom property.",
|
|
142
|
+
input_schema={
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"name": {"type": "string", "description": "Property name (1-255 chars)"},
|
|
146
|
+
"type": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"enum": [
|
|
149
|
+
"string",
|
|
150
|
+
"number",
|
|
151
|
+
"date",
|
|
152
|
+
"email",
|
|
153
|
+
"checkbox",
|
|
154
|
+
"select",
|
|
155
|
+
"formula",
|
|
156
|
+
"url",
|
|
157
|
+
"collective_score",
|
|
158
|
+
"vote",
|
|
159
|
+
"collective_vote",
|
|
160
|
+
"catalog",
|
|
161
|
+
"phone",
|
|
162
|
+
"user",
|
|
163
|
+
"attachment",
|
|
164
|
+
],
|
|
165
|
+
"description": "Property type",
|
|
166
|
+
},
|
|
167
|
+
"show_on_facade": {
|
|
168
|
+
"type": "boolean",
|
|
169
|
+
"description": "Show on card facade",
|
|
170
|
+
"default": False,
|
|
171
|
+
},
|
|
172
|
+
"multi_select": {
|
|
173
|
+
"type": ["boolean", "null"],
|
|
174
|
+
"description": "Enable multi-select",
|
|
175
|
+
"x-documentation-alternatives": [
|
|
176
|
+
{
|
|
177
|
+
"type": ["boolean"],
|
|
178
|
+
"description": "Used for select properties. Determines is select property used as multi select",
|
|
179
|
+
},
|
|
180
|
+
{"type": "null", "description": "Empty multi select value"},
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
"colorful": {
|
|
184
|
+
"type": ["boolean", "null"],
|
|
185
|
+
"description": "Enable colors for select values",
|
|
186
|
+
"x-documentation-alternatives": [
|
|
187
|
+
{
|
|
188
|
+
"type": ["boolean"],
|
|
189
|
+
"description": "Used for select properties. Determines should select color when creating new select value.",
|
|
190
|
+
},
|
|
191
|
+
{"type": "null", "description": "Empty colorful value"},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
"multiline": {
|
|
195
|
+
"type": "boolean",
|
|
196
|
+
"description": "Multiline text field",
|
|
197
|
+
"default": False,
|
|
198
|
+
},
|
|
199
|
+
"values_creatable_by_users": {
|
|
200
|
+
"type": ["boolean", "null"],
|
|
201
|
+
"description": "Allow regular users to create values",
|
|
202
|
+
"x-documentation-alternatives": [
|
|
203
|
+
{
|
|
204
|
+
"type": ["boolean"],
|
|
205
|
+
"description": "Used for select properties. Determines if users with writer role are able to create new select property values.",
|
|
206
|
+
},
|
|
207
|
+
{"type": "null", "description": "Empty values_creatable_by_users value"},
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
"values_type": {
|
|
211
|
+
"type": ["string", "null"],
|
|
212
|
+
"enum": ["number", "text"],
|
|
213
|
+
"description": "Values type (required for collective_score)",
|
|
214
|
+
"x-documentation-alternatives": [
|
|
215
|
+
{
|
|
216
|
+
"type": "null",
|
|
217
|
+
"description": "Empty for any type except collective value",
|
|
218
|
+
},
|
|
219
|
+
{"enum": ["number", "text"], "description": "Type of values"},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
"vote_variant": {
|
|
223
|
+
"type": ["string", "null"],
|
|
224
|
+
"enum": ["rating", "scale", "emoji_set"],
|
|
225
|
+
"description": "Vote variant (required for vote/collective_vote)",
|
|
226
|
+
"x-documentation-alternatives": [
|
|
227
|
+
{
|
|
228
|
+
"type": "null",
|
|
229
|
+
"description": "Empty vote variant - for custom properties not of type vote and collective vote",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"enum": ["rating", "scale", "emoji_set"],
|
|
233
|
+
"description": "Type of vote or collective vote custom properties",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
"color": {
|
|
238
|
+
"type": ["integer", "null"],
|
|
239
|
+
"description": "Color index",
|
|
240
|
+
"x-documentation-alternatives": [
|
|
241
|
+
{"type": ["integer"], "description": "Color of catalog custom property"},
|
|
242
|
+
{"type": "null", "description": "Catalog custom property without color"},
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
"data": {
|
|
246
|
+
"type": "object",
|
|
247
|
+
"description": "Type-specific data; required for vote/collective_vote and some other typed properties",
|
|
248
|
+
"properties": {
|
|
249
|
+
"restrictions": {
|
|
250
|
+
"type": "object",
|
|
251
|
+
"properties": {
|
|
252
|
+
"min": {
|
|
253
|
+
"description": "Minimum allowed on input value",
|
|
254
|
+
"type": ["number", "null"],
|
|
255
|
+
"x-documentation-alternatives": [
|
|
256
|
+
{
|
|
257
|
+
"type": "number",
|
|
258
|
+
"description": "Minimum allowed on input value",
|
|
259
|
+
},
|
|
260
|
+
{"type": "null", "description": "Empty minimum value"},
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
"max": {
|
|
264
|
+
"description": "Maximum allowed on input value",
|
|
265
|
+
"type": ["number", "null"],
|
|
266
|
+
"x-documentation-alternatives": [
|
|
267
|
+
{
|
|
268
|
+
"type": "number",
|
|
269
|
+
"description": "Maximum allowed on input value",
|
|
270
|
+
},
|
|
271
|
+
{"type": "null", "description": "Empty maximum value"},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
"minLength": {
|
|
275
|
+
"minimum": 1,
|
|
276
|
+
"description": "Minimum length allowed on input value",
|
|
277
|
+
"type": ["number", "null"],
|
|
278
|
+
"x-documentation-alternatives": [
|
|
279
|
+
{
|
|
280
|
+
"type": "number",
|
|
281
|
+
"minimum": 1,
|
|
282
|
+
"description": "Minimum length allowed on input value",
|
|
283
|
+
},
|
|
284
|
+
{"type": "null", "description": "Empty minimum length"},
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
"maxLength": {
|
|
288
|
+
"minimum": 1,
|
|
289
|
+
"description": "Minimum length allowed on input value",
|
|
290
|
+
"type": ["number", "null"],
|
|
291
|
+
"x-documentation-alternatives": [
|
|
292
|
+
{
|
|
293
|
+
"type": "number",
|
|
294
|
+
"minimum": 1,
|
|
295
|
+
"description": "Minimum length allowed on input value",
|
|
296
|
+
},
|
|
297
|
+
{"type": "null", "description": "Empty maximum length"},
|
|
298
|
+
],
|
|
299
|
+
},
|
|
300
|
+
"maxFilesCount": {
|
|
301
|
+
"description": "Maximum allowed files count",
|
|
302
|
+
"type": ["number", "null"],
|
|
303
|
+
"x-documentation-alternatives": [
|
|
304
|
+
{
|
|
305
|
+
"type": "number",
|
|
306
|
+
"description": "Maximum allowed files count",
|
|
307
|
+
},
|
|
308
|
+
{"type": "null", "description": "Empty maximum value"},
|
|
309
|
+
],
|
|
310
|
+
},
|
|
311
|
+
"filesExtensions": {
|
|
312
|
+
"description": "Allowed files extensions",
|
|
313
|
+
"type": ["string", "null"],
|
|
314
|
+
"x-documentation-alternatives": [
|
|
315
|
+
{
|
|
316
|
+
"type": "string",
|
|
317
|
+
"description": "Allowed files extensions",
|
|
318
|
+
},
|
|
319
|
+
{"type": "null", "description": "Empty maximum value"},
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
"description": "Restrictions on input values",
|
|
324
|
+
"x-documentation-alternatives": [
|
|
325
|
+
{"required": ["min"]},
|
|
326
|
+
{"required": ["max"]},
|
|
327
|
+
{"required": ["minLength"]},
|
|
328
|
+
{"required": ["maxLength"]},
|
|
329
|
+
{"required": ["maxFilesCount"]},
|
|
330
|
+
{"required": ["filesExtensions"]},
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
"formula": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "Formula content",
|
|
336
|
+
"minLength": 1,
|
|
337
|
+
},
|
|
338
|
+
"emoji": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "Emoji for vote property of variant rating",
|
|
341
|
+
"minLength": 1,
|
|
342
|
+
},
|
|
343
|
+
"count": {
|
|
344
|
+
"type": "integer",
|
|
345
|
+
"description": "Count of emojis for vote property",
|
|
346
|
+
"minimum": 2,
|
|
347
|
+
"maximum": 10,
|
|
348
|
+
},
|
|
349
|
+
"emojis": {
|
|
350
|
+
"type": "array",
|
|
351
|
+
"description": "List of emojis for vote property of variant emoji_set",
|
|
352
|
+
"items": {"type": "string", "minLength": 1},
|
|
353
|
+
},
|
|
354
|
+
"min": {
|
|
355
|
+
"type": "integer",
|
|
356
|
+
"description": "Min value for vote property of variant scale",
|
|
357
|
+
},
|
|
358
|
+
"max": {
|
|
359
|
+
"type": "integer",
|
|
360
|
+
"description": "Max value for vote property of variant scale",
|
|
361
|
+
},
|
|
362
|
+
"calculation_method": {
|
|
363
|
+
"enum": ["average", "sum"],
|
|
364
|
+
"description": "Calculation method for vote property of variant scale",
|
|
365
|
+
"type": "string",
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
"x-documentation-alternatives": [
|
|
369
|
+
{"required": ["restrictions"]},
|
|
370
|
+
{"required": ["formula"]},
|
|
371
|
+
{"required": ["emoji", "count"]},
|
|
372
|
+
{"required": ["emojis"]},
|
|
373
|
+
{"required": ["min", "max", "calculation_method"]},
|
|
374
|
+
],
|
|
375
|
+
},
|
|
376
|
+
"formula": {"type": "string", "description": "Formula for calculation"},
|
|
377
|
+
"formula_source_card": {
|
|
378
|
+
"type": "object",
|
|
379
|
+
"description": "Card data from which are used to calculate the formula",
|
|
380
|
+
},
|
|
381
|
+
"fields_settings": {
|
|
382
|
+
"type": "object",
|
|
383
|
+
"minProperties": 1,
|
|
384
|
+
"patternProperties": {
|
|
385
|
+
"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"name": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "Field name",
|
|
391
|
+
"minLength": 1,
|
|
392
|
+
},
|
|
393
|
+
"required": {
|
|
394
|
+
"type": "boolean",
|
|
395
|
+
"description": "Determines is field is required",
|
|
396
|
+
},
|
|
397
|
+
"deleted": {
|
|
398
|
+
"type": "boolean",
|
|
399
|
+
"description": "Determines is field is deleted",
|
|
400
|
+
"default": False,
|
|
401
|
+
},
|
|
402
|
+
"sortOrder": {
|
|
403
|
+
"type": "number",
|
|
404
|
+
"minimum": 1,
|
|
405
|
+
"description": "Minimum sort order of field",
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
"x-documentation-additionalProperties": False,
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"x-documentation-additionalProperties": False,
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
"required": [],
|
|
415
|
+
},
|
|
416
|
+
operation=OperationSpec(
|
|
417
|
+
method="POST",
|
|
418
|
+
path_template="/company/custom-properties",
|
|
419
|
+
body_fields=(
|
|
420
|
+
"name",
|
|
421
|
+
"type",
|
|
422
|
+
"show_on_facade",
|
|
423
|
+
"multi_select",
|
|
424
|
+
"colorful",
|
|
425
|
+
"multiline",
|
|
426
|
+
"values_creatable_by_users",
|
|
427
|
+
"values_type",
|
|
428
|
+
"vote_variant",
|
|
429
|
+
"color",
|
|
430
|
+
"data",
|
|
431
|
+
"formula",
|
|
432
|
+
"formula_source_card",
|
|
433
|
+
"fields_settings",
|
|
434
|
+
),
|
|
435
|
+
),
|
|
436
|
+
runtime_behavior=RuntimeBehavior(payload_validator=validate_public_request),
|
|
437
|
+
examples=(
|
|
438
|
+
ExampleSpec(
|
|
439
|
+
command="kaiten --json custom-properties create --name Status --type select",
|
|
440
|
+
description="Create a custom property.",
|
|
441
|
+
),
|
|
442
|
+
ExampleSpec(
|
|
443
|
+
command='kaiten --json custom-properties create --name "Client" --type catalog',
|
|
444
|
+
description="Create a catalog card field.",
|
|
445
|
+
),
|
|
446
|
+
),
|
|
447
|
+
search_terms=("поле карточки справочник", "само поле карточки типа справочник"),
|
|
448
|
+
usage_notes=CARD_CATALOG_PROPERTY_USAGE_NOTES,
|
|
449
|
+
),
|
|
450
|
+
make_tool(
|
|
451
|
+
canonical_name="custom-properties.update",
|
|
452
|
+
mcp_alias="kaiten_update_custom_property",
|
|
453
|
+
description="Update a custom property.",
|
|
454
|
+
input_schema={
|
|
455
|
+
"type": "object",
|
|
456
|
+
"properties": {
|
|
457
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
458
|
+
"name": {"type": "string", "description": "New name"},
|
|
459
|
+
"condition": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"enum": ["active", "inactive"],
|
|
462
|
+
"description": "Status",
|
|
463
|
+
},
|
|
464
|
+
"show_on_facade": {
|
|
465
|
+
"type": "boolean",
|
|
466
|
+
"description": "Show on card facade",
|
|
467
|
+
"default": False,
|
|
468
|
+
},
|
|
469
|
+
"multi_select": {
|
|
470
|
+
"type": ["boolean", "null"],
|
|
471
|
+
"description": "Multi-select mode",
|
|
472
|
+
"x-documentation-alternatives": [
|
|
473
|
+
{
|
|
474
|
+
"type": ["boolean"],
|
|
475
|
+
"description": "Used for select properties. Determines is select property used as multi select",
|
|
476
|
+
},
|
|
477
|
+
{"type": "null", "description": "Empty multi select value"},
|
|
478
|
+
],
|
|
479
|
+
},
|
|
480
|
+
"colorful": {
|
|
481
|
+
"type": ["boolean", "null"],
|
|
482
|
+
"description": "Enable colors",
|
|
483
|
+
"x-documentation-alternatives": [
|
|
484
|
+
{
|
|
485
|
+
"type": ["boolean"],
|
|
486
|
+
"description": "Used for select properties. Determines should select color when creating new select value.",
|
|
487
|
+
},
|
|
488
|
+
{"type": "null", "description": "Empty colorful value"},
|
|
489
|
+
],
|
|
490
|
+
},
|
|
491
|
+
"multiline": {"type": "boolean", "description": "Multiline mode", "default": False},
|
|
492
|
+
"values_creatable_by_users": {
|
|
493
|
+
"type": ["boolean", "null"],
|
|
494
|
+
"description": "Allow users to create values",
|
|
495
|
+
"x-documentation-alternatives": [
|
|
496
|
+
{
|
|
497
|
+
"type": ["boolean"],
|
|
498
|
+
"description": "Used for select properties. Determines if users with writer roles are able to create new select property values.",
|
|
499
|
+
},
|
|
500
|
+
{"type": "null", "description": "Empty values_creatable_by_users value"},
|
|
501
|
+
],
|
|
502
|
+
},
|
|
503
|
+
"is_used_as_progress": {
|
|
504
|
+
"type": "boolean",
|
|
505
|
+
"description": "Use this formula property as progress",
|
|
506
|
+
"default": False,
|
|
507
|
+
},
|
|
508
|
+
"color": {
|
|
509
|
+
"type": ["integer", "null"],
|
|
510
|
+
"description": "Color index",
|
|
511
|
+
"x-documentation-alternatives": [
|
|
512
|
+
{"type": ["integer"], "description": "Color of catalog custom property"},
|
|
513
|
+
{"type": "null", "description": "Catalog custom property without color"},
|
|
514
|
+
],
|
|
515
|
+
},
|
|
516
|
+
"data": {
|
|
517
|
+
"type": "object",
|
|
518
|
+
"description": "Type-specific data",
|
|
519
|
+
"properties": {
|
|
520
|
+
"restrictions": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"properties": {
|
|
523
|
+
"min": {
|
|
524
|
+
"description": "Minimum allowed on input value",
|
|
525
|
+
"type": ["number", "null"],
|
|
526
|
+
"x-documentation-alternatives": [
|
|
527
|
+
{
|
|
528
|
+
"type": "number",
|
|
529
|
+
"description": "Minimum allowed on input value",
|
|
530
|
+
},
|
|
531
|
+
{"type": "null", "description": "Empty minimum value"},
|
|
532
|
+
],
|
|
533
|
+
},
|
|
534
|
+
"max": {
|
|
535
|
+
"description": "Maximum allowed on input value",
|
|
536
|
+
"type": ["number", "null"],
|
|
537
|
+
"x-documentation-alternatives": [
|
|
538
|
+
{
|
|
539
|
+
"type": "number",
|
|
540
|
+
"description": "Maximum allowed on input value",
|
|
541
|
+
},
|
|
542
|
+
{"type": "null", "description": "Empty maximum value"},
|
|
543
|
+
],
|
|
544
|
+
},
|
|
545
|
+
"minLength": {
|
|
546
|
+
"minimum": 1,
|
|
547
|
+
"description": "Minimum length allowed on input value",
|
|
548
|
+
"type": ["number", "null"],
|
|
549
|
+
"x-documentation-alternatives": [
|
|
550
|
+
{
|
|
551
|
+
"type": "number",
|
|
552
|
+
"minimum": 1,
|
|
553
|
+
"description": "Minimum length allowed on input value",
|
|
554
|
+
},
|
|
555
|
+
{"type": "null", "description": "Empty minimum length"},
|
|
556
|
+
],
|
|
557
|
+
},
|
|
558
|
+
"maxLength": {
|
|
559
|
+
"minimum": 1,
|
|
560
|
+
"description": "Minimum length allowed on input value",
|
|
561
|
+
"type": ["number", "null"],
|
|
562
|
+
"x-documentation-alternatives": [
|
|
563
|
+
{
|
|
564
|
+
"type": "number",
|
|
565
|
+
"minimum": 1,
|
|
566
|
+
"description": "Minimum length allowed on input value",
|
|
567
|
+
},
|
|
568
|
+
{"type": "null", "description": "Empty maximum length"},
|
|
569
|
+
],
|
|
570
|
+
},
|
|
571
|
+
"maxFilesCount": {
|
|
572
|
+
"description": "Maximum allowed files count",
|
|
573
|
+
"type": ["number", "null"],
|
|
574
|
+
"x-documentation-alternatives": [
|
|
575
|
+
{
|
|
576
|
+
"type": "number",
|
|
577
|
+
"description": "Maximum allowed files count",
|
|
578
|
+
},
|
|
579
|
+
{"type": "null", "description": "Empty maximum value"},
|
|
580
|
+
],
|
|
581
|
+
},
|
|
582
|
+
"filesExtensions": {
|
|
583
|
+
"description": "Allowed files extensions",
|
|
584
|
+
"type": ["string", "null"],
|
|
585
|
+
"x-documentation-alternatives": [
|
|
586
|
+
{
|
|
587
|
+
"type": "string",
|
|
588
|
+
"description": "Allowed files extensions",
|
|
589
|
+
},
|
|
590
|
+
{"type": "null", "description": "Empty maximum value"},
|
|
591
|
+
],
|
|
592
|
+
},
|
|
593
|
+
},
|
|
594
|
+
"description": "Restrictions on input values",
|
|
595
|
+
"x-documentation-alternatives": [
|
|
596
|
+
{"required": ["min"]},
|
|
597
|
+
{"required": ["max"]},
|
|
598
|
+
{"required": ["minLength"]},
|
|
599
|
+
{"required": ["maxLength"]},
|
|
600
|
+
{"required": ["maxFilesCount"]},
|
|
601
|
+
{"required": ["filesExtensions"]},
|
|
602
|
+
],
|
|
603
|
+
},
|
|
604
|
+
"formula": {
|
|
605
|
+
"type": "string",
|
|
606
|
+
"description": "Formula content",
|
|
607
|
+
"minLength": 1,
|
|
608
|
+
},
|
|
609
|
+
"emoji": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"description": "Emoji for vote property of variant rating",
|
|
612
|
+
"minLength": 1,
|
|
613
|
+
},
|
|
614
|
+
"count": {
|
|
615
|
+
"type": "integer",
|
|
616
|
+
"description": "Count of emojis for vote property",
|
|
617
|
+
"minimum": 2,
|
|
618
|
+
"maximum": 10,
|
|
619
|
+
},
|
|
620
|
+
"emojis": {
|
|
621
|
+
"type": "array",
|
|
622
|
+
"description": "List of emojis for vote property of variant emoji_set",
|
|
623
|
+
"items": {"type": "string", "minLength": 1},
|
|
624
|
+
},
|
|
625
|
+
"min": {
|
|
626
|
+
"type": "number",
|
|
627
|
+
"description": "Min value for vote property of variant scale",
|
|
628
|
+
},
|
|
629
|
+
"max": {
|
|
630
|
+
"type": "number",
|
|
631
|
+
"description": "Max value for vote property of variant scale",
|
|
632
|
+
},
|
|
633
|
+
"calculation_method": {
|
|
634
|
+
"enum": ["average", "sum"],
|
|
635
|
+
"description": "Calculation method for vote property of variant scale",
|
|
636
|
+
"type": "string",
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
"x-documentation-alternatives": [
|
|
640
|
+
{"required": ["restrictions"]},
|
|
641
|
+
{"required": ["formula"]},
|
|
642
|
+
{"required": ["emoji", "count"]},
|
|
643
|
+
{"required": ["emojis"]},
|
|
644
|
+
{"required": ["min", "max", "calculation_method"]},
|
|
645
|
+
],
|
|
646
|
+
},
|
|
647
|
+
"fields_settings": {
|
|
648
|
+
"type": ["object", "null"],
|
|
649
|
+
"description": "Catalog fields configuration",
|
|
650
|
+
"minProperties": 1,
|
|
651
|
+
"patternProperties": {
|
|
652
|
+
"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$": {
|
|
653
|
+
"type": "object",
|
|
654
|
+
"properties": {
|
|
655
|
+
"name": {
|
|
656
|
+
"type": "string",
|
|
657
|
+
"description": "Field name",
|
|
658
|
+
"minLength": 1,
|
|
659
|
+
},
|
|
660
|
+
"required": {
|
|
661
|
+
"type": "boolean",
|
|
662
|
+
"description": "Determines is field is required",
|
|
663
|
+
},
|
|
664
|
+
"deleted": {
|
|
665
|
+
"type": "boolean",
|
|
666
|
+
"description": "Determines is field is deleted",
|
|
667
|
+
"default": False,
|
|
668
|
+
},
|
|
669
|
+
"sortOrder": {
|
|
670
|
+
"type": "number",
|
|
671
|
+
"minimum": 1,
|
|
672
|
+
"description": "Minimum sort order of field",
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
"x-documentation-additionalProperties": False,
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
"x-documentation-alternatives": [
|
|
679
|
+
{
|
|
680
|
+
"type": "object",
|
|
681
|
+
"minProperties": 1,
|
|
682
|
+
"additionalProperties": False,
|
|
683
|
+
"patternProperties": {
|
|
684
|
+
"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$": {
|
|
685
|
+
"type": "object",
|
|
686
|
+
"properties": {
|
|
687
|
+
"name": {
|
|
688
|
+
"type": "string",
|
|
689
|
+
"description": "Field name",
|
|
690
|
+
"minLength": 1,
|
|
691
|
+
},
|
|
692
|
+
"required": {
|
|
693
|
+
"type": "boolean",
|
|
694
|
+
"description": "Determines is field is required",
|
|
695
|
+
},
|
|
696
|
+
"deleted": {
|
|
697
|
+
"type": "boolean",
|
|
698
|
+
"description": "Determines is field is deleted",
|
|
699
|
+
"default": False,
|
|
700
|
+
},
|
|
701
|
+
"sortOrder": {
|
|
702
|
+
"type": "number",
|
|
703
|
+
"minimum": 1,
|
|
704
|
+
"description": "Minimum sort order of field",
|
|
705
|
+
},
|
|
706
|
+
},
|
|
707
|
+
"additionalProperties": False,
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
},
|
|
711
|
+
{"type": "null"},
|
|
712
|
+
],
|
|
713
|
+
"x-documentation-additionalProperties": False,
|
|
714
|
+
},
|
|
715
|
+
},
|
|
716
|
+
"required": ["property_id"],
|
|
717
|
+
},
|
|
718
|
+
operation=OperationSpec(
|
|
719
|
+
method="PATCH",
|
|
720
|
+
path_template="/company/custom-properties/{property_id}",
|
|
721
|
+
path_fields=("property_id",),
|
|
722
|
+
body_fields=(
|
|
723
|
+
"name",
|
|
724
|
+
"condition",
|
|
725
|
+
"show_on_facade",
|
|
726
|
+
"multi_select",
|
|
727
|
+
"colorful",
|
|
728
|
+
"multiline",
|
|
729
|
+
"values_creatable_by_users",
|
|
730
|
+
"is_used_as_progress",
|
|
731
|
+
"color",
|
|
732
|
+
"data",
|
|
733
|
+
"fields_settings",
|
|
734
|
+
),
|
|
735
|
+
),
|
|
736
|
+
examples=(
|
|
737
|
+
ExampleSpec(
|
|
738
|
+
command="kaiten --json custom-properties update --property-id 5 --name Priority",
|
|
739
|
+
description="Update a custom property.",
|
|
740
|
+
),
|
|
741
|
+
),
|
|
742
|
+
search_terms=("поле карточки справочник", "само поле карточки типа справочник"),
|
|
743
|
+
usage_notes=CARD_CATALOG_PROPERTY_USAGE_NOTES,
|
|
744
|
+
),
|
|
745
|
+
make_tool(
|
|
746
|
+
canonical_name="custom-properties.delete",
|
|
747
|
+
mcp_alias="kaiten_delete_custom_property",
|
|
748
|
+
description="Delete a custom property.",
|
|
749
|
+
input_schema={
|
|
750
|
+
"type": "object",
|
|
751
|
+
"properties": {"property_id": {"type": "integer", "description": "Property ID"}},
|
|
752
|
+
"required": ["property_id"],
|
|
753
|
+
},
|
|
754
|
+
operation=OperationSpec(
|
|
755
|
+
method="DELETE",
|
|
756
|
+
path_template="/company/custom-properties/{property_id}",
|
|
757
|
+
path_fields=("property_id",),
|
|
758
|
+
),
|
|
759
|
+
examples=(
|
|
760
|
+
ExampleSpec(
|
|
761
|
+
command="kaiten --json custom-properties delete --property-id 5",
|
|
762
|
+
description="Delete a custom property.",
|
|
763
|
+
),
|
|
764
|
+
),
|
|
765
|
+
search_terms=("поле карточки справочник", "само поле карточки типа справочник"),
|
|
766
|
+
usage_notes=CARD_CATALOG_PROPERTY_USAGE_NOTES,
|
|
767
|
+
),
|
|
768
|
+
make_tool(
|
|
769
|
+
canonical_name="custom-properties.select-values.list",
|
|
770
|
+
mcp_alias="kaiten_list_select_values",
|
|
771
|
+
description="List select values for a custom property.",
|
|
772
|
+
input_schema={
|
|
773
|
+
"type": "object",
|
|
774
|
+
"properties": {
|
|
775
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
776
|
+
"query": {"type": "string", "description": "Search filter by value text"},
|
|
777
|
+
"order_by": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"enum": ["id", "sort_order", "match_query_priority"],
|
|
780
|
+
"description": "Sort order mode",
|
|
781
|
+
},
|
|
782
|
+
"conditions": {
|
|
783
|
+
"type": ["string", "array"],
|
|
784
|
+
"description": "Comma-separated conditions",
|
|
785
|
+
},
|
|
786
|
+
"v2_select_search": {"type": "boolean", "description": "Use v2 search mode"},
|
|
787
|
+
"limit": {
|
|
788
|
+
"type": "integer",
|
|
789
|
+
"minimum": 1,
|
|
790
|
+
"maximum": 100,
|
|
791
|
+
"description": "Max results",
|
|
792
|
+
},
|
|
793
|
+
"offset": {"type": "integer", "minimum": 0, "description": "Pagination offset"},
|
|
794
|
+
"ids": {
|
|
795
|
+
"type": "array",
|
|
796
|
+
"description": "Array of ids to filter by. Works only if v2_select_search param is true",
|
|
797
|
+
},
|
|
798
|
+
},
|
|
799
|
+
"required": ["property_id"],
|
|
800
|
+
},
|
|
801
|
+
operation=OperationSpec(
|
|
802
|
+
method="GET",
|
|
803
|
+
path_template="/company/custom-properties/{property_id}/select-values",
|
|
804
|
+
path_fields=("property_id",),
|
|
805
|
+
query_fields=(
|
|
806
|
+
"query",
|
|
807
|
+
"order_by",
|
|
808
|
+
"conditions",
|
|
809
|
+
"v2_select_search",
|
|
810
|
+
"limit",
|
|
811
|
+
"offset",
|
|
812
|
+
"ids",
|
|
813
|
+
),
|
|
814
|
+
),
|
|
815
|
+
response_policy=ResponsePolicy(default_limit=50, result_kind="list"),
|
|
816
|
+
examples=(
|
|
817
|
+
ExampleSpec(
|
|
818
|
+
command="kaiten --json custom-properties select-values list --property-id 3",
|
|
819
|
+
description="List select values.",
|
|
820
|
+
),
|
|
821
|
+
),
|
|
822
|
+
),
|
|
823
|
+
make_tool(
|
|
824
|
+
canonical_name="custom-properties.select-values.get",
|
|
825
|
+
mcp_alias="kaiten_get_select_value",
|
|
826
|
+
description="Get a single select value by ID.",
|
|
827
|
+
input_schema={
|
|
828
|
+
"type": "object",
|
|
829
|
+
"properties": {
|
|
830
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
831
|
+
"value_id": {"type": "integer", "description": "Select value ID"},
|
|
832
|
+
},
|
|
833
|
+
"required": ["property_id", "value_id"],
|
|
834
|
+
},
|
|
835
|
+
operation=OperationSpec(
|
|
836
|
+
method="GET",
|
|
837
|
+
path_template="/company/custom-properties/{property_id}/select-values/{value_id}",
|
|
838
|
+
path_fields=("property_id", "value_id"),
|
|
839
|
+
),
|
|
840
|
+
examples=(
|
|
841
|
+
ExampleSpec(
|
|
842
|
+
command="kaiten --json custom-properties select-values get --property-id 3 --value-id 10",
|
|
843
|
+
description="Get a select value.",
|
|
844
|
+
),
|
|
845
|
+
),
|
|
846
|
+
),
|
|
847
|
+
make_tool(
|
|
848
|
+
canonical_name="custom-properties.select-values.create",
|
|
849
|
+
mcp_alias="kaiten_create_select_value",
|
|
850
|
+
description="Create a select value for a custom property.",
|
|
851
|
+
input_schema={
|
|
852
|
+
"type": "object",
|
|
853
|
+
"properties": {
|
|
854
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
855
|
+
"value": {"type": "string", "description": "Select value text"},
|
|
856
|
+
"color": {
|
|
857
|
+
"type": ["integer", "null"],
|
|
858
|
+
"description": "Color index",
|
|
859
|
+
"x-documentation-alternatives": [
|
|
860
|
+
{
|
|
861
|
+
"type": ["integer"],
|
|
862
|
+
"description": "Color of custom property select value",
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"type": "null",
|
|
866
|
+
"description": "Custom property select value without color",
|
|
867
|
+
},
|
|
868
|
+
],
|
|
869
|
+
},
|
|
870
|
+
"sort_order": {"type": "number", "description": "Sort order (float)"},
|
|
871
|
+
},
|
|
872
|
+
"required": ["property_id", "value"],
|
|
873
|
+
},
|
|
874
|
+
operation=OperationSpec(
|
|
875
|
+
method="POST",
|
|
876
|
+
path_template="/company/custom-properties/{property_id}/select-values",
|
|
877
|
+
path_fields=("property_id",),
|
|
878
|
+
body_fields=("value", "color", "sort_order"),
|
|
879
|
+
),
|
|
880
|
+
examples=(
|
|
881
|
+
ExampleSpec(
|
|
882
|
+
command="kaiten --json custom-properties select-values create --property-id 3 --value High",
|
|
883
|
+
description="Create a select value.",
|
|
884
|
+
),
|
|
885
|
+
),
|
|
886
|
+
),
|
|
887
|
+
make_tool(
|
|
888
|
+
canonical_name="custom-properties.select-values.update",
|
|
889
|
+
mcp_alias="kaiten_update_select_value",
|
|
890
|
+
description="Update a select value for a custom property.",
|
|
891
|
+
input_schema={
|
|
892
|
+
"type": "object",
|
|
893
|
+
"properties": {
|
|
894
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
895
|
+
"value_id": {"type": "integer", "description": "Select value ID"},
|
|
896
|
+
"value": {"type": "string", "description": "New value text"},
|
|
897
|
+
"condition": {
|
|
898
|
+
"type": "string",
|
|
899
|
+
"enum": ["active", "inactive"],
|
|
900
|
+
"description": "Value status",
|
|
901
|
+
},
|
|
902
|
+
"color": {
|
|
903
|
+
"type": ["integer", "null"],
|
|
904
|
+
"description": "Color index",
|
|
905
|
+
"x-documentation-alternatives": [
|
|
906
|
+
{
|
|
907
|
+
"type": ["integer"],
|
|
908
|
+
"description": "Color of custom property select value",
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"type": "null",
|
|
912
|
+
"description": "Custom property select value without color",
|
|
913
|
+
},
|
|
914
|
+
],
|
|
915
|
+
},
|
|
916
|
+
"sort_order": {"type": "number", "description": "Sort order (float)"},
|
|
917
|
+
"deleted": {
|
|
918
|
+
"type": "boolean",
|
|
919
|
+
"description": "Custom property select value delete condition",
|
|
920
|
+
},
|
|
921
|
+
},
|
|
922
|
+
"required": ["property_id", "value_id"],
|
|
923
|
+
},
|
|
924
|
+
operation=OperationSpec(
|
|
925
|
+
method="PATCH",
|
|
926
|
+
path_template="/company/custom-properties/{property_id}/select-values/{value_id}",
|
|
927
|
+
path_fields=("property_id", "value_id"),
|
|
928
|
+
body_fields=("value", "condition", "color", "sort_order", "deleted"),
|
|
929
|
+
),
|
|
930
|
+
examples=(
|
|
931
|
+
ExampleSpec(
|
|
932
|
+
command="kaiten --json custom-properties select-values update --property-id 3 --value-id 10 --value Critical",
|
|
933
|
+
description="Update a select value.",
|
|
934
|
+
),
|
|
935
|
+
),
|
|
936
|
+
),
|
|
937
|
+
make_tool(
|
|
938
|
+
canonical_name="custom-properties.select-values.delete",
|
|
939
|
+
mcp_alias="kaiten_delete_select_value",
|
|
940
|
+
description="Delete (soft) a select value through the official DELETE route.",
|
|
941
|
+
input_schema={
|
|
942
|
+
"type": "object",
|
|
943
|
+
"properties": {
|
|
944
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
945
|
+
"value_id": {"type": "integer", "description": "Select value ID"},
|
|
946
|
+
},
|
|
947
|
+
"required": ["property_id", "value_id"],
|
|
948
|
+
},
|
|
949
|
+
operation=OperationSpec(
|
|
950
|
+
method="DELETE",
|
|
951
|
+
path_template="/company/custom-properties/{property_id}/select-values/{value_id}",
|
|
952
|
+
path_fields=("property_id", "value_id"),
|
|
953
|
+
),
|
|
954
|
+
examples=(
|
|
955
|
+
ExampleSpec(
|
|
956
|
+
command="kaiten --json custom-properties select-values delete --property-id 3 --value-id 10",
|
|
957
|
+
description="Soft-delete a select value.",
|
|
958
|
+
),
|
|
959
|
+
),
|
|
960
|
+
),
|
|
961
|
+
make_tool(
|
|
962
|
+
canonical_name="custom-properties.tree-entities.list",
|
|
963
|
+
mcp_alias="kaiten_list_custom_property_tree_entities",
|
|
964
|
+
description="List tree entities attached to a custom property.",
|
|
965
|
+
input_schema={
|
|
966
|
+
"type": "object",
|
|
967
|
+
"properties": {"property_id": {"type": "integer", "description": "Property ID"}},
|
|
968
|
+
"required": ["property_id"],
|
|
969
|
+
},
|
|
970
|
+
operation=OperationSpec(
|
|
971
|
+
method="GET",
|
|
972
|
+
path_template="/company/custom-properties/{property_id}/tree-entities",
|
|
973
|
+
path_fields=("property_id",),
|
|
974
|
+
),
|
|
975
|
+
response_policy=ResponsePolicy(result_kind="list"),
|
|
976
|
+
examples=(
|
|
977
|
+
ExampleSpec(
|
|
978
|
+
command="kaiten --json custom-properties tree-entities list --property-id 5",
|
|
979
|
+
description="List custom property tree entities.",
|
|
980
|
+
),
|
|
981
|
+
),
|
|
982
|
+
),
|
|
983
|
+
make_tool(
|
|
984
|
+
canonical_name="custom-properties.tree-entities.add",
|
|
985
|
+
mcp_alias="kaiten_add_custom_property_tree_entity",
|
|
986
|
+
description="Attach a tree entity to a custom property.",
|
|
987
|
+
input_schema={
|
|
988
|
+
"type": "object",
|
|
989
|
+
"properties": {
|
|
990
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
991
|
+
"tree_entity_uid": {
|
|
992
|
+
"type": "string",
|
|
993
|
+
"description": "Tree entity UID",
|
|
994
|
+
"format": "uuid",
|
|
995
|
+
},
|
|
996
|
+
"payload": {
|
|
997
|
+
"type": "object",
|
|
998
|
+
"description": "Extra JSON body fields from the Kaiten API docs.",
|
|
999
|
+
},
|
|
1000
|
+
},
|
|
1001
|
+
"required": ["property_id", "tree_entity_uid"],
|
|
1002
|
+
},
|
|
1003
|
+
operation=OperationSpec(
|
|
1004
|
+
method="POST",
|
|
1005
|
+
path_template="/company/custom-properties/{property_id}/tree-entities",
|
|
1006
|
+
path_fields=("property_id",),
|
|
1007
|
+
body_fields=("tree_entity_uid", "payload"),
|
|
1008
|
+
),
|
|
1009
|
+
runtime_behavior=RuntimeBehavior(request_shaper=payload_body_request),
|
|
1010
|
+
examples=(
|
|
1011
|
+
ExampleSpec(
|
|
1012
|
+
command="kaiten --json custom-properties tree-entities add --property-id 5 --tree-entity-uid entity-uuid",
|
|
1013
|
+
description="Attach a tree entity to a custom property.",
|
|
1014
|
+
),
|
|
1015
|
+
),
|
|
1016
|
+
),
|
|
1017
|
+
make_tool(
|
|
1018
|
+
canonical_name="custom-properties.tree-entities.remove",
|
|
1019
|
+
mcp_alias="kaiten_remove_custom_property_tree_entity",
|
|
1020
|
+
description="Remove a tree entity from a custom property.",
|
|
1021
|
+
input_schema={
|
|
1022
|
+
"type": "object",
|
|
1023
|
+
"properties": {
|
|
1024
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1025
|
+
"tree_entity_uid": {"type": "string", "description": "Tree entity UID"},
|
|
1026
|
+
},
|
|
1027
|
+
"required": ["property_id", "tree_entity_uid"],
|
|
1028
|
+
},
|
|
1029
|
+
operation=OperationSpec(
|
|
1030
|
+
method="DELETE",
|
|
1031
|
+
path_template="/company/custom-properties/{property_id}/tree-entities/{tree_entity_uid}",
|
|
1032
|
+
path_fields=("property_id", "tree_entity_uid"),
|
|
1033
|
+
),
|
|
1034
|
+
examples=(
|
|
1035
|
+
ExampleSpec(
|
|
1036
|
+
command="kaiten --json custom-properties tree-entities remove --property-id 5 --tree-entity-uid entity-uuid",
|
|
1037
|
+
description="Remove a tree entity from a custom property.",
|
|
1038
|
+
),
|
|
1039
|
+
),
|
|
1040
|
+
),
|
|
1041
|
+
make_tool(
|
|
1042
|
+
canonical_name="custom-properties.catalog-values.list",
|
|
1043
|
+
mcp_alias="kaiten_list_catalog_values",
|
|
1044
|
+
description="List catalog property values for a catalog-typed custom property.",
|
|
1045
|
+
input_schema={
|
|
1046
|
+
"type": "object",
|
|
1047
|
+
"properties": {
|
|
1048
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1049
|
+
"query": {"type": "string", "description": "Text search filter by catalog values"},
|
|
1050
|
+
"conditions": {
|
|
1051
|
+
"type": "string",
|
|
1052
|
+
"description": "Condition filter: active or inactive",
|
|
1053
|
+
},
|
|
1054
|
+
"limit": {
|
|
1055
|
+
"type": "integer",
|
|
1056
|
+
"minimum": 1,
|
|
1057
|
+
"maximum": 100,
|
|
1058
|
+
"description": "Max results",
|
|
1059
|
+
},
|
|
1060
|
+
"offset": {"type": "integer", "minimum": 0, "description": "Pagination offset"},
|
|
1061
|
+
},
|
|
1062
|
+
"required": ["property_id"],
|
|
1063
|
+
},
|
|
1064
|
+
operation=OperationSpec(
|
|
1065
|
+
method="GET",
|
|
1066
|
+
path_template="/company/custom-properties/{property_id}/catalog-values",
|
|
1067
|
+
path_fields=("property_id",),
|
|
1068
|
+
query_fields=("query", "conditions", "limit", "offset"),
|
|
1069
|
+
),
|
|
1070
|
+
response_policy=ResponsePolicy(default_limit=50, result_kind="list"),
|
|
1071
|
+
examples=(
|
|
1072
|
+
ExampleSpec(
|
|
1073
|
+
command="kaiten --json custom-properties catalog-values list --property-id 5",
|
|
1074
|
+
description="List catalog property values.",
|
|
1075
|
+
),
|
|
1076
|
+
),
|
|
1077
|
+
search_terms=("значения поля карточки справочник", "справочник"),
|
|
1078
|
+
usage_notes=CATALOG_VALUES_USAGE_NOTES,
|
|
1079
|
+
),
|
|
1080
|
+
make_tool(
|
|
1081
|
+
canonical_name="custom-properties.catalog-values.get",
|
|
1082
|
+
mcp_alias="kaiten_get_catalog_value",
|
|
1083
|
+
description="Get a catalog property value for a catalog-typed custom property.",
|
|
1084
|
+
input_schema={
|
|
1085
|
+
"type": "object",
|
|
1086
|
+
"properties": {
|
|
1087
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1088
|
+
"value_id": {"type": "integer", "description": "Catalog value ID"},
|
|
1089
|
+
},
|
|
1090
|
+
"required": ["property_id", "value_id"],
|
|
1091
|
+
},
|
|
1092
|
+
operation=OperationSpec(
|
|
1093
|
+
method="GET",
|
|
1094
|
+
path_template="/company/custom-properties/{property_id}/catalog-values/{value_id}",
|
|
1095
|
+
path_fields=("property_id", "value_id"),
|
|
1096
|
+
),
|
|
1097
|
+
examples=(
|
|
1098
|
+
ExampleSpec(
|
|
1099
|
+
command="kaiten --json custom-properties catalog-values get --property-id 5 --value-id 10",
|
|
1100
|
+
description="Get a catalog property value.",
|
|
1101
|
+
),
|
|
1102
|
+
),
|
|
1103
|
+
search_terms=("значения поля карточки справочник", "справочник"),
|
|
1104
|
+
usage_notes=CATALOG_VALUES_USAGE_NOTES,
|
|
1105
|
+
),
|
|
1106
|
+
make_tool(
|
|
1107
|
+
canonical_name="custom-properties.catalog-values.create",
|
|
1108
|
+
mcp_alias="kaiten_create_catalog_value",
|
|
1109
|
+
description="Create a catalog property value for a catalog-typed custom property.",
|
|
1110
|
+
input_schema={
|
|
1111
|
+
"type": "object",
|
|
1112
|
+
"properties": {
|
|
1113
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1114
|
+
"name": {"type": "string", "description": "Catalog value display name"},
|
|
1115
|
+
"value": {
|
|
1116
|
+
"type": "object",
|
|
1117
|
+
"description": "Catalog value fields keyed by field UID.",
|
|
1118
|
+
},
|
|
1119
|
+
"payload": {
|
|
1120
|
+
"type": "object",
|
|
1121
|
+
"description": "Extra JSON body fields from the Kaiten API docs.",
|
|
1122
|
+
},
|
|
1123
|
+
},
|
|
1124
|
+
"required": ["property_id", "value"],
|
|
1125
|
+
},
|
|
1126
|
+
operation=OperationSpec(
|
|
1127
|
+
method="POST",
|
|
1128
|
+
path_template="/company/custom-properties/{property_id}/catalog-values",
|
|
1129
|
+
path_fields=("property_id",),
|
|
1130
|
+
body_fields=("name", "value", "payload"),
|
|
1131
|
+
),
|
|
1132
|
+
runtime_behavior=RuntimeBehavior(request_shaper=payload_body_request),
|
|
1133
|
+
examples=(
|
|
1134
|
+
ExampleSpec(
|
|
1135
|
+
command='kaiten --json custom-properties catalog-values create --property-id 5 --value \'{"field-uuid":"Alice"}\'',
|
|
1136
|
+
description="Create a catalog property value.",
|
|
1137
|
+
),
|
|
1138
|
+
),
|
|
1139
|
+
search_terms=("значения поля карточки справочник", "справочник"),
|
|
1140
|
+
usage_notes=CATALOG_VALUES_USAGE_NOTES,
|
|
1141
|
+
),
|
|
1142
|
+
make_tool(
|
|
1143
|
+
canonical_name="custom-properties.catalog-values.update",
|
|
1144
|
+
mcp_alias="kaiten_update_catalog_value",
|
|
1145
|
+
description="Update a catalog property value for a catalog-typed custom property.",
|
|
1146
|
+
input_schema={
|
|
1147
|
+
"type": "object",
|
|
1148
|
+
"properties": {
|
|
1149
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1150
|
+
"value_id": {"type": "integer", "description": "Catalog value ID"},
|
|
1151
|
+
"name": {"type": "string", "description": "Catalog value display name"},
|
|
1152
|
+
"value": {
|
|
1153
|
+
"type": "object",
|
|
1154
|
+
"description": "Catalog value fields keyed by field UID.",
|
|
1155
|
+
},
|
|
1156
|
+
"condition": {
|
|
1157
|
+
"type": "string",
|
|
1158
|
+
"enum": ["active", "inactive"],
|
|
1159
|
+
"description": "Value condition",
|
|
1160
|
+
},
|
|
1161
|
+
"payload": {
|
|
1162
|
+
"type": "object",
|
|
1163
|
+
"description": "Extra JSON body fields from the Kaiten API docs.",
|
|
1164
|
+
},
|
|
1165
|
+
"deleted": {
|
|
1166
|
+
"type": "boolean",
|
|
1167
|
+
"description": "Custom property catalog value delete condition",
|
|
1168
|
+
},
|
|
1169
|
+
},
|
|
1170
|
+
"required": ["property_id", "value_id"],
|
|
1171
|
+
},
|
|
1172
|
+
operation=OperationSpec(
|
|
1173
|
+
method="PATCH",
|
|
1174
|
+
path_template="/company/custom-properties/{property_id}/catalog-values/{value_id}",
|
|
1175
|
+
path_fields=("property_id", "value_id"),
|
|
1176
|
+
body_fields=("name", "value", "condition", "payload", "deleted"),
|
|
1177
|
+
),
|
|
1178
|
+
runtime_behavior=RuntimeBehavior(request_shaper=payload_body_request),
|
|
1179
|
+
examples=(
|
|
1180
|
+
ExampleSpec(
|
|
1181
|
+
command='kaiten --json custom-properties catalog-values update --property-id 5 --value-id 10 --name "Alice"',
|
|
1182
|
+
description="Update a catalog property value.",
|
|
1183
|
+
),
|
|
1184
|
+
),
|
|
1185
|
+
search_terms=("значения поля карточки справочник", "справочник"),
|
|
1186
|
+
usage_notes=CATALOG_VALUES_USAGE_NOTES,
|
|
1187
|
+
),
|
|
1188
|
+
make_tool(
|
|
1189
|
+
canonical_name="custom-properties.catalog-values.delete",
|
|
1190
|
+
mcp_alias="kaiten_delete_catalog_value",
|
|
1191
|
+
description="Delete a catalog property value for a catalog-typed custom property.",
|
|
1192
|
+
input_schema={
|
|
1193
|
+
"type": "object",
|
|
1194
|
+
"properties": {
|
|
1195
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1196
|
+
"value_id": {"type": "integer", "description": "Catalog value ID"},
|
|
1197
|
+
},
|
|
1198
|
+
"required": ["property_id", "value_id"],
|
|
1199
|
+
},
|
|
1200
|
+
operation=OperationSpec(
|
|
1201
|
+
method="DELETE",
|
|
1202
|
+
path_template="/company/custom-properties/{property_id}/catalog-values/{value_id}",
|
|
1203
|
+
path_fields=("property_id", "value_id"),
|
|
1204
|
+
),
|
|
1205
|
+
examples=(
|
|
1206
|
+
ExampleSpec(
|
|
1207
|
+
command="kaiten --json custom-properties catalog-values delete --property-id 5 --value-id 10",
|
|
1208
|
+
description="Delete a catalog property value.",
|
|
1209
|
+
),
|
|
1210
|
+
),
|
|
1211
|
+
search_terms=("значения поля карточки справочник", "справочник"),
|
|
1212
|
+
usage_notes=CATALOG_VALUES_USAGE_NOTES,
|
|
1213
|
+
),
|
|
1214
|
+
make_tool(
|
|
1215
|
+
canonical_name="custom-properties.collective-score-values.list",
|
|
1216
|
+
mcp_alias="kaiten_list_collective_score_values",
|
|
1217
|
+
description="List collective score values for a card custom property.",
|
|
1218
|
+
input_schema={
|
|
1219
|
+
"type": "object",
|
|
1220
|
+
"properties": {
|
|
1221
|
+
"card_id": {"type": "integer", "description": "Card ID"},
|
|
1222
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1223
|
+
},
|
|
1224
|
+
"required": ["card_id", "property_id"],
|
|
1225
|
+
},
|
|
1226
|
+
operation=OperationSpec(
|
|
1227
|
+
method="GET",
|
|
1228
|
+
path_template="/cards/{card_id}/custom-properties/{property_id}/collective-score-values",
|
|
1229
|
+
path_fields=("card_id", "property_id"),
|
|
1230
|
+
),
|
|
1231
|
+
response_policy=ResponsePolicy(result_kind="list"),
|
|
1232
|
+
examples=(
|
|
1233
|
+
ExampleSpec(
|
|
1234
|
+
command="kaiten --json custom-properties collective-score-values list --card-id 10 --property-id 5",
|
|
1235
|
+
description="List collective score values.",
|
|
1236
|
+
),
|
|
1237
|
+
),
|
|
1238
|
+
),
|
|
1239
|
+
make_tool(
|
|
1240
|
+
canonical_name="custom-properties.collective-score-values.create",
|
|
1241
|
+
mcp_alias="kaiten_create_collective_score_value",
|
|
1242
|
+
description="Create a collective score value for a card custom property.",
|
|
1243
|
+
input_schema={
|
|
1244
|
+
"type": "object",
|
|
1245
|
+
"properties": {
|
|
1246
|
+
"card_id": {"type": "integer", "description": "Card ID"},
|
|
1247
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1248
|
+
"value": {"type": ["string", "number", "object"], "description": "Score value."},
|
|
1249
|
+
"payload": {
|
|
1250
|
+
"type": "object",
|
|
1251
|
+
"description": "Extra JSON body fields from the Kaiten API docs.",
|
|
1252
|
+
},
|
|
1253
|
+
},
|
|
1254
|
+
"required": ["card_id", "property_id", "value"],
|
|
1255
|
+
},
|
|
1256
|
+
operation=OperationSpec(
|
|
1257
|
+
method="POST",
|
|
1258
|
+
path_template="/cards/{card_id}/custom-properties/{property_id}/collective-score-values",
|
|
1259
|
+
path_fields=("card_id", "property_id"),
|
|
1260
|
+
body_fields=("value", "payload"),
|
|
1261
|
+
),
|
|
1262
|
+
runtime_behavior=RuntimeBehavior(request_shaper=payload_body_request),
|
|
1263
|
+
examples=(
|
|
1264
|
+
ExampleSpec(
|
|
1265
|
+
command="kaiten --json custom-properties collective-score-values create --card-id 10 --property-id 5 --value 8",
|
|
1266
|
+
description="Create a collective score value.",
|
|
1267
|
+
),
|
|
1268
|
+
),
|
|
1269
|
+
),
|
|
1270
|
+
make_tool(
|
|
1271
|
+
canonical_name="custom-properties.collective-score-values.update",
|
|
1272
|
+
mcp_alias="kaiten_update_collective_score_value",
|
|
1273
|
+
description="Update a collective score value for a card custom property.",
|
|
1274
|
+
input_schema={
|
|
1275
|
+
"type": "object",
|
|
1276
|
+
"properties": {
|
|
1277
|
+
"card_id": {"type": "integer", "description": "Card ID"},
|
|
1278
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1279
|
+
"value_id": {"type": "integer", "description": "Score value ID"},
|
|
1280
|
+
"value": {
|
|
1281
|
+
"type": ["string", "number", "object", "null"],
|
|
1282
|
+
"description": "Score value.",
|
|
1283
|
+
"x-documentation-alternatives": [
|
|
1284
|
+
{
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"description": "Value of card collective score custom property",
|
|
1287
|
+
"minLength": 1,
|
|
1288
|
+
"maxLength": 512,
|
|
1289
|
+
},
|
|
1290
|
+
{"type": "null", "description": "Empty value"},
|
|
1291
|
+
],
|
|
1292
|
+
},
|
|
1293
|
+
"payload": {
|
|
1294
|
+
"type": "object",
|
|
1295
|
+
"description": "Extra JSON body fields from the Kaiten API docs.",
|
|
1296
|
+
},
|
|
1297
|
+
},
|
|
1298
|
+
"required": ["card_id", "property_id", "value_id"],
|
|
1299
|
+
},
|
|
1300
|
+
operation=OperationSpec(
|
|
1301
|
+
method="PATCH",
|
|
1302
|
+
path_template="/cards/{card_id}/custom-properties/{property_id}/collective-score-values/{value_id}",
|
|
1303
|
+
path_fields=("card_id", "property_id", "value_id"),
|
|
1304
|
+
body_fields=("value", "payload"),
|
|
1305
|
+
),
|
|
1306
|
+
runtime_behavior=RuntimeBehavior(request_shaper=payload_body_request),
|
|
1307
|
+
examples=(
|
|
1308
|
+
ExampleSpec(
|
|
1309
|
+
command="kaiten --json custom-properties collective-score-values update --card-id 10 --property-id 5 --value-id 1 --value 9",
|
|
1310
|
+
description="Update a collective score value.",
|
|
1311
|
+
),
|
|
1312
|
+
),
|
|
1313
|
+
),
|
|
1314
|
+
make_tool(
|
|
1315
|
+
canonical_name="custom-properties.collective-vote-values.list",
|
|
1316
|
+
mcp_alias="kaiten_list_collective_vote_values",
|
|
1317
|
+
description="List collective vote values for a card custom property.",
|
|
1318
|
+
input_schema={
|
|
1319
|
+
"type": "object",
|
|
1320
|
+
"properties": {
|
|
1321
|
+
"card_id": {"type": "integer", "description": "Card ID"},
|
|
1322
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1323
|
+
},
|
|
1324
|
+
"required": ["card_id", "property_id"],
|
|
1325
|
+
},
|
|
1326
|
+
operation=OperationSpec(
|
|
1327
|
+
method="GET",
|
|
1328
|
+
path_template="/cards/{card_id}/custom-properties/{property_id}/collective-vote-values",
|
|
1329
|
+
path_fields=("card_id", "property_id"),
|
|
1330
|
+
),
|
|
1331
|
+
response_policy=ResponsePolicy(result_kind="list"),
|
|
1332
|
+
examples=(
|
|
1333
|
+
ExampleSpec(
|
|
1334
|
+
command="kaiten --json custom-properties collective-vote-values list --card-id 10 --property-id 5",
|
|
1335
|
+
description="List collective vote values.",
|
|
1336
|
+
),
|
|
1337
|
+
),
|
|
1338
|
+
),
|
|
1339
|
+
make_tool(
|
|
1340
|
+
canonical_name="custom-properties.collective-vote-values.create",
|
|
1341
|
+
mcp_alias="kaiten_create_collective_vote_value",
|
|
1342
|
+
description="Create a collective vote value for a card custom property.",
|
|
1343
|
+
input_schema={
|
|
1344
|
+
"type": "object",
|
|
1345
|
+
"properties": {
|
|
1346
|
+
"card_id": {"type": "integer", "description": "Card ID"},
|
|
1347
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1348
|
+
"value": {"type": ["string", "number", "object"], "description": "Vote value."},
|
|
1349
|
+
"payload": {
|
|
1350
|
+
"type": "object",
|
|
1351
|
+
"description": "Extra JSON body fields from the Kaiten API docs.",
|
|
1352
|
+
},
|
|
1353
|
+
"emoji_vote": {
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"description": "Value of card collective vote of type emoji_set",
|
|
1356
|
+
"minLength": 1,
|
|
1357
|
+
"maxLength": 12,
|
|
1358
|
+
},
|
|
1359
|
+
"number_vote": {
|
|
1360
|
+
"type": "integer",
|
|
1361
|
+
"description": "Value of card collective vote of type scale or rating",
|
|
1362
|
+
},
|
|
1363
|
+
},
|
|
1364
|
+
"required": ["card_id", "property_id"],
|
|
1365
|
+
},
|
|
1366
|
+
operation=OperationSpec(
|
|
1367
|
+
method="POST",
|
|
1368
|
+
path_template="/cards/{card_id}/custom-properties/{property_id}/collective-vote-values",
|
|
1369
|
+
path_fields=("card_id", "property_id"),
|
|
1370
|
+
body_fields=("value", "payload", "emoji_vote", "number_vote"),
|
|
1371
|
+
),
|
|
1372
|
+
runtime_behavior=RuntimeBehavior(
|
|
1373
|
+
request_shaper=payload_body_request, payload_validator=validate_public_request
|
|
1374
|
+
),
|
|
1375
|
+
examples=(
|
|
1376
|
+
ExampleSpec(
|
|
1377
|
+
command="kaiten --json custom-properties collective-vote-values create --card-id 10 --property-id 5 --value 1",
|
|
1378
|
+
description="Create a collective vote value.",
|
|
1379
|
+
),
|
|
1380
|
+
),
|
|
1381
|
+
),
|
|
1382
|
+
make_tool(
|
|
1383
|
+
canonical_name="custom-properties.collective-vote-values.update",
|
|
1384
|
+
mcp_alias="kaiten_update_collective_vote_value",
|
|
1385
|
+
description="Update a collective vote value for a card custom property.",
|
|
1386
|
+
input_schema={
|
|
1387
|
+
"type": "object",
|
|
1388
|
+
"properties": {
|
|
1389
|
+
"card_id": {"type": "integer", "description": "Card ID"},
|
|
1390
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1391
|
+
"value_id": {"type": "integer", "description": "Vote value ID"},
|
|
1392
|
+
"value": {"type": ["string", "number", "object"], "description": "Vote value."},
|
|
1393
|
+
"payload": {
|
|
1394
|
+
"type": "object",
|
|
1395
|
+
"description": "Extra JSON body fields from the Kaiten API docs.",
|
|
1396
|
+
},
|
|
1397
|
+
"number_vote": {
|
|
1398
|
+
"description": "Value of card collective vote of type scale or rating",
|
|
1399
|
+
"type": ["number", "null"],
|
|
1400
|
+
"x-documentation-alternatives": [
|
|
1401
|
+
{
|
|
1402
|
+
"type": "number",
|
|
1403
|
+
"description": "Value of card collective vote of type scale or rating",
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
"type": "null",
|
|
1407
|
+
"description": "Empty value of card collective vote of type scale or rating",
|
|
1408
|
+
},
|
|
1409
|
+
],
|
|
1410
|
+
},
|
|
1411
|
+
},
|
|
1412
|
+
"required": ["card_id", "property_id", "value_id"],
|
|
1413
|
+
},
|
|
1414
|
+
operation=OperationSpec(
|
|
1415
|
+
method="PATCH",
|
|
1416
|
+
path_template="/cards/{card_id}/custom-properties/{property_id}/collective-vote-values/{value_id}",
|
|
1417
|
+
path_fields=("card_id", "property_id", "value_id"),
|
|
1418
|
+
body_fields=("value", "payload", "number_vote"),
|
|
1419
|
+
),
|
|
1420
|
+
runtime_behavior=RuntimeBehavior(request_shaper=payload_body_request),
|
|
1421
|
+
examples=(
|
|
1422
|
+
ExampleSpec(
|
|
1423
|
+
command="kaiten --json custom-properties collective-vote-values update --card-id 10 --property-id 5 --value-id 1 --value 2",
|
|
1424
|
+
description="Update a collective vote value.",
|
|
1425
|
+
),
|
|
1426
|
+
),
|
|
1427
|
+
),
|
|
1428
|
+
make_tool(
|
|
1429
|
+
canonical_name="custom-properties.collective-vote-values.delete",
|
|
1430
|
+
mcp_alias="kaiten_delete_collective_vote_value",
|
|
1431
|
+
description="Delete a collective vote value for a card custom property.",
|
|
1432
|
+
input_schema={
|
|
1433
|
+
"type": "object",
|
|
1434
|
+
"properties": {
|
|
1435
|
+
"card_id": {"type": "integer", "description": "Card ID"},
|
|
1436
|
+
"property_id": {"type": "integer", "description": "Property ID"},
|
|
1437
|
+
"value_id": {"type": "integer", "description": "Vote value ID"},
|
|
1438
|
+
"emoji_vote": {
|
|
1439
|
+
"type": "string",
|
|
1440
|
+
"description": " removed emoji_vote",
|
|
1441
|
+
"minLength": 1,
|
|
1442
|
+
"maxLength": 12,
|
|
1443
|
+
},
|
|
1444
|
+
},
|
|
1445
|
+
"required": ["card_id", "property_id", "value_id"],
|
|
1446
|
+
},
|
|
1447
|
+
operation=OperationSpec(
|
|
1448
|
+
method="DELETE",
|
|
1449
|
+
path_template="/cards/{card_id}/custom-properties/{property_id}/collective-vote-values/{value_id}",
|
|
1450
|
+
path_fields=("card_id", "property_id", "value_id"),
|
|
1451
|
+
body_fields=("emoji_vote",),
|
|
1452
|
+
),
|
|
1453
|
+
examples=(
|
|
1454
|
+
ExampleSpec(
|
|
1455
|
+
command="kaiten --json custom-properties collective-vote-values delete --card-id 10 --property-id 5 --value-id 1",
|
|
1456
|
+
description="Delete a collective vote value.",
|
|
1457
|
+
),
|
|
1458
|
+
),
|
|
1459
|
+
),
|
|
1460
|
+
)
|