@im-more/dsh-slack 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/cordis.patch.yml +13 -0
- package/lib/index.js +2659 -0
- package/lib/index.js.map +1 -0
- package/lib/types/bot.d.ts +66 -0
- package/lib/types/bot.d.ts.map +1 -0
- package/lib/types/bot.js +165 -0
- package/lib/types/bot.js.map +1 -0
- package/lib/types/config.d.ts +49 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/config.js +54 -0
- package/lib/types/config.js.map +1 -0
- package/lib/types/decode.d.ts +126 -0
- package/lib/types/decode.d.ts.map +1 -0
- package/lib/types/decode.js +396 -0
- package/lib/types/decode.js.map +1 -0
- package/lib/types/errors.d.ts +61 -0
- package/lib/types/errors.d.ts.map +1 -0
- package/lib/types/errors.js +196 -0
- package/lib/types/errors.js.map +1 -0
- package/lib/types/identity.d.ts +27 -0
- package/lib/types/identity.d.ts.map +1 -0
- package/lib/types/identity.js +35 -0
- package/lib/types/identity.js.map +1 -0
- package/lib/types/index.d.ts +14 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +14 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/modes/mrkdwn.d.ts +17 -0
- package/lib/types/modes/mrkdwn.d.ts.map +1 -0
- package/lib/types/modes/mrkdwn.js +123 -0
- package/lib/types/modes/mrkdwn.js.map +1 -0
- package/lib/types/modes/shared.d.ts +164 -0
- package/lib/types/modes/shared.d.ts.map +1 -0
- package/lib/types/modes/shared.js +411 -0
- package/lib/types/modes/shared.js.map +1 -0
- package/lib/types/mrkdwn.d.ts +41 -0
- package/lib/types/mrkdwn.d.ts.map +1 -0
- package/lib/types/mrkdwn.js +137 -0
- package/lib/types/mrkdwn.js.map +1 -0
- package/lib/types/request.d.ts +225 -0
- package/lib/types/request.d.ts.map +1 -0
- package/lib/types/request.js +330 -0
- package/lib/types/request.js.map +1 -0
- package/lib/types/send.d.ts +74 -0
- package/lib/types/send.d.ts.map +1 -0
- package/lib/types/send.js +200 -0
- package/lib/types/send.js.map +1 -0
- package/lib/types/transport/socket.d.ts +58 -0
- package/lib/types/transport/socket.d.ts.map +1 -0
- package/lib/types/transport/socket.js +297 -0
- package/lib/types/transport/socket.js.map +1 -0
- package/lib/types/transport/webhook.d.ts +48 -0
- package/lib/types/transport/webhook.d.ts.map +1 -0
- package/lib/types/transport/webhook.js +210 -0
- package/lib/types/transport/webhook.js.map +1 -0
- package/lib/types/types/admin.d.ts +682 -0
- package/lib/types/types/admin.d.ts.map +1 -0
- package/lib/types/types/admin.js +172 -0
- package/lib/types/types/admin.js.map +1 -0
- package/lib/types/types/api.d.ts +20 -0
- package/lib/types/types/api.d.ts.map +1 -0
- package/lib/types/types/api.js +7 -0
- package/lib/types/types/api.js.map +1 -0
- package/lib/types/types/apps.d.ts +138 -0
- package/lib/types/types/apps.d.ts.map +1 -0
- package/lib/types/types/apps.js +28 -0
- package/lib/types/types/apps.js.map +1 -0
- package/lib/types/types/auth.d.ts +36 -0
- package/lib/types/types/auth.d.ts.map +1 -0
- package/lib/types/types/auth.js +10 -0
- package/lib/types/types/auth.js.map +1 -0
- package/lib/types/types/bots.d.ts +32 -0
- package/lib/types/types/bots.d.ts.map +1 -0
- package/lib/types/types/bots.js +7 -0
- package/lib/types/types/bots.js.map +1 -0
- package/lib/types/types/calls.d.ts +82 -0
- package/lib/types/types/calls.d.ts.map +1 -0
- package/lib/types/types/calls.js +22 -0
- package/lib/types/types/calls.js.map +1 -0
- package/lib/types/types/chat.d.ts +208 -0
- package/lib/types/types/chat.d.ts.map +1 -0
- package/lib/types/types/chat.js +34 -0
- package/lib/types/types/chat.js.map +1 -0
- package/lib/types/types/conversations.d.ts +266 -0
- package/lib/types/types/conversations.d.ts.map +1 -0
- package/lib/types/types/conversations.js +58 -0
- package/lib/types/types/conversations.js.map +1 -0
- package/lib/types/types/definition.d.ts +505 -0
- package/lib/types/types/definition.d.ts.map +1 -0
- package/lib/types/types/definition.js +2 -0
- package/lib/types/types/definition.js.map +1 -0
- package/lib/types/types/dialog.d.ts +20 -0
- package/lib/types/types/dialog.d.ts.map +1 -0
- package/lib/types/types/dialog.js +7 -0
- package/lib/types/types/dialog.js.map +1 -0
- package/lib/types/types/dnd.d.ts +70 -0
- package/lib/types/types/dnd.d.ts.map +1 -0
- package/lib/types/types/dnd.js +19 -0
- package/lib/types/types/dnd.js.map +1 -0
- package/lib/types/types/emoji.d.ts +18 -0
- package/lib/types/types/emoji.d.ts.map +1 -0
- package/lib/types/types/emoji.js +7 -0
- package/lib/types/types/emoji.js.map +1 -0
- package/lib/types/types/events/base-events.d.ts +235 -0
- package/lib/types/types/events/base-events.d.ts.map +1 -0
- package/lib/types/types/events/base-events.js +3 -0
- package/lib/types/types/events/base-events.js.map +1 -0
- package/lib/types/types/events/index.d.ts +97 -0
- package/lib/types/types/events/index.d.ts.map +1 -0
- package/lib/types/types/events/index.js +3 -0
- package/lib/types/types/events/index.js.map +1 -0
- package/lib/types/types/events/message-events.d.ts +215 -0
- package/lib/types/types/events/message-events.d.ts.map +1 -0
- package/lib/types/types/events/message-events.js +3 -0
- package/lib/types/types/events/message-events.js.map +1 -0
- package/lib/types/types/files.d.ts +189 -0
- package/lib/types/types/files.d.ts.map +1 -0
- package/lib/types/types/files.js +43 -0
- package/lib/types/types/files.js.map +1 -0
- package/lib/types/types/index.d.ts +82 -0
- package/lib/types/types/index.d.ts.map +1 -0
- package/lib/types/types/index.js +29 -0
- package/lib/types/types/index.js.map +1 -0
- package/lib/types/types/internal.d.ts +17 -0
- package/lib/types/types/internal.d.ts.map +1 -0
- package/lib/types/types/internal.js +60 -0
- package/lib/types/types/internal.js.map +1 -0
- package/lib/types/types/migration.d.ts +25 -0
- package/lib/types/types/migration.d.ts.map +1 -0
- package/lib/types/types/migration.js +7 -0
- package/lib/types/types/migration.js.map +1 -0
- package/lib/types/types/oauth.d.ts +50 -0
- package/lib/types/types/oauth.d.ts.map +1 -0
- package/lib/types/types/oauth.js +13 -0
- package/lib/types/types/oauth.js.map +1 -0
- package/lib/types/types/pins.d.ts +39 -0
- package/lib/types/types/pins.d.ts.map +1 -0
- package/lib/types/types/pins.js +13 -0
- package/lib/types/types/pins.js.map +1 -0
- package/lib/types/types/reactions.d.ts +75 -0
- package/lib/types/types/reactions.d.ts.map +1 -0
- package/lib/types/types/reactions.js +16 -0
- package/lib/types/types/reactions.js.map +1 -0
- package/lib/types/types/reminders.d.ts +64 -0
- package/lib/types/types/reminders.d.ts.map +1 -0
- package/lib/types/types/reminders.js +19 -0
- package/lib/types/types/reminders.js.map +1 -0
- package/lib/types/types/rtm.d.ts +30 -0
- package/lib/types/types/rtm.d.ts.map +1 -0
- package/lib/types/types/rtm.js +7 -0
- package/lib/types/types/rtm.js.map +1 -0
- package/lib/types/types/search.d.ts +24 -0
- package/lib/types/types/search.d.ts.map +1 -0
- package/lib/types/types/search.js +7 -0
- package/lib/types/types/search.js.map +1 -0
- package/lib/types/types/stars.d.ts +56 -0
- package/lib/types/types/stars.d.ts.map +1 -0
- package/lib/types/types/stars.js +13 -0
- package/lib/types/types/stars.js.map +1 -0
- package/lib/types/types/team.d.ts +98 -0
- package/lib/types/types/team.d.ts.map +1 -0
- package/lib/types/types/team.js +19 -0
- package/lib/types/types/team.js.map +1 -0
- package/lib/types/types/usergroups.d.ts +103 -0
- package/lib/types/types/usergroups.d.ts.map +1 -0
- package/lib/types/types/usergroups.js +25 -0
- package/lib/types/types/usergroups.js.map +1 -0
- package/lib/types/types/users.d.ts +169 -0
- package/lib/types/types/users.d.ts.map +1 -0
- package/lib/types/types/users.js +40 -0
- package/lib/types/types/users.js.map +1 -0
- package/lib/types/types/views.d.ts +56 -0
- package/lib/types/types/views.d.ts.map +1 -0
- package/lib/types/types/views.js +16 -0
- package/lib/types/types/views.js.map +1 -0
- package/lib/types/types/workflows.d.ts +45 -0
- package/lib/types/types/workflows.d.ts.map +1 -0
- package/lib/types/types/workflows.js +13 -0
- package/lib/types/types/workflows.js.map +1 -0
- package/package.json +65 -3
- package/src/bot.ts +273 -0
- package/src/config.ts +92 -0
- package/src/decode.ts +489 -0
- package/src/errors.ts +230 -0
- package/src/identity.ts +59 -0
- package/src/index.ts +64 -0
- package/src/modes/mrkdwn.ts +159 -0
- package/src/modes/shared.ts +515 -0
- package/src/mrkdwn.ts +146 -0
- package/src/request.ts +449 -0
- package/src/send.ts +300 -0
- package/src/transport/socket.ts +393 -0
- package/src/transport/webhook.ts +269 -0
- package/src/types/admin.ts +910 -0
- package/src/types/api.ts +28 -0
- package/src/types/apps.ts +175 -0
- package/src/types/auth.ts +49 -0
- package/src/types/bots.ts +40 -0
- package/src/types/calls.ts +110 -0
- package/src/types/chat.ts +255 -0
- package/src/types/conversations.ts +342 -0
- package/src/types/definition.ts +530 -0
- package/src/types/dialog.ts +28 -0
- package/src/types/dnd.ts +94 -0
- package/src/types/emoji.ts +26 -0
- package/src/types/events/base-events.ts +281 -0
- package/src/types/events/index.ts +125 -0
- package/src/types/events/message-events.ts +253 -0
- package/src/types/files.ts +245 -0
- package/src/types/index.ts +84 -0
- package/src/types/internal.ts +60 -0
- package/src/types/migration.ts +34 -0
- package/src/types/oauth.ts +66 -0
- package/src/types/pins.ts +55 -0
- package/src/types/reactions.ts +95 -0
- package/src/types/reminders.ts +88 -0
- package/src/types/rtm.ts +38 -0
- package/src/types/search.ts +32 -0
- package/src/types/stars.ts +72 -0
- package/src/types/team.ts +122 -0
- package/src/types/usergroups.ts +135 -0
- package/src/types/users.ts +221 -0
- package/src/types/views.ts +76 -0
- package/src/types/workflows.ts +61 -0
- package/README.md +0 -3
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Internal } from './internal.ts'
|
|
2
|
+
|
|
3
|
+
Internal.define({
|
|
4
|
+
'/views.open': {
|
|
5
|
+
GET: { 'viewsOpen': true },
|
|
6
|
+
},
|
|
7
|
+
'/views.publish': {
|
|
8
|
+
GET: { 'viewsPublish': true },
|
|
9
|
+
},
|
|
10
|
+
'/views.push': {
|
|
11
|
+
GET: { 'viewsPush': true },
|
|
12
|
+
},
|
|
13
|
+
'/views.update': {
|
|
14
|
+
GET: { 'viewsUpdate': true },
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export namespace Views {
|
|
19
|
+
export namespace Params {
|
|
20
|
+
export interface Open {
|
|
21
|
+
trigger_id: string
|
|
22
|
+
view: string
|
|
23
|
+
}
|
|
24
|
+
export interface Publish {
|
|
25
|
+
user_id: string
|
|
26
|
+
view: string
|
|
27
|
+
hash?: string
|
|
28
|
+
}
|
|
29
|
+
export interface Push {
|
|
30
|
+
trigger_id: string
|
|
31
|
+
view: string
|
|
32
|
+
}
|
|
33
|
+
export interface Update {
|
|
34
|
+
view_id?: string
|
|
35
|
+
external_id?: string
|
|
36
|
+
view?: string
|
|
37
|
+
hash?: string
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare module './internal' {
|
|
43
|
+
interface Internal {
|
|
44
|
+
/**
|
|
45
|
+
* Open a view for a user.
|
|
46
|
+
* @see https://api.slack.com/methods/views.open
|
|
47
|
+
*/
|
|
48
|
+
viewsOpen(token: TokenInput, params: Views.Params.Open): Promise<{
|
|
49
|
+
ok: boolean
|
|
50
|
+
}>
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Publish a static view for a User.
|
|
54
|
+
* @see https://api.slack.com/methods/views.publish
|
|
55
|
+
*/
|
|
56
|
+
viewsPublish(token: TokenInput, params: Views.Params.Publish): Promise<{
|
|
57
|
+
ok: boolean
|
|
58
|
+
}>
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Push a view onto the stack of a root view.
|
|
62
|
+
* @see https://api.slack.com/methods/views.push
|
|
63
|
+
*/
|
|
64
|
+
viewsPush(token: TokenInput, params: Views.Params.Push): Promise<{
|
|
65
|
+
ok: boolean
|
|
66
|
+
}>
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Update an existing view.
|
|
70
|
+
* @see https://api.slack.com/methods/views.update
|
|
71
|
+
*/
|
|
72
|
+
viewsUpdate(token: TokenInput, params: Views.Params.Update): Promise<{
|
|
73
|
+
ok: boolean
|
|
74
|
+
}>
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Internal } from './internal.ts'
|
|
2
|
+
|
|
3
|
+
Internal.define({
|
|
4
|
+
'/workflows.stepCompleted': {
|
|
5
|
+
GET: { 'workflowsStepCompleted': true },
|
|
6
|
+
},
|
|
7
|
+
'/workflows.stepFailed': {
|
|
8
|
+
GET: { 'workflowsStepFailed': true },
|
|
9
|
+
},
|
|
10
|
+
'/workflows.updateStep': {
|
|
11
|
+
GET: { 'workflowsUpdateStep': true },
|
|
12
|
+
},
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export namespace Workflows {
|
|
16
|
+
export namespace Params {
|
|
17
|
+
export interface StepCompleted {
|
|
18
|
+
workflow_step_execute_id: string
|
|
19
|
+
outputs?: string
|
|
20
|
+
}
|
|
21
|
+
export interface StepFailed {
|
|
22
|
+
workflow_step_execute_id: string
|
|
23
|
+
error: string
|
|
24
|
+
}
|
|
25
|
+
export interface UpdateStep {
|
|
26
|
+
workflow_step_edit_id: string
|
|
27
|
+
inputs?: string
|
|
28
|
+
outputs?: string
|
|
29
|
+
step_name?: string
|
|
30
|
+
step_image_url?: string
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare module './internal' {
|
|
36
|
+
interface Internal {
|
|
37
|
+
/**
|
|
38
|
+
* Indicate that an app's step in a workflow completed execution.
|
|
39
|
+
* @see https://api.slack.com/methods/workflows.stepCompleted
|
|
40
|
+
*/
|
|
41
|
+
workflowsStepCompleted(token: TokenInput, params: Workflows.Params.StepCompleted): Promise<{
|
|
42
|
+
ok: boolean
|
|
43
|
+
}>
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Indicate that an app's step in a workflow failed to execute.
|
|
47
|
+
* @see https://api.slack.com/methods/workflows.stepFailed
|
|
48
|
+
*/
|
|
49
|
+
workflowsStepFailed(token: TokenInput, params: Workflows.Params.StepFailed): Promise<{
|
|
50
|
+
ok: boolean
|
|
51
|
+
}>
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Update the configuration for a workflow extension step.
|
|
55
|
+
* @see https://api.slack.com/methods/workflows.updateStep
|
|
56
|
+
*/
|
|
57
|
+
workflowsUpdateStep(token: TokenInput, params: Workflows.Params.UpdateStep): Promise<{
|
|
58
|
+
ok: boolean
|
|
59
|
+
}>
|
|
60
|
+
}
|
|
61
|
+
}
|
package/README.md
DELETED