@pachca/cli 2026.3.3 → 2026.3.5
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/CHANGELOG.md +45 -0
- package/README.md +3 -3
- package/dist/base-command.js +0 -1
- package/dist/client.js +0 -1
- package/dist/commands/api.js +0 -1
- package/dist/commands/auth/list.js +0 -1
- package/dist/commands/auth/login.js +0 -1
- package/dist/commands/auth/logout.js +0 -1
- package/dist/commands/auth/refresh.js +0 -1
- package/dist/commands/auth/status.js +0 -1
- package/dist/commands/auth/switch.js +0 -1
- package/dist/commands/bots/list-events.js +0 -1
- package/dist/commands/bots/remove-event.js +0 -1
- package/dist/commands/bots/update.js +0 -1
- package/dist/commands/changelog.js +14 -2
- package/dist/commands/chats/archive.js +0 -1
- package/dist/commands/chats/create.js +2 -3
- package/dist/commands/chats/get.js +0 -1
- package/dist/commands/chats/list.js +2 -3
- package/dist/commands/chats/unarchive.js +0 -1
- package/dist/commands/chats/update.js +0 -1
- package/dist/commands/commands.js +0 -1
- package/dist/commands/common/custom-properties.js +0 -1
- package/dist/commands/common/direct-url.js +0 -1
- package/dist/commands/common/get-exports.js +0 -1
- package/dist/commands/common/request-export.js +0 -1
- package/dist/commands/common/uploads.js +0 -1
- package/dist/commands/config/get.js +0 -1
- package/dist/commands/config/list.js +0 -1
- package/dist/commands/config/set.js +0 -1
- package/dist/commands/doctor.js +0 -1
- package/dist/commands/group-tags/create.js +0 -1
- package/dist/commands/group-tags/delete.js +0 -1
- package/dist/commands/group-tags/get.js +0 -1
- package/dist/commands/group-tags/list-users.js +0 -1
- package/dist/commands/group-tags/list.js +0 -1
- package/dist/commands/group-tags/update.js +0 -1
- package/dist/commands/guide.js +3 -1
- package/dist/commands/introspect.js +0 -1
- package/dist/commands/link-previews/add.js +0 -1
- package/dist/commands/members/add-group-tags.js +0 -1
- package/dist/commands/members/add.js +0 -1
- package/dist/commands/members/leave.js +0 -1
- package/dist/commands/members/list.js +0 -1
- package/dist/commands/members/remove-group-tag.js +0 -1
- package/dist/commands/members/remove.js +0 -1
- package/dist/commands/members/update.js +0 -1
- package/dist/commands/messages/create.js +0 -1
- package/dist/commands/messages/delete.js +0 -1
- package/dist/commands/messages/get.js +0 -1
- package/dist/commands/messages/list.js +0 -1
- package/dist/commands/messages/pin.js +0 -1
- package/dist/commands/messages/unpin.js +0 -1
- package/dist/commands/messages/update.js +0 -1
- package/dist/commands/profile/delete-status.js +0 -1
- package/dist/commands/profile/get-info.js +0 -1
- package/dist/commands/profile/get-status.js +0 -1
- package/dist/commands/profile/get.js +0 -1
- package/dist/commands/profile/update-status.js +0 -1
- package/dist/commands/reactions/add.js +0 -1
- package/dist/commands/reactions/list.js +0 -1
- package/dist/commands/reactions/remove.js +0 -1
- package/dist/commands/read-member/list-readers.js +0 -1
- package/dist/commands/search/list-chats.js +1 -1
- package/dist/commands/search/list-messages.js +0 -1
- package/dist/commands/search/list-users.js +2 -1
- package/dist/commands/security/list.js +0 -1
- package/dist/commands/tasks/create.js +0 -1
- package/dist/commands/tasks/delete.js +0 -1
- package/dist/commands/tasks/get.js +0 -1
- package/dist/commands/tasks/list.js +0 -1
- package/dist/commands/tasks/update.js +0 -1
- package/dist/commands/thread/add.js +0 -1
- package/dist/commands/thread/get.js +0 -1
- package/dist/commands/threads/add.js +35 -0
- package/dist/commands/threads/get.js +31 -0
- package/dist/commands/users/create.js +3 -4
- package/dist/commands/users/delete.js +0 -1
- package/dist/commands/users/get-status.js +0 -1
- package/dist/commands/users/get.js +0 -1
- package/dist/commands/users/list.js +3 -4
- package/dist/commands/users/remove-status.js +0 -1
- package/dist/commands/users/update-status.js +0 -1
- package/dist/commands/users/update.js +0 -1
- package/dist/commands/version.js +0 -1
- package/dist/commands/views/open.js +2 -2
- package/dist/data/alternatives.json +2 -2
- package/dist/data/changelog.json +32 -0
- package/dist/data/workflows.json +189 -153
- package/dist/get-version.js +0 -1
- package/dist/hooks/command-not-found.js +0 -1
- package/dist/hooks/init.js +0 -1
- package/dist/hooks/postrun.js +1 -2
- package/dist/index.js +0 -1
- package/dist/output.js +0 -1
- package/dist/profiles.js +0 -1
- package/dist/utils.js +0 -1
- package/oclif.manifest.json +745 -459
- package/package.json +3 -3
- package/dist/base-command.d.ts +0 -88
- package/dist/base-command.d.ts.map +0 -1
- package/dist/base-command.js.map +0 -1
- package/dist/client.d.ts +0 -45
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/commands/api.d.ts +0 -38
- package/dist/commands/api.d.ts.map +0 -1
- package/dist/commands/api.js.map +0 -1
- package/dist/commands/auth/list.d.ts +0 -23
- package/dist/commands/auth/list.d.ts.map +0 -1
- package/dist/commands/auth/list.js.map +0 -1
- package/dist/commands/auth/login.d.ts +0 -23
- package/dist/commands/auth/login.d.ts.map +0 -1
- package/dist/commands/auth/login.js.map +0 -1
- package/dist/commands/auth/logout.d.ts +0 -26
- package/dist/commands/auth/logout.d.ts.map +0 -1
- package/dist/commands/auth/logout.js.map +0 -1
- package/dist/commands/auth/refresh.d.ts +0 -26
- package/dist/commands/auth/refresh.d.ts.map +0 -1
- package/dist/commands/auth/refresh.js.map +0 -1
- package/dist/commands/auth/status.d.ts +0 -23
- package/dist/commands/auth/status.d.ts.map +0 -1
- package/dist/commands/auth/status.js.map +0 -1
- package/dist/commands/auth/switch.d.ts +0 -26
- package/dist/commands/auth/switch.d.ts.map +0 -1
- package/dist/commands/auth/switch.js.map +0 -1
- package/dist/commands/bots/list-events.d.ts +0 -31
- package/dist/commands/bots/list-events.d.ts.map +0 -1
- package/dist/commands/bots/list-events.js.map +0 -1
- package/dist/commands/bots/remove-event.d.ts +0 -30
- package/dist/commands/bots/remove-event.d.ts.map +0 -1
- package/dist/commands/bots/remove-event.js.map +0 -1
- package/dist/commands/bots/update.d.ts +0 -35
- package/dist/commands/bots/update.d.ts.map +0 -1
- package/dist/commands/bots/update.js.map +0 -1
- package/dist/commands/changelog.d.ts +0 -23
- package/dist/commands/changelog.d.ts.map +0 -1
- package/dist/commands/changelog.js.map +0 -1
- package/dist/commands/chats/archive.d.ts +0 -32
- package/dist/commands/chats/archive.d.ts.map +0 -1
- package/dist/commands/chats/archive.js.map +0 -1
- package/dist/commands/chats/create.d.ts +0 -34
- package/dist/commands/chats/create.d.ts.map +0 -1
- package/dist/commands/chats/create.js.map +0 -1
- package/dist/commands/chats/get.d.ts +0 -33
- package/dist/commands/chats/get.d.ts.map +0 -1
- package/dist/commands/chats/get.js.map +0 -1
- package/dist/commands/chats/list.d.ts +0 -37
- package/dist/commands/chats/list.d.ts.map +0 -1
- package/dist/commands/chats/list.js.map +0 -1
- package/dist/commands/chats/unarchive.d.ts +0 -32
- package/dist/commands/chats/unarchive.d.ts.map +0 -1
- package/dist/commands/chats/unarchive.js.map +0 -1
- package/dist/commands/chats/update.d.ts +0 -35
- package/dist/commands/chats/update.d.ts.map +0 -1
- package/dist/commands/chats/update.js.map +0 -1
- package/dist/commands/commands.d.ts +0 -24
- package/dist/commands/commands.d.ts.map +0 -1
- package/dist/commands/commands.js.map +0 -1
- package/dist/commands/common/custom-properties.d.ts +0 -30
- package/dist/commands/common/custom-properties.d.ts.map +0 -1
- package/dist/commands/common/custom-properties.js.map +0 -1
- package/dist/commands/common/direct-url.d.ts +0 -35
- package/dist/commands/common/direct-url.d.ts.map +0 -1
- package/dist/commands/common/direct-url.js.map +0 -1
- package/dist/commands/common/get-exports.d.ts +0 -34
- package/dist/commands/common/get-exports.d.ts.map +0 -1
- package/dist/commands/common/get-exports.js.map +0 -1
- package/dist/commands/common/request-export.d.ts +0 -34
- package/dist/commands/common/request-export.d.ts.map +0 -1
- package/dist/commands/common/request-export.js.map +0 -1
- package/dist/commands/common/uploads.d.ts +0 -28
- package/dist/commands/common/uploads.d.ts.map +0 -1
- package/dist/commands/common/uploads.js.map +0 -1
- package/dist/commands/config/get.d.ts +0 -26
- package/dist/commands/config/get.d.ts.map +0 -1
- package/dist/commands/config/get.js.map +0 -1
- package/dist/commands/config/list.d.ts +0 -23
- package/dist/commands/config/list.d.ts.map +0 -1
- package/dist/commands/config/list.js.map +0 -1
- package/dist/commands/config/set.d.ts +0 -27
- package/dist/commands/config/set.d.ts.map +0 -1
- package/dist/commands/config/set.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -24
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/group-tags/create.d.ts +0 -30
- package/dist/commands/group-tags/create.d.ts.map +0 -1
- package/dist/commands/group-tags/create.js.map +0 -1
- package/dist/commands/group-tags/delete.d.ts +0 -32
- package/dist/commands/group-tags/delete.d.ts.map +0 -1
- package/dist/commands/group-tags/delete.js.map +0 -1
- package/dist/commands/group-tags/get.d.ts +0 -32
- package/dist/commands/group-tags/get.d.ts.map +0 -1
- package/dist/commands/group-tags/get.js.map +0 -1
- package/dist/commands/group-tags/list-users.d.ts +0 -36
- package/dist/commands/group-tags/list-users.d.ts.map +0 -1
- package/dist/commands/group-tags/list-users.js.map +0 -1
- package/dist/commands/group-tags/list.d.ts +0 -32
- package/dist/commands/group-tags/list.d.ts.map +0 -1
- package/dist/commands/group-tags/list.js.map +0 -1
- package/dist/commands/group-tags/update.d.ts +0 -34
- package/dist/commands/group-tags/update.d.ts.map +0 -1
- package/dist/commands/group-tags/update.js.map +0 -1
- package/dist/commands/guide.d.ts +0 -26
- package/dist/commands/guide.d.ts.map +0 -1
- package/dist/commands/guide.js.map +0 -1
- package/dist/commands/introspect.d.ts +0 -27
- package/dist/commands/introspect.d.ts.map +0 -1
- package/dist/commands/introspect.js.map +0 -1
- package/dist/commands/link-previews/add.d.ts +0 -34
- package/dist/commands/link-previews/add.d.ts.map +0 -1
- package/dist/commands/link-previews/add.js.map +0 -1
- package/dist/commands/members/add-group-tags.d.ts +0 -33
- package/dist/commands/members/add-group-tags.d.ts.map +0 -1
- package/dist/commands/members/add-group-tags.js.map +0 -1
- package/dist/commands/members/add.d.ts +0 -35
- package/dist/commands/members/add.d.ts.map +0 -1
- package/dist/commands/members/add.js.map +0 -1
- package/dist/commands/members/leave.d.ts +0 -33
- package/dist/commands/members/leave.d.ts.map +0 -1
- package/dist/commands/members/leave.js.map +0 -1
- package/dist/commands/members/list.d.ts +0 -37
- package/dist/commands/members/list.d.ts.map +0 -1
- package/dist/commands/members/list.js.map +0 -1
- package/dist/commands/members/remove-group-tag.d.ts +0 -36
- package/dist/commands/members/remove-group-tag.d.ts.map +0 -1
- package/dist/commands/members/remove-group-tag.js.map +0 -1
- package/dist/commands/members/remove.d.ts +0 -37
- package/dist/commands/members/remove.d.ts.map +0 -1
- package/dist/commands/members/remove.js.map +0 -1
- package/dist/commands/members/update.d.ts +0 -38
- package/dist/commands/members/update.d.ts.map +0 -1
- package/dist/commands/members/update.js.map +0 -1
- package/dist/commands/messages/create.d.ts +0 -39
- package/dist/commands/messages/create.d.ts.map +0 -1
- package/dist/commands/messages/create.js.map +0 -1
- package/dist/commands/messages/delete.d.ts +0 -33
- package/dist/commands/messages/delete.d.ts.map +0 -1
- package/dist/commands/messages/delete.js.map +0 -1
- package/dist/commands/messages/get.d.ts +0 -33
- package/dist/commands/messages/get.d.ts.map +0 -1
- package/dist/commands/messages/get.js.map +0 -1
- package/dist/commands/messages/list.d.ts +0 -34
- package/dist/commands/messages/list.d.ts.map +0 -1
- package/dist/commands/messages/list.js.map +0 -1
- package/dist/commands/messages/pin.d.ts +0 -32
- package/dist/commands/messages/pin.d.ts.map +0 -1
- package/dist/commands/messages/pin.js.map +0 -1
- package/dist/commands/messages/unpin.d.ts +0 -33
- package/dist/commands/messages/unpin.d.ts.map +0 -1
- package/dist/commands/messages/unpin.js.map +0 -1
- package/dist/commands/messages/update.d.ts +0 -38
- package/dist/commands/messages/update.d.ts.map +0 -1
- package/dist/commands/messages/update.js.map +0 -1
- package/dist/commands/profile/delete-status.d.ts +0 -28
- package/dist/commands/profile/delete-status.d.ts.map +0 -1
- package/dist/commands/profile/delete-status.js.map +0 -1
- package/dist/commands/profile/get-info.d.ts +0 -27
- package/dist/commands/profile/get-info.d.ts.map +0 -1
- package/dist/commands/profile/get-info.js.map +0 -1
- package/dist/commands/profile/get-status.d.ts +0 -28
- package/dist/commands/profile/get-status.d.ts.map +0 -1
- package/dist/commands/profile/get-status.js.map +0 -1
- package/dist/commands/profile/get.d.ts +0 -28
- package/dist/commands/profile/get.d.ts.map +0 -1
- package/dist/commands/profile/get.js.map +0 -1
- package/dist/commands/profile/update-status.d.ts +0 -34
- package/dist/commands/profile/update-status.d.ts.map +0 -1
- package/dist/commands/profile/update-status.js.map +0 -1
- package/dist/commands/reactions/add.d.ts +0 -36
- package/dist/commands/reactions/add.d.ts.map +0 -1
- package/dist/commands/reactions/add.js.map +0 -1
- package/dist/commands/reactions/list.d.ts +0 -36
- package/dist/commands/reactions/list.d.ts.map +0 -1
- package/dist/commands/reactions/list.js.map +0 -1
- package/dist/commands/reactions/remove.d.ts +0 -36
- package/dist/commands/reactions/remove.d.ts.map +0 -1
- package/dist/commands/reactions/remove.js.map +0 -1
- package/dist/commands/read-member/list-readers.d.ts +0 -35
- package/dist/commands/read-member/list-readers.d.ts.map +0 -1
- package/dist/commands/read-member/list-readers.js.map +0 -1
- package/dist/commands/search/list-chats.d.ts +0 -38
- package/dist/commands/search/list-chats.d.ts.map +0 -1
- package/dist/commands/search/list-chats.js.map +0 -1
- package/dist/commands/search/list-messages.d.ts +0 -38
- package/dist/commands/search/list-messages.d.ts.map +0 -1
- package/dist/commands/search/list-messages.js.map +0 -1
- package/dist/commands/search/list-users.d.ts +0 -37
- package/dist/commands/search/list-users.d.ts.map +0 -1
- package/dist/commands/search/list-users.js.map +0 -1
- package/dist/commands/security/list.d.ts +0 -40
- package/dist/commands/security/list.d.ts.map +0 -1
- package/dist/commands/security/list.js.map +0 -1
- package/dist/commands/tasks/create.d.ts +0 -37
- package/dist/commands/tasks/create.d.ts.map +0 -1
- package/dist/commands/tasks/create.js.map +0 -1
- package/dist/commands/tasks/delete.d.ts +0 -33
- package/dist/commands/tasks/delete.d.ts.map +0 -1
- package/dist/commands/tasks/delete.js.map +0 -1
- package/dist/commands/tasks/get.d.ts +0 -33
- package/dist/commands/tasks/get.d.ts.map +0 -1
- package/dist/commands/tasks/get.js.map +0 -1
- package/dist/commands/tasks/list.d.ts +0 -31
- package/dist/commands/tasks/list.d.ts.map +0 -1
- package/dist/commands/tasks/list.js.map +0 -1
- package/dist/commands/tasks/update.d.ts +0 -42
- package/dist/commands/tasks/update.d.ts.map +0 -1
- package/dist/commands/tasks/update.js.map +0 -1
- package/dist/commands/thread/add.d.ts +0 -33
- package/dist/commands/thread/add.d.ts.map +0 -1
- package/dist/commands/thread/add.js.map +0 -1
- package/dist/commands/thread/get.d.ts +0 -32
- package/dist/commands/thread/get.d.ts.map +0 -1
- package/dist/commands/thread/get.js.map +0 -1
- package/dist/commands/users/create.d.ts +0 -41
- package/dist/commands/users/create.d.ts.map +0 -1
- package/dist/commands/users/create.js.map +0 -1
- package/dist/commands/users/delete.d.ts +0 -33
- package/dist/commands/users/delete.d.ts.map +0 -1
- package/dist/commands/users/delete.js.map +0 -1
- package/dist/commands/users/get-status.d.ts +0 -33
- package/dist/commands/users/get-status.d.ts.map +0 -1
- package/dist/commands/users/get-status.js.map +0 -1
- package/dist/commands/users/get.d.ts +0 -33
- package/dist/commands/users/get.d.ts.map +0 -1
- package/dist/commands/users/get.js.map +0 -1
- package/dist/commands/users/list.d.ts +0 -32
- package/dist/commands/users/list.d.ts.map +0 -1
- package/dist/commands/users/list.js.map +0 -1
- package/dist/commands/users/remove-status.d.ts +0 -33
- package/dist/commands/users/remove-status.d.ts.map +0 -1
- package/dist/commands/users/remove-status.js.map +0 -1
- package/dist/commands/users/update-status.d.ts +0 -39
- package/dist/commands/users/update-status.d.ts.map +0 -1
- package/dist/commands/users/update-status.js.map +0 -1
- package/dist/commands/users/update.d.ts +0 -44
- package/dist/commands/users/update.d.ts.map +0 -1
- package/dist/commands/users/update.js.map +0 -1
- package/dist/commands/version.d.ts +0 -23
- package/dist/commands/version.d.ts.map +0 -1
- package/dist/commands/version.js.map +0 -1
- package/dist/commands/views/open.d.ts +0 -36
- package/dist/commands/views/open.d.ts.map +0 -1
- package/dist/commands/views/open.js.map +0 -1
- package/dist/get-version.d.ts +0 -7
- package/dist/get-version.d.ts.map +0 -1
- package/dist/get-version.js.map +0 -1
- package/dist/hooks/command-not-found.d.ts +0 -4
- package/dist/hooks/command-not-found.d.ts.map +0 -1
- package/dist/hooks/command-not-found.js.map +0 -1
- package/dist/hooks/init.d.ts +0 -4
- package/dist/hooks/init.d.ts.map +0 -1
- package/dist/hooks/init.js.map +0 -1
- package/dist/hooks/postrun.d.ts +0 -4
- package/dist/hooks/postrun.d.ts.map +0 -1
- package/dist/hooks/postrun.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/output.d.ts +0 -26
- package/dist/output.d.ts.map +0 -1
- package/dist/output.js.map +0 -1
- package/dist/profiles.d.ts +0 -52
- package/dist/profiles.d.ts.map +0 -1
- package/dist/profiles.js.map +0 -1
- package/dist/utils.d.ts +0 -21
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
package/dist/data/workflows.json
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
"skill": "pachca-messages",
|
|
5
5
|
"steps": [
|
|
6
6
|
{
|
|
7
|
-
"description": "
|
|
8
|
-
"command": "pachca
|
|
7
|
+
"description": "Найди чат по названию через поиск",
|
|
8
|
+
"command": "pachca search list-chats --query=\"название\"",
|
|
9
|
+
"notes": "Если результатов несколько — выбери наиболее подходящий по `name`"
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
|
-
"description": "Отправь
|
|
12
|
+
"description": "Отправь сообщение в найденный чат",
|
|
12
13
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Текст сообщения\""
|
|
13
14
|
}
|
|
14
15
|
]
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"skill": "pachca-messages",
|
|
19
20
|
"steps": [
|
|
20
21
|
{
|
|
21
|
-
"description": "Отправь
|
|
22
|
+
"description": "Отправь сообщение в чат",
|
|
22
23
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Текст сообщения\""
|
|
23
24
|
}
|
|
24
25
|
]
|
|
@@ -28,11 +29,12 @@
|
|
|
28
29
|
"skill": "pachca-messages",
|
|
29
30
|
"steps": [
|
|
30
31
|
{
|
|
31
|
-
"description": "Определи `user_id` получателя
|
|
32
|
-
"command": "pachca
|
|
32
|
+
"description": "Определи `user_id` получателя",
|
|
33
|
+
"command": "pachca search list-users --query=\"имя\"",
|
|
34
|
+
"notes": "Или возьми user_id из контекста (вебхук, предыдущий запрос)"
|
|
33
35
|
},
|
|
34
36
|
{
|
|
35
|
-
"description": "Отправь
|
|
37
|
+
"description": "Отправь личное сообщение",
|
|
36
38
|
"command": "pachca messages create --entity-type=user --entity-id=<user_id> --content=\"Привет!\""
|
|
37
39
|
}
|
|
38
40
|
]
|
|
@@ -42,11 +44,12 @@
|
|
|
42
44
|
"skill": "pachca-messages",
|
|
43
45
|
"steps": [
|
|
44
46
|
{
|
|
45
|
-
"description": "
|
|
46
|
-
"command": "pachca thread add <ID>
|
|
47
|
+
"description": "Получи или создай тред, возьми `thread.id` из ответа",
|
|
48
|
+
"command": "pachca thread add <ID>",
|
|
49
|
+
"notes": "Если тред уже существует, вернётся существующий"
|
|
47
50
|
},
|
|
48
51
|
{
|
|
49
|
-
"description": "Отправь
|
|
52
|
+
"description": "Отправь сообщение в тред",
|
|
50
53
|
"command": "pachca messages create --entity-type=thread --entity-id=<thread_id> --content=\"Ответ в тред\""
|
|
51
54
|
}
|
|
52
55
|
]
|
|
@@ -56,16 +59,18 @@
|
|
|
56
59
|
"skill": "pachca-messages",
|
|
57
60
|
"steps": [
|
|
58
61
|
{
|
|
59
|
-
"description": "DM (`entity_type: \"user\"`): ответь
|
|
62
|
+
"description": "DM (`entity_type: \"user\"`): ответь личным сообщением",
|
|
60
63
|
"command": "pachca messages create --entity-type=user --entity-id=<user_id> --content=\"Ответ\""
|
|
61
64
|
},
|
|
62
65
|
{
|
|
63
|
-
"description": "Тред (`entity_type: \"thread\"`):
|
|
64
|
-
"command": "pachca messages create --entity-type=thread --entity-id=<entity_id> --parent-message-id=<id> --content=\"Ответ\""
|
|
66
|
+
"description": "Тред (`entity_type: \"thread\"`): ответь в тот же тред",
|
|
67
|
+
"command": "pachca messages create --entity-type=thread --entity-id=<entity_id> --parent-message-id=<id> --content=\"Ответ\"",
|
|
68
|
+
"notes": "Вложенных тредов нет — ответ идёт в тот же тред"
|
|
65
69
|
},
|
|
66
70
|
{
|
|
67
|
-
"description": "Беседа/канал (`entity_type: \"discussion\"`):
|
|
68
|
-
"command": "pachca messages create --entity-id=<entity_id> --parent-message-id=<id> --content=\"Ответ\""
|
|
71
|
+
"description": "Беседа/канал (`entity_type: \"discussion\"`): inline-ответ или тред",
|
|
72
|
+
"command": "pachca messages create --entity-id=<entity_id> --parent-message-id=<id> --content=\"Ответ\"",
|
|
73
|
+
"notes": "`parent_message_id` визуально привязывает ответ к сообщению"
|
|
69
74
|
}
|
|
70
75
|
]
|
|
71
76
|
},
|
|
@@ -74,11 +79,12 @@
|
|
|
74
79
|
"skill": "pachca-messages",
|
|
75
80
|
"steps": [
|
|
76
81
|
{
|
|
77
|
-
"description": "Для каждого файла:
|
|
78
|
-
"command": "pachca common uploads
|
|
82
|
+
"description": "Для каждого файла: получи параметры загрузки",
|
|
83
|
+
"command": "pachca common uploads",
|
|
84
|
+
"notes": "Получишь `key` (с `${filename}`), `direct_url`, `policy`, подпись"
|
|
79
85
|
},
|
|
80
86
|
{
|
|
81
|
-
"description": "Отправь
|
|
87
|
+
"description": "Отправь сообщение со всеми файлами",
|
|
82
88
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Смотри файл\" --files='[{\"key\":\"...\",\"name\":\"report.pdf\",\"file_type\":\"file\",\"size\":12345}]'"
|
|
83
89
|
}
|
|
84
90
|
]
|
|
@@ -88,7 +94,7 @@
|
|
|
88
94
|
"skill": "pachca-messages",
|
|
89
95
|
"steps": [
|
|
90
96
|
{
|
|
91
|
-
"description": "Отправь
|
|
97
|
+
"description": "Отправь сообщение с кнопками",
|
|
92
98
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Выбери действие\" --buttons='[[{\"text\":\"Подробнее\",\"url\":\"https://example.com\"},{\"text\":\"Отлично!\",\"data\":\"awesome\"}]]'"
|
|
93
99
|
}
|
|
94
100
|
]
|
|
@@ -98,8 +104,9 @@
|
|
|
98
104
|
"skill": "pachca-messages",
|
|
99
105
|
"steps": [
|
|
100
106
|
{
|
|
101
|
-
"description": "
|
|
102
|
-
"command": "pachca messages list --chat-id=<chat_id>"
|
|
107
|
+
"description": "Получи сообщения чата с пагинацией",
|
|
108
|
+
"command": "pachca messages list --chat-id=<chat_id>",
|
|
109
|
+
"notes": "`limit` (1-50), `cursor`, `sort[id]=asc` или `desc` (по умолчанию)"
|
|
103
110
|
}
|
|
104
111
|
]
|
|
105
112
|
},
|
|
@@ -108,8 +115,8 @@
|
|
|
108
115
|
"skill": "pachca-messages",
|
|
109
116
|
"steps": [
|
|
110
117
|
{
|
|
111
|
-
"description": "
|
|
112
|
-
"command": "pachca messages get <ID>
|
|
118
|
+
"description": "Получи сообщение — в `files[]` каждый объект содержит `url`, `name`, `file_type`, `size`",
|
|
119
|
+
"command": "pachca messages get <ID>"
|
|
113
120
|
}
|
|
114
121
|
]
|
|
115
122
|
},
|
|
@@ -118,12 +125,12 @@
|
|
|
118
125
|
"skill": "pachca-messages",
|
|
119
126
|
"steps": [
|
|
120
127
|
{
|
|
121
|
-
"description": "
|
|
128
|
+
"description": "Закрепить сообщение",
|
|
122
129
|
"command": "pachca messages pin <ID>"
|
|
123
130
|
},
|
|
124
131
|
{
|
|
125
|
-
"description": "
|
|
126
|
-
"command": "pachca messages unpin <ID>"
|
|
132
|
+
"description": "Открепить сообщение",
|
|
133
|
+
"command": "pachca messages unpin <ID> --force"
|
|
127
134
|
}
|
|
128
135
|
]
|
|
129
136
|
},
|
|
@@ -132,11 +139,11 @@
|
|
|
132
139
|
"skill": "pachca-messages",
|
|
133
140
|
"steps": [
|
|
134
141
|
{
|
|
135
|
-
"description": "
|
|
136
|
-
"command": "pachca thread add <ID>
|
|
142
|
+
"description": "Получи или создай тред, возьми `chat_id` из ответа",
|
|
143
|
+
"command": "pachca thread add <ID>"
|
|
137
144
|
},
|
|
138
145
|
{
|
|
139
|
-
"description": "Добавь бота
|
|
146
|
+
"description": "Добавь бота в участники чата треда",
|
|
140
147
|
"command": "pachca members add <thread_chat_id> --member-ids='[<bot_user_id>]'"
|
|
141
148
|
}
|
|
142
149
|
]
|
|
@@ -146,16 +153,17 @@
|
|
|
146
153
|
"skill": "pachca-messages",
|
|
147
154
|
"steps": [
|
|
148
155
|
{
|
|
149
|
-
"description": "Ищи
|
|
150
|
-
"command": "pachca members list <chat_id>
|
|
156
|
+
"description": "Ищи среди участников целевого чата",
|
|
157
|
+
"command": "pachca members list <chat_id>",
|
|
158
|
+
"notes": "Фильтруй по имени на клиенте"
|
|
151
159
|
},
|
|
152
160
|
{
|
|
153
|
-
"description": "Если пишешь в тред: также проверь участников родительского чата
|
|
161
|
+
"description": "Если пишешь в тред: также проверь участников родительского чата",
|
|
154
162
|
"command": "pachca members list <parent_chat_id>"
|
|
155
163
|
},
|
|
156
164
|
{
|
|
157
|
-
"description": "Не нашёл — ищи по всей
|
|
158
|
-
"command": "pachca
|
|
165
|
+
"description": "Не нашёл — ищи по всей компании",
|
|
166
|
+
"command": "pachca search list-users --query=<запрос>"
|
|
159
167
|
}
|
|
160
168
|
]
|
|
161
169
|
},
|
|
@@ -164,7 +172,7 @@
|
|
|
164
172
|
"skill": "pachca-messages",
|
|
165
173
|
"steps": [
|
|
166
174
|
{
|
|
167
|
-
"description": "
|
|
175
|
+
"description": "Обнови сообщение",
|
|
168
176
|
"command": "pachca messages update <ID> --content=\"Обновлённый текст\""
|
|
169
177
|
}
|
|
170
178
|
]
|
|
@@ -174,16 +182,18 @@
|
|
|
174
182
|
"skill": "pachca-messages",
|
|
175
183
|
"steps": [
|
|
176
184
|
{
|
|
177
|
-
"description": "
|
|
178
|
-
"command": "pachca messages get <ID>
|
|
185
|
+
"description": "Получи текущие вложения из `files[]`",
|
|
186
|
+
"command": "pachca messages get <ID>",
|
|
187
|
+
"notes": "Сохрани нужные объекты (`key`, `name`, `file_type`, `size`)"
|
|
179
188
|
},
|
|
180
189
|
{
|
|
181
|
-
"description": "Если нужно добавить новый
|
|
182
|
-
"command": "pachca common uploads
|
|
190
|
+
"description": "Если нужно добавить новый файл — загрузи его",
|
|
191
|
+
"command": "pachca common uploads"
|
|
183
192
|
},
|
|
184
193
|
{
|
|
185
|
-
"description": "
|
|
186
|
-
"command": "pachca messages update <ID> --files='[...]'"
|
|
194
|
+
"description": "Обнови сообщение с новым массивом `files`",
|
|
195
|
+
"command": "pachca messages update <ID> --files='[...]'",
|
|
196
|
+
"notes": "`files` при редактировании — replace-all: присылаемый массив полностью заменяет текущие"
|
|
187
197
|
}
|
|
188
198
|
]
|
|
189
199
|
},
|
|
@@ -192,8 +202,8 @@
|
|
|
192
202
|
"skill": "pachca-messages",
|
|
193
203
|
"steps": [
|
|
194
204
|
{
|
|
195
|
-
"description": "
|
|
196
|
-
"command": "pachca messages delete <ID>"
|
|
205
|
+
"description": "Удали сообщение",
|
|
206
|
+
"command": "pachca messages delete <ID> --force"
|
|
197
207
|
}
|
|
198
208
|
]
|
|
199
209
|
},
|
|
@@ -202,12 +212,12 @@
|
|
|
202
212
|
"skill": "pachca-messages",
|
|
203
213
|
"steps": [
|
|
204
214
|
{
|
|
205
|
-
"description": "
|
|
215
|
+
"description": "Добавь реакцию",
|
|
206
216
|
"command": "pachca reactions add <ID> --code=\"👍\""
|
|
207
217
|
},
|
|
208
218
|
{
|
|
209
|
-
"description": "Убрать
|
|
210
|
-
"command": "pachca reactions remove <ID> --code=\"👍\""
|
|
219
|
+
"description": "Убрать реакцию",
|
|
220
|
+
"command": "pachca reactions remove <ID> --code=\"👍\" --force"
|
|
211
221
|
}
|
|
212
222
|
]
|
|
213
223
|
},
|
|
@@ -216,12 +226,12 @@
|
|
|
216
226
|
"skill": "pachca-messages",
|
|
217
227
|
"steps": [
|
|
218
228
|
{
|
|
219
|
-
"description": "
|
|
229
|
+
"description": "Получи массив `user_id` прочитавших",
|
|
220
230
|
"command": "pachca read-member list-readers <ID>"
|
|
221
231
|
},
|
|
222
232
|
{
|
|
223
|
-
"description": "При необходимости сопоставь с
|
|
224
|
-
"command": "pachca users list
|
|
233
|
+
"description": "При необходимости сопоставь с именами сотрудников",
|
|
234
|
+
"command": "pachca users list"
|
|
225
235
|
}
|
|
226
236
|
]
|
|
227
237
|
},
|
|
@@ -230,12 +240,14 @@
|
|
|
230
240
|
"skill": "pachca-messages",
|
|
231
241
|
"steps": [
|
|
232
242
|
{
|
|
233
|
-
"description": "Определи список `user_id` получателей
|
|
234
|
-
"command": "pachca users list
|
|
243
|
+
"description": "Определи список `user_id` получателей",
|
|
244
|
+
"command": "pachca users list --all",
|
|
245
|
+
"notes": "Или получи user_id из тега — см. «Получить всех сотрудников тега/департамента»"
|
|
235
246
|
},
|
|
236
247
|
{
|
|
237
|
-
"description": "Для каждого:
|
|
238
|
-
"command": "pachca messages create --entity-type=user --entity-id=<user_id> --content=\"Уведомление\"
|
|
248
|
+
"description": "Для каждого: отправь личное сообщение",
|
|
249
|
+
"command": "pachca messages create --entity-type=user --entity-id=<user_id> --content=\"Уведомление\"",
|
|
250
|
+
"notes": "Для каждого получателя"
|
|
239
251
|
}
|
|
240
252
|
]
|
|
241
253
|
},
|
|
@@ -244,11 +256,12 @@
|
|
|
244
256
|
"skill": "pachca-chats",
|
|
245
257
|
"steps": [
|
|
246
258
|
{
|
|
247
|
-
"description": "
|
|
248
|
-
"command": "pachca chats create --name=\"Новый канал\" --channel --member-ids='[1,2,3]'"
|
|
259
|
+
"description": "Создай канал с участниками",
|
|
260
|
+
"command": "pachca chats create --name=\"Новый канал\" --channel --member-ids='[1,2,3]'",
|
|
261
|
+
"notes": "`\"channel\": true` для канала, `false` (по умолчанию) для беседы. Участников можно передать сразу: `member_ids` и/или `group_tag_ids`"
|
|
249
262
|
},
|
|
250
263
|
{
|
|
251
|
-
"description": "Или
|
|
264
|
+
"description": "Или добавь участников позже",
|
|
252
265
|
"command": "pachca members add <chat_id> --member-ids='[1,2,3]'"
|
|
253
266
|
}
|
|
254
267
|
]
|
|
@@ -258,24 +271,25 @@
|
|
|
258
271
|
"skill": "pachca-chats",
|
|
259
272
|
"steps": [
|
|
260
273
|
{
|
|
261
|
-
"description": "
|
|
274
|
+
"description": "Архивировать чат",
|
|
262
275
|
"command": "pachca chats archive <ID>"
|
|
263
276
|
},
|
|
264
277
|
{
|
|
265
|
-
"description": "
|
|
278
|
+
"description": "Разархивировать чат",
|
|
266
279
|
"command": "pachca chats unarchive <ID>"
|
|
267
280
|
},
|
|
268
281
|
{
|
|
269
|
-
"description": "Изменить роль
|
|
270
|
-
"command": "pachca members update <chat_id> <user_id> --role=admin"
|
|
282
|
+
"description": "Изменить роль участника",
|
|
283
|
+
"command": "pachca members update <chat_id> <user_id> --role=admin",
|
|
284
|
+
"notes": "`role`: `\"admin\"` | `\"member\"` | `\"editor\"` (только каналы). Роль создателя изменить нельзя."
|
|
271
285
|
},
|
|
272
286
|
{
|
|
273
|
-
"description": "Удалить
|
|
274
|
-
"command": "pachca members remove <chat_id> <user_id>"
|
|
287
|
+
"description": "Удалить участника",
|
|
288
|
+
"command": "pachca members remove <chat_id> <user_id> --force"
|
|
275
289
|
},
|
|
276
290
|
{
|
|
277
|
-
"description": "Покинуть
|
|
278
|
-
"command": "pachca members leave <chat_id>"
|
|
291
|
+
"description": "Покинуть чат",
|
|
292
|
+
"command": "pachca members leave <chat_id> --force"
|
|
279
293
|
}
|
|
280
294
|
]
|
|
281
295
|
},
|
|
@@ -284,8 +298,9 @@
|
|
|
284
298
|
"skill": "pachca-chats",
|
|
285
299
|
"steps": [
|
|
286
300
|
{
|
|
287
|
-
"description": "
|
|
288
|
-
"command": "pachca chats update <ID> --name=\"Новое название\""
|
|
301
|
+
"description": "Обнови чат",
|
|
302
|
+
"command": "pachca chats update <ID> --name=\"Новое название\"",
|
|
303
|
+
"notes": "Доступные поля: `name`, `public`"
|
|
289
304
|
}
|
|
290
305
|
]
|
|
291
306
|
},
|
|
@@ -294,11 +309,11 @@
|
|
|
294
309
|
"skill": "pachca-chats",
|
|
295
310
|
"steps": [
|
|
296
311
|
{
|
|
297
|
-
"description": "
|
|
312
|
+
"description": "Создай беседу с участниками из тега",
|
|
298
313
|
"command": "pachca chats create --name=\"Проект Alpha\" --group-tag-ids='[42]' --member-ids='[186,187]'"
|
|
299
314
|
},
|
|
300
315
|
{
|
|
301
|
-
"description": "Отправь приветственное
|
|
316
|
+
"description": "Отправь приветственное сообщение",
|
|
302
317
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Добро пожаловать в проект!\""
|
|
303
318
|
}
|
|
304
319
|
]
|
|
@@ -308,12 +323,14 @@
|
|
|
308
323
|
"skill": "pachca-chats",
|
|
309
324
|
"steps": [
|
|
310
325
|
{
|
|
311
|
-
"description": "
|
|
312
|
-
"command": "pachca common request-export --start-at=<YYYY-MM-DD> --end-at=<YYYY-MM-DD> --webhook-url=<URL>"
|
|
326
|
+
"description": "Запроси экспорт",
|
|
327
|
+
"command": "pachca common request-export --start-at=<YYYY-MM-DD> --end-at=<YYYY-MM-DD> --webhook-url=<URL>",
|
|
328
|
+
"notes": "`start_at`, `end_at` (YYYY-MM-DD), `webhook_url` обязателен — запрос асинхронный"
|
|
313
329
|
},
|
|
314
330
|
{
|
|
315
|
-
"description": "
|
|
316
|
-
"command": "pachca common get-exports <export_id>"
|
|
331
|
+
"description": "Скачай файл экспорта",
|
|
332
|
+
"command": "pachca common get-exports <export_id>",
|
|
333
|
+
"notes": "Сервер вернёт 302, HTTP-клиент скачает файл автоматически"
|
|
317
334
|
}
|
|
318
335
|
]
|
|
319
336
|
},
|
|
@@ -322,8 +339,9 @@
|
|
|
322
339
|
"skill": "pachca-chats",
|
|
323
340
|
"steps": [
|
|
324
341
|
{
|
|
325
|
-
"description": "
|
|
326
|
-
"command": "pachca chats list --last-message-at-after=<дата> --all"
|
|
342
|
+
"description": "Получи чаты с активностью после указанной даты",
|
|
343
|
+
"command": "pachca chats list --last-message-at-after=<дата> --all",
|
|
344
|
+
"notes": "Для диапазона добавь `--last-message-at-before`. Дата в ISO-8601 UTC+0"
|
|
327
345
|
}
|
|
328
346
|
]
|
|
329
347
|
},
|
|
@@ -332,12 +350,13 @@
|
|
|
332
350
|
"skill": "pachca-chats",
|
|
333
351
|
"steps": [
|
|
334
352
|
{
|
|
335
|
-
"description": "
|
|
353
|
+
"description": "Получи чаты без активности с нужной даты",
|
|
336
354
|
"command": "pachca chats list --last-message-at-before=<порог> --all"
|
|
337
355
|
},
|
|
338
356
|
{
|
|
339
|
-
"description": "Для каждого чата:
|
|
340
|
-
"command": "pachca chats archive <ID>
|
|
357
|
+
"description": "Для каждого чата: архивируй",
|
|
358
|
+
"command": "pachca chats archive <ID>",
|
|
359
|
+
"notes": "Проверяй `\"channel\": false` — архивация каналов может быть нежелательной"
|
|
341
360
|
}
|
|
342
361
|
]
|
|
343
362
|
},
|
|
@@ -346,8 +365,9 @@
|
|
|
346
365
|
"skill": "pachca-bots",
|
|
347
366
|
"steps": [
|
|
348
367
|
{
|
|
349
|
-
"description": "
|
|
350
|
-
"command": "pachca bots update <bot_id> --webhook='{\"outgoing_url\":\"https://example.com/webhook\"}'"
|
|
368
|
+
"description": "Обнови webhook URL бота",
|
|
369
|
+
"command": "pachca bots update <bot_id> --webhook='{\"outgoing_url\":\"https://example.com/webhook\"}'",
|
|
370
|
+
"notes": "`id` бота (его `user_id`) можно узнать во вкладке «API» настроек бота"
|
|
351
371
|
}
|
|
352
372
|
]
|
|
353
373
|
},
|
|
@@ -356,8 +376,9 @@
|
|
|
356
376
|
"skill": "pachca-bots",
|
|
357
377
|
"steps": [
|
|
358
378
|
{
|
|
359
|
-
"description": "Для полной информации
|
|
360
|
-
"command": "pachca messages get <message_id>
|
|
379
|
+
"description": "Для полной информации запроси сообщение — особенно для вложений (`files[]`)",
|
|
380
|
+
"command": "pachca messages get <message_id>",
|
|
381
|
+
"notes": "Вебхук НЕ содержит файлов — `files` отсутствует"
|
|
361
382
|
}
|
|
362
383
|
]
|
|
363
384
|
},
|
|
@@ -366,8 +387,8 @@
|
|
|
366
387
|
"skill": "pachca-bots",
|
|
367
388
|
"steps": [
|
|
368
389
|
{
|
|
369
|
-
"description": "Отправь
|
|
370
|
-
"command": "pachca link-previews add <message_id>"
|
|
390
|
+
"description": "Отправь превью-данные",
|
|
391
|
+
"command": "pachca link-previews add <message_id> --link-previews='{\"https://example.com\":{\"title\":\"Example\",\"description\":\"Description\"}}'"
|
|
371
392
|
}
|
|
372
393
|
]
|
|
373
394
|
},
|
|
@@ -376,12 +397,13 @@
|
|
|
376
397
|
"skill": "pachca-bots",
|
|
377
398
|
"steps": [
|
|
378
399
|
{
|
|
379
|
-
"description": "Ответь
|
|
400
|
+
"description": "Ответь пользователю",
|
|
380
401
|
"command": "pachca messages create --entity-type=user --entity-id=<user_id> --content=\"Принято!\""
|
|
381
402
|
},
|
|
382
403
|
{
|
|
383
|
-
"description": "Опционально: обнови исходное сообщение
|
|
384
|
-
"command": "pachca messages update <message_id> --buttons='[]' --content=\"Обработано\""
|
|
404
|
+
"description": "Опционально: обнови исходное сообщение",
|
|
405
|
+
"command": "pachca messages update <message_id> --buttons='[]' --content=\"Обработано\"",
|
|
406
|
+
"notes": "`\"buttons\": []` убирает кнопки"
|
|
385
407
|
}
|
|
386
408
|
]
|
|
387
409
|
},
|
|
@@ -390,7 +412,7 @@
|
|
|
390
412
|
"skill": "pachca-bots",
|
|
391
413
|
"steps": [
|
|
392
414
|
{
|
|
393
|
-
"description": "
|
|
415
|
+
"description": "Отправь сообщение в канал",
|
|
394
416
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Дайджест за сегодня: ...\""
|
|
395
417
|
}
|
|
396
418
|
]
|
|
@@ -400,7 +422,7 @@
|
|
|
400
422
|
"skill": "pachca-bots",
|
|
401
423
|
"steps": [
|
|
402
424
|
{
|
|
403
|
-
"description": "
|
|
425
|
+
"description": "Отправь алерт с кнопками в канал",
|
|
404
426
|
"command": "pachca messages create --entity-id=<alert_chat_id> --content=\"Алерт: ...\" --buttons='[[{\"text\":\"Взять в работу\",\"data\":\"take\"},{\"text\":\"Игнорировать\",\"data\":\"ignore\"}]]'"
|
|
405
427
|
}
|
|
406
428
|
]
|
|
@@ -410,12 +432,13 @@
|
|
|
410
432
|
"skill": "pachca-bots",
|
|
411
433
|
"steps": [
|
|
412
434
|
{
|
|
413
|
-
"description": "
|
|
435
|
+
"description": "Получи накопленные события",
|
|
414
436
|
"command": "pachca bots list-events --all"
|
|
415
437
|
},
|
|
416
438
|
{
|
|
417
|
-
"description": "
|
|
418
|
-
"command": "pachca bots remove-event <event_id>"
|
|
439
|
+
"description": "Удали обработанное событие",
|
|
440
|
+
"command": "pachca bots remove-event <event_id> --force",
|
|
441
|
+
"notes": "Удаляй, чтобы не обработать повторно"
|
|
419
442
|
}
|
|
420
443
|
]
|
|
421
444
|
},
|
|
@@ -424,12 +447,13 @@
|
|
|
424
447
|
"skill": "pachca-forms",
|
|
425
448
|
"steps": [
|
|
426
449
|
{
|
|
427
|
-
"description": "Отправь сообщение с кнопкой
|
|
450
|
+
"description": "Отправь сообщение с кнопкой",
|
|
428
451
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Заполните форму\" --buttons='[[{\"text\":\"Открыть форму\",\"data\":\"open_form\"}]]'"
|
|
429
452
|
},
|
|
430
453
|
{
|
|
431
|
-
"description": "Немедленно
|
|
432
|
-
"command": "pachca views open --type=modal --trigger-id=<trigger_id> --title=\"Заявка\" --blocks='[...]'"
|
|
454
|
+
"description": "Немедленно открой форму",
|
|
455
|
+
"command": "pachca views open --type=modal --trigger-id=<trigger_id> --title=\"Заявка\" --blocks='[...]'",
|
|
456
|
+
"notes": "`trigger_id` живёт 3 секунды — формируй объект формы заранее"
|
|
433
457
|
}
|
|
434
458
|
]
|
|
435
459
|
},
|
|
@@ -438,11 +462,11 @@
|
|
|
438
462
|
"skill": "pachca-forms",
|
|
439
463
|
"steps": [
|
|
440
464
|
{
|
|
441
|
-
"description": "Отправь сообщение с кнопкой «Пройти опрос»
|
|
465
|
+
"description": "Отправь сообщение с кнопкой «Пройти опрос»",
|
|
442
466
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Пройди опрос\" --buttons='[[{\"text\":\"Пройти опрос\",\"data\":\"survey_start\"}]]'"
|
|
443
467
|
},
|
|
444
468
|
{
|
|
445
|
-
"description": "
|
|
469
|
+
"description": "Открой форму с полями опроса",
|
|
446
470
|
"command": "pachca views open --type=modal --trigger-id=<trigger_id> --title=\"Опрос\" --blocks='[...]'"
|
|
447
471
|
}
|
|
448
472
|
]
|
|
@@ -452,19 +476,19 @@
|
|
|
452
476
|
"skill": "pachca-forms",
|
|
453
477
|
"steps": [
|
|
454
478
|
{
|
|
455
|
-
"description": "Размести
|
|
479
|
+
"description": "Размести сообщение с кнопкой «Создать заявку»",
|
|
456
480
|
"command": "pachca messages create --entity-id=<chat_id> --content=\"Создать заявку\" --buttons='[[{\"text\":\"Создать заявку\",\"data\":\"new_request\"}]]'"
|
|
457
481
|
},
|
|
458
482
|
{
|
|
459
|
-
"description": "При нажатии открой форму с полями: тема, описание, приоритет
|
|
483
|
+
"description": "При нажатии открой форму с полями: тема, описание, приоритет",
|
|
460
484
|
"command": "pachca views open --type=modal --trigger-id=<trigger_id> --title=\"Заявка\" --blocks='[...]'"
|
|
461
485
|
},
|
|
462
486
|
{
|
|
463
|
-
"description": "При submit
|
|
487
|
+
"description": "При submit: создай задачу или отправь уведомление ответственному",
|
|
464
488
|
"command": "pachca tasks create --kind=reminder --content=\"Заявка: ...\" --due-at=<дата>"
|
|
465
489
|
},
|
|
466
490
|
{
|
|
467
|
-
"description": "Отправь подтверждение
|
|
491
|
+
"description": "Отправь подтверждение автору",
|
|
468
492
|
"command": "pachca messages create --entity-type=user --entity-id=<user_id> --content=\"Заявка принята\""
|
|
469
493
|
}
|
|
470
494
|
]
|
|
@@ -474,7 +498,7 @@
|
|
|
474
498
|
"skill": "pachca-users",
|
|
475
499
|
"steps": [
|
|
476
500
|
{
|
|
477
|
-
"description": "
|
|
501
|
+
"description": "Получи информацию о сотруднике",
|
|
478
502
|
"command": "pachca users get <ID>"
|
|
479
503
|
}
|
|
480
504
|
]
|
|
@@ -484,15 +508,16 @@
|
|
|
484
508
|
"skill": "pachca-users",
|
|
485
509
|
"steps": [
|
|
486
510
|
{
|
|
487
|
-
"description": "Создай тег (если нужен)
|
|
511
|
+
"description": "Создай тег (если нужен)",
|
|
488
512
|
"command": "pachca group-tags create --name=\"Backend\""
|
|
489
513
|
},
|
|
490
514
|
{
|
|
491
|
-
"description": "Для каждого сотрудника:
|
|
492
|
-
"command": "pachca users create --first-name=\"Иван\" --last-name=\"Петров\" --email=\"ivan@example.com\" --list-tags='[{\"name\":\"Backend\"}]'"
|
|
515
|
+
"description": "Для каждого сотрудника: создай аккаунт с тегами",
|
|
516
|
+
"command": "pachca users create --first-name=\"Иван\" --last-name=\"Петров\" --email=\"ivan@example.com\" --list-tags='[{\"name\":\"Backend\"}]'",
|
|
517
|
+
"notes": "Теги назначаются через поле `list_tags` в теле запроса"
|
|
493
518
|
},
|
|
494
519
|
{
|
|
495
|
-
"description": "Или обнови
|
|
520
|
+
"description": "Или обнови существующего",
|
|
496
521
|
"command": "pachca users update <ID> --list-tags='[{\"name\":\"Backend\"}]'"
|
|
497
522
|
}
|
|
498
523
|
]
|
|
@@ -502,7 +527,7 @@
|
|
|
502
527
|
"skill": "pachca-users",
|
|
503
528
|
"steps": [
|
|
504
529
|
{
|
|
505
|
-
"description": "
|
|
530
|
+
"description": "Поиск по имени/email (частичное совпадение)",
|
|
506
531
|
"command": "pachca users list --query=Иван"
|
|
507
532
|
}
|
|
508
533
|
]
|
|
@@ -512,15 +537,15 @@
|
|
|
512
537
|
"skill": "pachca-users",
|
|
513
538
|
"steps": [
|
|
514
539
|
{
|
|
515
|
-
"description": "
|
|
540
|
+
"description": "Создай аккаунт",
|
|
516
541
|
"command": "pachca users create --email=\"new@example.com\" --first-name=\"Иван\" --last-name=\"Петров\""
|
|
517
542
|
},
|
|
518
543
|
{
|
|
519
|
-
"description": "
|
|
544
|
+
"description": "Добавь в нужные каналы",
|
|
520
545
|
"command": "pachca members add <chat_id> --member-ids='[<user_id>]'"
|
|
521
546
|
},
|
|
522
547
|
{
|
|
523
|
-
"description": "
|
|
548
|
+
"description": "Отправь welcome-сообщение",
|
|
524
549
|
"command": "pachca messages create --entity-type=user --entity-id=<user_id> --content=\"Добро пожаловать!\""
|
|
525
550
|
}
|
|
526
551
|
]
|
|
@@ -530,12 +555,12 @@
|
|
|
530
555
|
"skill": "pachca-users",
|
|
531
556
|
"steps": [
|
|
532
557
|
{
|
|
533
|
-
"description": "
|
|
558
|
+
"description": "Заблокировать доступ",
|
|
534
559
|
"command": "pachca users update <ID> --suspended"
|
|
535
560
|
},
|
|
536
561
|
{
|
|
537
|
-
"description": "Опционально:
|
|
538
|
-
"command": "pachca users delete <ID>"
|
|
562
|
+
"description": "Опционально: удалить аккаунт полностью",
|
|
563
|
+
"command": "pachca users delete <ID> --force"
|
|
539
564
|
}
|
|
540
565
|
]
|
|
541
566
|
},
|
|
@@ -544,11 +569,12 @@
|
|
|
544
569
|
"skill": "pachca-users",
|
|
545
570
|
"steps": [
|
|
546
571
|
{
|
|
547
|
-
"description": "
|
|
548
|
-
"command": "pachca group-tags list
|
|
572
|
+
"description": "Найди тег по названию, возьми `id`",
|
|
573
|
+
"command": "pachca group-tags list --names='[\"Backend\"]'",
|
|
574
|
+
"notes": "Фильтр `names` — серверная фильтрация по названию тега"
|
|
549
575
|
},
|
|
550
576
|
{
|
|
551
|
-
"description": "
|
|
577
|
+
"description": "Получи всех участников тега",
|
|
552
578
|
"command": "pachca group-tags list-users <tag_id> --all"
|
|
553
579
|
}
|
|
554
580
|
]
|
|
@@ -558,16 +584,17 @@
|
|
|
558
584
|
"skill": "pachca-users",
|
|
559
585
|
"steps": [
|
|
560
586
|
{
|
|
561
|
-
"description": "
|
|
587
|
+
"description": "Получить текущий статус",
|
|
562
588
|
"command": "pachca users get-status <user_id>"
|
|
563
589
|
},
|
|
564
590
|
{
|
|
565
|
-
"description": "
|
|
566
|
-
"command": "pachca users update-status <user_id> --emoji=\"🏖️\" --title=\"В отпуске\" --is-away"
|
|
591
|
+
"description": "Установить статус",
|
|
592
|
+
"command": "pachca users update-status <user_id> --emoji=\"🏖️\" --title=\"В отпуске\" --is-away",
|
|
593
|
+
"notes": "`is_away: true` — режим «Нет на месте». `away_message` — макс 1024 символа"
|
|
567
594
|
},
|
|
568
595
|
{
|
|
569
|
-
"description": "
|
|
570
|
-
"command": "pachca users remove-status <user_id>"
|
|
596
|
+
"description": "Удалить статус",
|
|
597
|
+
"command": "pachca users remove-status <user_id> --force"
|
|
571
598
|
}
|
|
572
599
|
]
|
|
573
600
|
},
|
|
@@ -576,8 +603,9 @@
|
|
|
576
603
|
"skill": "pachca-tasks",
|
|
577
604
|
"steps": [
|
|
578
605
|
{
|
|
579
|
-
"description": "
|
|
580
|
-
"command": "pachca tasks create --kind=reminder --content=\"Позвонить клиенту\" --due-at=<дата> --chat-id=<chat_id>"
|
|
606
|
+
"description": "Создай задачу",
|
|
607
|
+
"command": "pachca tasks create --kind=reminder --content=\"Позвонить клиенту\" --due-at=<дата> --chat-id=<chat_id>",
|
|
608
|
+
"notes": "`chat_id` для привязки к чату, `custom_properties` для дополнительных полей"
|
|
581
609
|
}
|
|
582
610
|
]
|
|
583
611
|
},
|
|
@@ -586,8 +614,9 @@
|
|
|
586
614
|
"skill": "pachca-tasks",
|
|
587
615
|
"steps": [
|
|
588
616
|
{
|
|
589
|
-
"description": "
|
|
590
|
-
"command": "pachca tasks list --all
|
|
617
|
+
"description": "Получи все задачи, фильтруй по `status` на клиенте",
|
|
618
|
+
"command": "pachca tasks list --all",
|
|
619
|
+
"notes": "`status`: `\"undone\"` — не выполнена, `\"done\"` — выполнена. Фильтрация на API не поддерживается"
|
|
591
620
|
}
|
|
592
621
|
]
|
|
593
622
|
},
|
|
@@ -596,7 +625,7 @@
|
|
|
596
625
|
"skill": "pachca-tasks",
|
|
597
626
|
"steps": [
|
|
598
627
|
{
|
|
599
|
-
"description": "
|
|
628
|
+
"description": "Получи информацию о задаче",
|
|
600
629
|
"command": "pachca tasks get <ID>"
|
|
601
630
|
}
|
|
602
631
|
]
|
|
@@ -606,7 +635,7 @@
|
|
|
606
635
|
"skill": "pachca-tasks",
|
|
607
636
|
"steps": [
|
|
608
637
|
{
|
|
609
|
-
"description": "
|
|
638
|
+
"description": "Обнови статус задачи",
|
|
610
639
|
"command": "pachca tasks update <ID> --status=done"
|
|
611
640
|
}
|
|
612
641
|
]
|
|
@@ -616,8 +645,9 @@
|
|
|
616
645
|
"skill": "pachca-tasks",
|
|
617
646
|
"steps": [
|
|
618
647
|
{
|
|
619
|
-
"description": "
|
|
620
|
-
"command": "pachca tasks update <ID> --due-at=<дата> --priority=2 --performer-ids='[186,187]'"
|
|
648
|
+
"description": "Обнови нужные поля задачи",
|
|
649
|
+
"command": "pachca tasks update <ID> --due-at=<дата> --priority=2 --performer-ids='[186,187]'",
|
|
650
|
+
"notes": "`performer_ids` заменяет весь список. `priority`: 1 (обычный), 2 (важно), 3 (очень важно)"
|
|
621
651
|
}
|
|
622
652
|
]
|
|
623
653
|
},
|
|
@@ -626,8 +656,8 @@
|
|
|
626
656
|
"skill": "pachca-tasks",
|
|
627
657
|
"steps": [
|
|
628
658
|
{
|
|
629
|
-
"description": "
|
|
630
|
-
"command": "pachca tasks delete <ID>"
|
|
659
|
+
"description": "Удали задачу",
|
|
660
|
+
"command": "pachca tasks delete <ID> --force"
|
|
631
661
|
}
|
|
632
662
|
]
|
|
633
663
|
},
|
|
@@ -636,8 +666,8 @@
|
|
|
636
666
|
"skill": "pachca-tasks",
|
|
637
667
|
"steps": [
|
|
638
668
|
{
|
|
639
|
-
"description": "Для каждой даты:
|
|
640
|
-
"command": "pachca tasks create --kind=reminder --content=\"Напоминание\" --due-at=<дата>
|
|
669
|
+
"description": "Для каждой даты: создай задачу",
|
|
670
|
+
"command": "pachca tasks create --kind=reminder --content=\"Напоминание\" --due-at=<дата>"
|
|
641
671
|
}
|
|
642
672
|
]
|
|
643
673
|
},
|
|
@@ -646,7 +676,7 @@
|
|
|
646
676
|
"skill": "pachca-profile",
|
|
647
677
|
"steps": [
|
|
648
678
|
{
|
|
649
|
-
"description": "
|
|
679
|
+
"description": "Получи информацию о текущем пользователе",
|
|
650
680
|
"command": "pachca profile get"
|
|
651
681
|
}
|
|
652
682
|
]
|
|
@@ -656,7 +686,7 @@
|
|
|
656
686
|
"skill": "pachca-profile",
|
|
657
687
|
"steps": [
|
|
658
688
|
{
|
|
659
|
-
"description": "
|
|
689
|
+
"description": "Получи информацию о токене: скоупы, дату создания, срок жизни",
|
|
660
690
|
"command": "pachca profile get-info"
|
|
661
691
|
}
|
|
662
692
|
]
|
|
@@ -666,8 +696,9 @@
|
|
|
666
696
|
"skill": "pachca-profile",
|
|
667
697
|
"steps": [
|
|
668
698
|
{
|
|
669
|
-
"description": "
|
|
670
|
-
"command": "pachca profile update-status --emoji=\"🏖️\" --title=\"В отпуске\" --is-away --away-message=\"Я в отпуске до 10 марта\" --expires-at=\"2025-03-10T23:59:59.000Z\""
|
|
699
|
+
"description": "Установи статус",
|
|
700
|
+
"command": "pachca profile update-status --emoji=\"🏖️\" --title=\"В отпуске\" --is-away --away-message=\"Я в отпуске до 10 марта\" --expires-at=\"2025-03-10T23:59:59.000Z\"",
|
|
701
|
+
"notes": "`is_away: true` — режим «Нет на месте». `expires_at` — автосброс (ISO-8601, UTC+0). `away_message` — макс 1024 символа"
|
|
671
702
|
}
|
|
672
703
|
]
|
|
673
704
|
},
|
|
@@ -676,8 +707,8 @@
|
|
|
676
707
|
"skill": "pachca-profile",
|
|
677
708
|
"steps": [
|
|
678
709
|
{
|
|
679
|
-
"description": "
|
|
680
|
-
"command": "pachca profile delete-status"
|
|
710
|
+
"description": "Удали статус",
|
|
711
|
+
"command": "pachca profile delete-status --force"
|
|
681
712
|
}
|
|
682
713
|
]
|
|
683
714
|
},
|
|
@@ -686,12 +717,13 @@
|
|
|
686
717
|
"skill": "pachca-profile",
|
|
687
718
|
"steps": [
|
|
688
719
|
{
|
|
689
|
-
"description": "
|
|
690
|
-
"command": "pachca common custom-properties
|
|
720
|
+
"description": "Получи список дополнительных полей для сотрудников",
|
|
721
|
+
"command": "pachca common custom-properties --entity-type=User",
|
|
722
|
+
"notes": "Добавь `entity_type=User` для фильтрации"
|
|
691
723
|
},
|
|
692
724
|
{
|
|
693
|
-
"description": "
|
|
694
|
-
"command": "pachca profile get
|
|
725
|
+
"description": "Получи профиль — в `custom_properties` содержатся значения полей",
|
|
726
|
+
"command": "pachca profile get"
|
|
695
727
|
}
|
|
696
728
|
]
|
|
697
729
|
},
|
|
@@ -700,8 +732,9 @@
|
|
|
700
732
|
"skill": "pachca-search",
|
|
701
733
|
"steps": [
|
|
702
734
|
{
|
|
703
|
-
"description": "
|
|
704
|
-
"command": "pachca search list-messages --query=\"текст\""
|
|
735
|
+
"description": "Полнотекстовый поиск по сообщениям",
|
|
736
|
+
"command": "pachca search list-messages --query=\"текст\"",
|
|
737
|
+
"notes": "`limit` (до 200), `cursor`. Фильтры: `chat_ids[]`, `user_ids[]`, `active`, `created_from`/`created_to`"
|
|
705
738
|
}
|
|
706
739
|
]
|
|
707
740
|
},
|
|
@@ -710,8 +743,9 @@
|
|
|
710
743
|
"skill": "pachca-search",
|
|
711
744
|
"steps": [
|
|
712
745
|
{
|
|
713
|
-
"description": "
|
|
714
|
-
"command": "pachca search list-chats --query=\"название\""
|
|
746
|
+
"description": "Полнотекстовый поиск по чатам",
|
|
747
|
+
"command": "pachca search list-chats --query=\"название\"",
|
|
748
|
+
"notes": "`limit` (до 100), `cursor`. Фильтры: `active`, `chat_subtype`, `personal`, `created_from`/`created_to`"
|
|
715
749
|
}
|
|
716
750
|
]
|
|
717
751
|
},
|
|
@@ -720,8 +754,9 @@
|
|
|
720
754
|
"skill": "pachca-search",
|
|
721
755
|
"steps": [
|
|
722
756
|
{
|
|
723
|
-
"description": "
|
|
724
|
-
"command": "pachca search list-users --query=\"имя\""
|
|
757
|
+
"description": "Полнотекстовый поиск по сотрудникам",
|
|
758
|
+
"command": "pachca search list-users --query=\"имя\"",
|
|
759
|
+
"notes": "`sort=alphabetical` для алфавитного порядка, `sort=by_score` (по умолчанию). Фильтры: `company_roles[]`, `created_from`/`created_to`"
|
|
725
760
|
}
|
|
726
761
|
]
|
|
727
762
|
},
|
|
@@ -730,8 +765,9 @@
|
|
|
730
765
|
"skill": "pachca-security",
|
|
731
766
|
"steps": [
|
|
732
767
|
{
|
|
733
|
-
"description": "
|
|
734
|
-
"command": "pachca security list --start-time=<ISO-8601> --end-time=<ISO-8601>"
|
|
768
|
+
"description": "Получи журнал аудита",
|
|
769
|
+
"command": "pachca security list --start-time=<ISO-8601> --end-time=<ISO-8601>",
|
|
770
|
+
"notes": "`start_time` и `end_time` обязательны (ISO-8601, UTC+0). Фильтры: `event_key`, `actor_id`, `actor_type`, `entity_id`, `entity_type`"
|
|
735
771
|
}
|
|
736
772
|
]
|
|
737
773
|
},
|
|
@@ -740,11 +776,11 @@
|
|
|
740
776
|
"skill": "pachca-security",
|
|
741
777
|
"steps": [
|
|
742
778
|
{
|
|
743
|
-
"description": "
|
|
779
|
+
"description": "Получи события неудачных 2FA за период",
|
|
744
780
|
"command": "pachca security list --start-time=<ISO-8601> --end-time=<ISO-8601> --event-key=user_2fa_fail --all"
|
|
745
781
|
},
|
|
746
782
|
{
|
|
747
|
-
"description": "Если найдены аномалии
|
|
783
|
+
"description": "Если найдены аномалии — отправь уведомление администратору",
|
|
748
784
|
"command": "pachca messages create --entity-type=user --entity-id=<admin_id> --content=\"Обнаружены подозрительные входы\""
|
|
749
785
|
}
|
|
750
786
|
]
|
|
@@ -754,7 +790,7 @@
|
|
|
754
790
|
"skill": "pachca-security",
|
|
755
791
|
"steps": [
|
|
756
792
|
{
|
|
757
|
-
"description": "
|
|
793
|
+
"description": "Получи все события за период с пагинацией",
|
|
758
794
|
"command": "pachca security list --start-time=<ISO-8601> --end-time=<ISO-8601> --all"
|
|
759
795
|
}
|
|
760
796
|
]
|