slackblocks 2.5.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE +7 -0
- data/LICENSE.BSD-3-Clause +29 -0
- data/README.md +44 -0
- data/lib/slackblocks/components.rb +59 -0
- data/lib/slackblocks/generated/limits.rb +9 -0
- data/lib/slackblocks/generated/models.rb +979 -0
- data/lib/slackblocks/generated/style_flags.rb +6 -0
- data/lib/slackblocks/generated/vocabulary.rb +7 -0
- data/lib/slackblocks/rich_text_style.rb +13 -0
- data/lib/slackblocks/validation_error.rb +18 -0
- data/lib/slackblocks/validator.rb +284 -0
- data/lib/slackblocks/value.rb +274 -0
- data/lib/slackblocks/version.rb +4 -0
- data/lib/slackblocks.rb +11 -0
- data/sig/slackblocks/generated.rbs +1268 -0
- data/sig/slackblocks.rbs +76 -0
- metadata +62 -0
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+
# Generated from spec/model.json. Do not edit by hand.
|
|
2
|
+
module Slackblocks
|
|
3
|
+
module Block
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
module ContextElement
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
module ContextActionsElement
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
module TableCell
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
module DataTableCell
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
module Element
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
module InputElement
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
module Text
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
module Chart
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
module RichTextBlockElement
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
module RichTextSectionElement
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
module AlertLevel
|
|
37
|
+
DEFAULT = :default
|
|
38
|
+
INFO = :info
|
|
39
|
+
WARNING = :warning
|
|
40
|
+
ERROR = :error
|
|
41
|
+
SUCCESS = :success
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
module ContainerWidth
|
|
45
|
+
NARROW = :narrow
|
|
46
|
+
STANDARD = :standard
|
|
47
|
+
WIDE = :wide
|
|
48
|
+
FULL = :full
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
module TaskStatus
|
|
52
|
+
PENDING = :pending
|
|
53
|
+
IN_PROGRESS = :in_progress
|
|
54
|
+
COMPLETE = :complete
|
|
55
|
+
ERROR = :error
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
module ButtonStyle
|
|
59
|
+
PRIMARY = :primary
|
|
60
|
+
DANGER = :danger
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
module IconButtonIcon
|
|
64
|
+
TRASH = :trash
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
module ColumnAlign
|
|
68
|
+
LEFT = :left
|
|
69
|
+
CENTER = :center
|
|
70
|
+
RIGHT = :right
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
module RichTextListStyle
|
|
74
|
+
BULLET = :bullet
|
|
75
|
+
ORDERED = :ordered
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
module ResponseType
|
|
79
|
+
IN_CHANNEL = :in_channel
|
|
80
|
+
EPHEMERAL = :ephemeral
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class ActionsBlock
|
|
84
|
+
include Value
|
|
85
|
+
include Block
|
|
86
|
+
attr_reader :elements, :block_id, :additional_fields
|
|
87
|
+
end
|
|
88
|
+
ActionsBlock.const_set(:WIRE_TYPE, "actions")
|
|
89
|
+
ActionsBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "Element", "coerce" => nil, "flags" => nil, "limits" => "actions.elements", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
90
|
+
ActionsBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
91
|
+
ActionsBlock.singleton_class.prepend(KeywordOnly)
|
|
92
|
+
|
|
93
|
+
class AlertBlock
|
|
94
|
+
include Value
|
|
95
|
+
include Block
|
|
96
|
+
attr_reader :text, :level, :block_id, :additional_fields
|
|
97
|
+
end
|
|
98
|
+
AlertBlock.const_set(:WIRE_TYPE, "alert")
|
|
99
|
+
AlertBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "alert.text", "required" => true}, {"name" => "level", "wire" => "level", "kind" => "enum", "target" => "AlertLevel", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
100
|
+
AlertBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
101
|
+
AlertBlock.singleton_class.prepend(KeywordOnly)
|
|
102
|
+
|
|
103
|
+
class CardBlock
|
|
104
|
+
include Value
|
|
105
|
+
include Block
|
|
106
|
+
attr_reader :hero_image, :icon, :title, :subtitle, :body, :actions, :slack_icon, :subtext, :block_id, :additional_fields
|
|
107
|
+
end
|
|
108
|
+
CardBlock.const_set(:WIRE_TYPE, "card")
|
|
109
|
+
CardBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "hero_image", "wire" => "hero_image", "kind" => "object", "target" => "ImageElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "icon", "wire" => "icon", "kind" => "object", "target" => "ImageElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "title", "wire" => "title", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "card.title", "required" => false}, {"name" => "subtitle", "wire" => "subtitle", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "card.subtitle", "required" => false}, {"name" => "body", "wire" => "body", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "card.body", "required" => false}, {"name" => "actions", "wire" => "actions", "kind" => "list", "target" => "ButtonElement", "coerce" => nil, "flags" => nil, "limits" => "card.actions", "required" => false}, {"name" => "slack_icon", "wire" => "slack_icon", "kind" => "object", "target" => "SlackIcon", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "subtext", "wire" => "subtext", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "card.subtext", "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
110
|
+
CardBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
111
|
+
CardBlock.singleton_class.prepend(KeywordOnly)
|
|
112
|
+
|
|
113
|
+
class CarouselBlock
|
|
114
|
+
include Value
|
|
115
|
+
include Block
|
|
116
|
+
attr_reader :elements, :block_id, :additional_fields
|
|
117
|
+
end
|
|
118
|
+
CarouselBlock.const_set(:WIRE_TYPE, "carousel")
|
|
119
|
+
CarouselBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "CardBlock", "coerce" => nil, "flags" => nil, "limits" => "carousel.elements", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
120
|
+
CarouselBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
121
|
+
CarouselBlock.singleton_class.prepend(KeywordOnly)
|
|
122
|
+
|
|
123
|
+
class ContainerBlock
|
|
124
|
+
include Value
|
|
125
|
+
include Block
|
|
126
|
+
attr_reader :child_blocks, :title, :rich_text_title, :subtitle, :width, :icon, :is_collapsible, :default_collapsed, :has_header_divider, :block_id, :additional_fields
|
|
127
|
+
end
|
|
128
|
+
ContainerBlock.const_set(:WIRE_TYPE, "container")
|
|
129
|
+
ContainerBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "child_blocks", "wire" => "child_blocks", "kind" => "list", "target" => "Block", "coerce" => nil, "flags" => nil, "limits" => "container.child_blocks", "required" => true}, {"name" => "title", "wire" => "title", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "container.title", "required" => false}, {"name" => "rich_text_title", "wire" => "rich_text_title", "kind" => "object", "target" => "RichTextBlock", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "subtitle", "wire" => "subtitle", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "container.subtitle", "required" => false}, {"name" => "width", "wire" => "width", "kind" => "enum", "target" => "ContainerWidth", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "icon", "wire" => "icon", "kind" => "object", "target" => "ImageElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "is_collapsible", "wire" => "is_collapsible", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "default_collapsed", "wire" => "default_collapsed", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "has_header_divider", "wire" => "has_header_divider", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
130
|
+
ContainerBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
131
|
+
ContainerBlock.singleton_class.prepend(KeywordOnly)
|
|
132
|
+
|
|
133
|
+
class ContextActionsBlock
|
|
134
|
+
include Value
|
|
135
|
+
include Block
|
|
136
|
+
attr_reader :elements, :block_id, :additional_fields
|
|
137
|
+
end
|
|
138
|
+
ContextActionsBlock.const_set(:WIRE_TYPE, "context_actions")
|
|
139
|
+
ContextActionsBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "ContextActionsElement", "coerce" => nil, "flags" => nil, "limits" => "context_actions.elements", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
140
|
+
ContextActionsBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
141
|
+
ContextActionsBlock.singleton_class.prepend(KeywordOnly)
|
|
142
|
+
|
|
143
|
+
class ContextBlock
|
|
144
|
+
include Value
|
|
145
|
+
include Block
|
|
146
|
+
attr_reader :elements, :block_id, :additional_fields
|
|
147
|
+
end
|
|
148
|
+
ContextBlock.const_set(:WIRE_TYPE, "context")
|
|
149
|
+
ContextBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "ContextElement", "coerce" => nil, "flags" => nil, "limits" => "context.elements", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
150
|
+
ContextBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
151
|
+
ContextBlock.singleton_class.prepend(KeywordOnly)
|
|
152
|
+
|
|
153
|
+
class DataTableBlock
|
|
154
|
+
include Value
|
|
155
|
+
include Block
|
|
156
|
+
attr_reader :rows, :caption, :page_size, :row_header_column_index, :block_id, :additional_fields
|
|
157
|
+
end
|
|
158
|
+
DataTableBlock.const_set(:WIRE_TYPE, "data_table")
|
|
159
|
+
DataTableBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "rows", "wire" => "rows", "kind" => "rows", "target" => "DataTableCell", "coerce" => nil, "flags" => nil, "limits" => "data_table.rows", "required" => true}, {"name" => "caption", "wire" => "caption", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "page_size", "wire" => "page_size", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_table.page_size", "required" => false}, {"name" => "row_header_column_index", "wire" => "row_header_column_index", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_table.row_header_column_index", "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
160
|
+
DataTableBlock.const_set(:DEFAULTS, Value.deep_freeze({"page_size" => 5, "row_header_column_index" => 0}))
|
|
161
|
+
DataTableBlock.singleton_class.prepend(KeywordOnly)
|
|
162
|
+
|
|
163
|
+
class DataVisualizationBlock
|
|
164
|
+
include Value
|
|
165
|
+
include Block
|
|
166
|
+
attr_reader :title, :chart, :block_id, :additional_fields
|
|
167
|
+
end
|
|
168
|
+
DataVisualizationBlock.const_set(:WIRE_TYPE, "data_visualization")
|
|
169
|
+
DataVisualizationBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "title", "wire" => "title", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_visualization.title", "required" => true}, {"name" => "chart", "wire" => "chart", "kind" => "object", "target" => "Chart", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
170
|
+
DataVisualizationBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
171
|
+
DataVisualizationBlock.singleton_class.prepend(KeywordOnly)
|
|
172
|
+
|
|
173
|
+
class DividerBlock
|
|
174
|
+
include Value
|
|
175
|
+
include Block
|
|
176
|
+
attr_reader :block_id, :additional_fields
|
|
177
|
+
end
|
|
178
|
+
DividerBlock.const_set(:WIRE_TYPE, "divider")
|
|
179
|
+
DividerBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
180
|
+
DividerBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
181
|
+
DividerBlock.singleton_class.prepend(KeywordOnly)
|
|
182
|
+
|
|
183
|
+
class FileBlock
|
|
184
|
+
include Value
|
|
185
|
+
include Block
|
|
186
|
+
attr_reader :external_id, :source, :block_id, :additional_fields
|
|
187
|
+
end
|
|
188
|
+
FileBlock.const_set(:WIRE_TYPE, "file")
|
|
189
|
+
FileBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "external_id", "wire" => "external_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "source", "wire" => "source", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
190
|
+
FileBlock.const_set(:DEFAULTS, Value.deep_freeze({"source" => "remote"}))
|
|
191
|
+
FileBlock.singleton_class.prepend(KeywordOnly)
|
|
192
|
+
|
|
193
|
+
class HeaderBlock
|
|
194
|
+
include Value
|
|
195
|
+
include Block
|
|
196
|
+
attr_reader :text, :block_id, :additional_fields
|
|
197
|
+
end
|
|
198
|
+
HeaderBlock.const_set(:WIRE_TYPE, "header")
|
|
199
|
+
HeaderBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "header.text", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
200
|
+
HeaderBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
201
|
+
HeaderBlock.singleton_class.prepend(KeywordOnly)
|
|
202
|
+
|
|
203
|
+
class ImageBlock
|
|
204
|
+
include Value
|
|
205
|
+
include Block
|
|
206
|
+
attr_reader :image_url, :slack_file, :alt_text, :title, :block_id, :additional_fields
|
|
207
|
+
end
|
|
208
|
+
ImageBlock.const_set(:WIRE_TYPE, "image")
|
|
209
|
+
ImageBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "image_url", "wire" => "image_url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "image.image_url", "required" => false}, {"name" => "slack_file", "wire" => "slack_file", "kind" => "object", "target" => "SlackFile", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "alt_text", "wire" => "alt_text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "image.alt_text", "required" => true}, {"name" => "title", "wire" => "title", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "image.title", "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
210
|
+
ImageBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
211
|
+
ImageBlock.singleton_class.prepend(KeywordOnly)
|
|
212
|
+
|
|
213
|
+
class InputBlock
|
|
214
|
+
include Value
|
|
215
|
+
include Block
|
|
216
|
+
attr_reader :label, :element, :dispatch_action, :block_id, :hint, :optional, :additional_fields
|
|
217
|
+
end
|
|
218
|
+
InputBlock.const_set(:WIRE_TYPE, "input")
|
|
219
|
+
InputBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "label", "wire" => "label", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "input.label", "required" => true}, {"name" => "element", "wire" => "element", "kind" => "object", "target" => "InputElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "dispatch_action", "wire" => "dispatch_action", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}, {"name" => "hint", "wire" => "hint", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "input.hint", "required" => false}, {"name" => "optional", "wire" => "optional", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
220
|
+
InputBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
221
|
+
InputBlock.singleton_class.prepend(KeywordOnly)
|
|
222
|
+
|
|
223
|
+
class MarkdownBlock
|
|
224
|
+
include Value
|
|
225
|
+
include Block
|
|
226
|
+
attr_reader :text, :block_id, :additional_fields
|
|
227
|
+
end
|
|
228
|
+
MarkdownBlock.const_set(:WIRE_TYPE, "markdown")
|
|
229
|
+
MarkdownBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "markdown.text", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
230
|
+
MarkdownBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
231
|
+
MarkdownBlock.singleton_class.prepend(KeywordOnly)
|
|
232
|
+
|
|
233
|
+
class PlanBlock
|
|
234
|
+
include Value
|
|
235
|
+
include Block
|
|
236
|
+
attr_reader :title, :tasks, :block_id, :additional_fields
|
|
237
|
+
end
|
|
238
|
+
PlanBlock.const_set(:WIRE_TYPE, "plan")
|
|
239
|
+
PlanBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "title", "wire" => "title", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "tasks", "wire" => "tasks", "kind" => "list", "target" => "TaskCardBlock", "coerce" => nil, "flags" => nil, "limits" => "plan.tasks", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
240
|
+
PlanBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
241
|
+
PlanBlock.singleton_class.prepend(KeywordOnly)
|
|
242
|
+
|
|
243
|
+
class RichTextBlock
|
|
244
|
+
include Value
|
|
245
|
+
include Block
|
|
246
|
+
include DataTableCell
|
|
247
|
+
include TableCell
|
|
248
|
+
attr_reader :elements, :block_id, :additional_fields
|
|
249
|
+
end
|
|
250
|
+
RichTextBlock.const_set(:WIRE_TYPE, "rich_text")
|
|
251
|
+
RichTextBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "RichTextBlockElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
252
|
+
RichTextBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
253
|
+
RichTextBlock.singleton_class.prepend(KeywordOnly)
|
|
254
|
+
|
|
255
|
+
class SectionBlock
|
|
256
|
+
include Value
|
|
257
|
+
include Block
|
|
258
|
+
attr_reader :text, :fields, :accessory, :block_id, :additional_fields
|
|
259
|
+
end
|
|
260
|
+
SectionBlock.const_set(:WIRE_TYPE, "section")
|
|
261
|
+
SectionBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "section.text", "required" => false}, {"name" => "fields", "wire" => "fields", "kind" => "textList", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "section.fields", "required" => false}, {"name" => "accessory", "wire" => "accessory", "kind" => "object", "target" => "Element", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
262
|
+
SectionBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
263
|
+
SectionBlock.singleton_class.prepend(KeywordOnly)
|
|
264
|
+
|
|
265
|
+
class TableBlock
|
|
266
|
+
include Value
|
|
267
|
+
include Block
|
|
268
|
+
attr_reader :rows, :column_settings, :block_id, :additional_fields
|
|
269
|
+
end
|
|
270
|
+
TableBlock.const_set(:WIRE_TYPE, "table")
|
|
271
|
+
TableBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "rows", "wire" => "rows", "kind" => "rows", "target" => "TableCell", "coerce" => nil, "flags" => nil, "limits" => "table.rows", "required" => true}, {"name" => "column_settings", "wire" => "column_settings", "kind" => "list", "target" => "ColumnSettings", "coerce" => nil, "flags" => nil, "limits" => "table.column_settings", "required" => false}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
272
|
+
TableBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
273
|
+
TableBlock.singleton_class.prepend(KeywordOnly)
|
|
274
|
+
|
|
275
|
+
class TaskCardBlock
|
|
276
|
+
include Value
|
|
277
|
+
include Block
|
|
278
|
+
attr_reader :task_id, :title, :details, :output, :sources, :status, :block_id, :additional_fields
|
|
279
|
+
end
|
|
280
|
+
TaskCardBlock.const_set(:WIRE_TYPE, "task_card")
|
|
281
|
+
TaskCardBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "task_id", "wire" => "task_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "title", "wire" => "title", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "details", "wire" => "details", "kind" => "object", "target" => "RichTextBlock", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "output", "wire" => "output", "kind" => "object", "target" => "RichTextBlock", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "sources", "wire" => "sources", "kind" => "list", "target" => "UrlSource", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "status", "wire" => "status", "kind" => "enum", "target" => "TaskStatus", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}]))
|
|
282
|
+
TaskCardBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
283
|
+
TaskCardBlock.singleton_class.prepend(KeywordOnly)
|
|
284
|
+
|
|
285
|
+
class VideoBlock
|
|
286
|
+
include Value
|
|
287
|
+
include Block
|
|
288
|
+
attr_reader :alt_text, :thumbnail_url, :title, :video_url, :block_id, :author_name, :description, :provider_icon_url, :provider_name, :title_url, :additional_fields
|
|
289
|
+
end
|
|
290
|
+
VideoBlock.const_set(:WIRE_TYPE, "video")
|
|
291
|
+
VideoBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "alt_text", "wire" => "alt_text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "video.alt_text", "required" => true}, {"name" => "thumbnail_url", "wire" => "thumbnail_url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "video.thumbnail_url", "required" => true}, {"name" => "title", "wire" => "title", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "video.title", "required" => true}, {"name" => "video_url", "wire" => "video_url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "video.video_url", "required" => true}, {"name" => "block_id", "wire" => "block_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "block_id", "required" => false}, {"name" => "author_name", "wire" => "author_name", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "video.author_name", "required" => false}, {"name" => "description", "wire" => "description", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "video.description", "required" => false}, {"name" => "provider_icon_url", "wire" => "provider_icon_url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "video.provider_icon_url", "required" => false}, {"name" => "provider_name", "wire" => "provider_name", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "video.provider_name", "required" => false}, {"name" => "title_url", "wire" => "title_url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "video.title_url", "required" => false}]))
|
|
292
|
+
VideoBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
293
|
+
VideoBlock.singleton_class.prepend(KeywordOnly)
|
|
294
|
+
|
|
295
|
+
class ButtonElement
|
|
296
|
+
include Value
|
|
297
|
+
include Element
|
|
298
|
+
attr_reader :text, :action_id, :url, :value, :style, :confirm, :accessibility_label, :additional_fields
|
|
299
|
+
end
|
|
300
|
+
ButtonElement.const_set(:WIRE_TYPE, "button")
|
|
301
|
+
ButtonElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "button.text", "required" => true}, {"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "url", "wire" => "url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "button.url", "required" => false}, {"name" => "value", "wire" => "value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "button.value", "required" => false}, {"name" => "style", "wire" => "style", "kind" => "enum", "target" => "ButtonStyle", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "accessibility_label", "wire" => "accessibility_label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "button.accessibility_label", "required" => false}]))
|
|
302
|
+
ButtonElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
303
|
+
ButtonElement.singleton_class.prepend(KeywordOnly)
|
|
304
|
+
|
|
305
|
+
class ChannelMultiSelectElement
|
|
306
|
+
include Value
|
|
307
|
+
include Element
|
|
308
|
+
include InputElement
|
|
309
|
+
attr_reader :action_id, :initial_channels, :confirm, :max_selected_items, :focus_on_load, :placeholder, :additional_fields
|
|
310
|
+
end
|
|
311
|
+
ChannelMultiSelectElement.const_set(:WIRE_TYPE, "multi_channels_select")
|
|
312
|
+
ChannelMultiSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_channels", "wire" => "initial_channels", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "max_selected_items", "wire" => "max_selected_items", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "multi_select.max_selected_items", "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
313
|
+
ChannelMultiSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
314
|
+
ChannelMultiSelectElement.singleton_class.prepend(KeywordOnly)
|
|
315
|
+
|
|
316
|
+
class ChannelSelectElement
|
|
317
|
+
include Value
|
|
318
|
+
include Element
|
|
319
|
+
include InputElement
|
|
320
|
+
attr_reader :action_id, :initial_channel, :response_url_enabled, :confirm, :focus_on_load, :placeholder, :additional_fields
|
|
321
|
+
end
|
|
322
|
+
ChannelSelectElement.const_set(:WIRE_TYPE, "channels_select")
|
|
323
|
+
ChannelSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_channel", "wire" => "initial_channel", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "response_url_enabled", "wire" => "response_url_enabled", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
324
|
+
ChannelSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
325
|
+
ChannelSelectElement.singleton_class.prepend(KeywordOnly)
|
|
326
|
+
|
|
327
|
+
class CheckboxesElement
|
|
328
|
+
include Value
|
|
329
|
+
include Element
|
|
330
|
+
include InputElement
|
|
331
|
+
attr_reader :action_id, :options, :initial_options, :confirm, :focus_on_load, :additional_fields
|
|
332
|
+
end
|
|
333
|
+
CheckboxesElement.const_set(:WIRE_TYPE, "checkboxes")
|
|
334
|
+
CheckboxesElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "options", "wire" => "options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => "checkboxes.options", "required" => true}, {"name" => "initial_options", "wire" => "initial_options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
335
|
+
CheckboxesElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
336
|
+
CheckboxesElement.singleton_class.prepend(KeywordOnly)
|
|
337
|
+
|
|
338
|
+
class ConversationMultiSelectElement
|
|
339
|
+
include Value
|
|
340
|
+
include Element
|
|
341
|
+
include InputElement
|
|
342
|
+
attr_reader :action_id, :initial_conversations, :default_to_current_conversation, :filter, :confirm, :max_selected_items, :focus_on_load, :placeholder, :additional_fields
|
|
343
|
+
end
|
|
344
|
+
ConversationMultiSelectElement.const_set(:WIRE_TYPE, "multi_conversations_select")
|
|
345
|
+
ConversationMultiSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_conversations", "wire" => "initial_conversations", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "default_to_current_conversation", "wire" => "default_to_current_conversation", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "filter", "wire" => "filter", "kind" => "object", "target" => "ConversationFilter", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "max_selected_items", "wire" => "max_selected_items", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "multi_select.max_selected_items", "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
346
|
+
ConversationMultiSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
347
|
+
ConversationMultiSelectElement.singleton_class.prepend(KeywordOnly)
|
|
348
|
+
|
|
349
|
+
class ConversationSelectElement
|
|
350
|
+
include Value
|
|
351
|
+
include Element
|
|
352
|
+
include InputElement
|
|
353
|
+
attr_reader :action_id, :initial_conversation, :default_to_current_conversation, :filter, :response_url_enabled, :confirm, :focus_on_load, :placeholder, :additional_fields
|
|
354
|
+
end
|
|
355
|
+
ConversationSelectElement.const_set(:WIRE_TYPE, "conversations_select")
|
|
356
|
+
ConversationSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_conversation", "wire" => "initial_conversation", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "default_to_current_conversation", "wire" => "default_to_current_conversation", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "filter", "wire" => "filter", "kind" => "object", "target" => "ConversationFilter", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "response_url_enabled", "wire" => "response_url_enabled", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
357
|
+
ConversationSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
358
|
+
ConversationSelectElement.singleton_class.prepend(KeywordOnly)
|
|
359
|
+
|
|
360
|
+
class DatePickerElement
|
|
361
|
+
include Value
|
|
362
|
+
include Element
|
|
363
|
+
include InputElement
|
|
364
|
+
attr_reader :action_id, :initial_date, :confirm, :focus_on_load, :placeholder, :additional_fields
|
|
365
|
+
end
|
|
366
|
+
DatePickerElement.const_set(:WIRE_TYPE, "datepicker")
|
|
367
|
+
DatePickerElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_date", "wire" => "initial_date", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "date_picker.placeholder", "required" => false}]))
|
|
368
|
+
DatePickerElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
369
|
+
DatePickerElement.singleton_class.prepend(KeywordOnly)
|
|
370
|
+
|
|
371
|
+
class DateTimePickerElement
|
|
372
|
+
include Value
|
|
373
|
+
include Element
|
|
374
|
+
include InputElement
|
|
375
|
+
attr_reader :action_id, :initial_date_time, :confirm, :focus_on_load, :additional_fields
|
|
376
|
+
end
|
|
377
|
+
DateTimePickerElement.const_set(:WIRE_TYPE, "datetimepicker")
|
|
378
|
+
DateTimePickerElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_date_time", "wire" => "initial_date_time", "kind" => "long", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
379
|
+
DateTimePickerElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
380
|
+
DateTimePickerElement.singleton_class.prepend(KeywordOnly)
|
|
381
|
+
|
|
382
|
+
class EmailInputElement
|
|
383
|
+
include Value
|
|
384
|
+
include Element
|
|
385
|
+
include InputElement
|
|
386
|
+
attr_reader :action_id, :initial_value, :dispatch_action_config, :focus_on_load, :placeholder, :additional_fields
|
|
387
|
+
end
|
|
388
|
+
EmailInputElement.const_set(:WIRE_TYPE, "email_text_input")
|
|
389
|
+
EmailInputElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_value", "wire" => "initial_value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "dispatch_action_config", "wire" => "dispatch_action_config", "kind" => "object", "target" => "DispatchActionConfiguration", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "email_input.placeholder", "required" => false}]))
|
|
390
|
+
EmailInputElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
391
|
+
EmailInputElement.singleton_class.prepend(KeywordOnly)
|
|
392
|
+
|
|
393
|
+
class ExternalMultiSelectElement
|
|
394
|
+
include Value
|
|
395
|
+
include Element
|
|
396
|
+
include InputElement
|
|
397
|
+
attr_reader :action_id, :min_query_length, :initial_options, :confirm, :max_selected_items, :focus_on_load, :placeholder, :additional_fields
|
|
398
|
+
end
|
|
399
|
+
ExternalMultiSelectElement.const_set(:WIRE_TYPE, "multi_external_select")
|
|
400
|
+
ExternalMultiSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "min_query_length", "wire" => "min_query_length", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "initial_options", "wire" => "initial_options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "max_selected_items", "wire" => "max_selected_items", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "multi_select.max_selected_items", "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
401
|
+
ExternalMultiSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
402
|
+
ExternalMultiSelectElement.singleton_class.prepend(KeywordOnly)
|
|
403
|
+
|
|
404
|
+
class ExternalSelectElement
|
|
405
|
+
include Value
|
|
406
|
+
include Element
|
|
407
|
+
include InputElement
|
|
408
|
+
attr_reader :action_id, :min_query_length, :initial_option, :confirm, :focus_on_load, :placeholder, :additional_fields
|
|
409
|
+
end
|
|
410
|
+
ExternalSelectElement.const_set(:WIRE_TYPE, "external_select")
|
|
411
|
+
ExternalSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "min_query_length", "wire" => "min_query_length", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "initial_option", "wire" => "initial_option", "kind" => "object", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
412
|
+
ExternalSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
413
|
+
ExternalSelectElement.singleton_class.prepend(KeywordOnly)
|
|
414
|
+
|
|
415
|
+
class FeedbackButtonsElement
|
|
416
|
+
include Value
|
|
417
|
+
include ContextActionsElement
|
|
418
|
+
include Element
|
|
419
|
+
attr_reader :positive_button, :negative_button, :action_id, :additional_fields
|
|
420
|
+
end
|
|
421
|
+
FeedbackButtonsElement.const_set(:WIRE_TYPE, "feedback_buttons")
|
|
422
|
+
FeedbackButtonsElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "positive_button", "wire" => "positive_button", "kind" => "object", "target" => "FeedbackButton", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "negative_button", "wire" => "negative_button", "kind" => "object", "target" => "FeedbackButton", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}]))
|
|
423
|
+
FeedbackButtonsElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
424
|
+
FeedbackButtonsElement.singleton_class.prepend(KeywordOnly)
|
|
425
|
+
|
|
426
|
+
class FileInputElement
|
|
427
|
+
include Value
|
|
428
|
+
include Element
|
|
429
|
+
include InputElement
|
|
430
|
+
attr_reader :action_id, :filetypes, :max_files, :additional_fields
|
|
431
|
+
end
|
|
432
|
+
FileInputElement.const_set(:WIRE_TYPE, "file_input")
|
|
433
|
+
FileInputElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "filetypes", "wire" => "filetypes", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "max_files", "wire" => "max_files", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "file_input.max_files", "required" => false}]))
|
|
434
|
+
FileInputElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
435
|
+
FileInputElement.singleton_class.prepend(KeywordOnly)
|
|
436
|
+
|
|
437
|
+
class IconButtonElement
|
|
438
|
+
include Value
|
|
439
|
+
include ContextActionsElement
|
|
440
|
+
include Element
|
|
441
|
+
attr_reader :text, :icon, :action_id, :value, :confirm, :accessibility_label, :visible_to_user_ids, :additional_fields
|
|
442
|
+
end
|
|
443
|
+
IconButtonElement.const_set(:WIRE_TYPE, "icon_button")
|
|
444
|
+
IconButtonElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => nil, "required" => true}, {"name" => "icon", "wire" => "icon", "kind" => "enum", "target" => "IconButtonIcon", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "value", "wire" => "value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "icon_button.value", "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "accessibility_label", "wire" => "accessibility_label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "icon_button.accessibility_label", "required" => false}, {"name" => "visible_to_user_ids", "wire" => "visible_to_user_ids", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "icon_button.visible_to_user_ids", "required" => false}]))
|
|
445
|
+
IconButtonElement.const_set(:DEFAULTS, Value.deep_freeze({"icon" => "trash"}))
|
|
446
|
+
IconButtonElement.singleton_class.prepend(KeywordOnly)
|
|
447
|
+
|
|
448
|
+
class ImageElement
|
|
449
|
+
include Value
|
|
450
|
+
include ContextElement
|
|
451
|
+
include Element
|
|
452
|
+
attr_reader :alt_text, :image_url, :slack_file, :additional_fields
|
|
453
|
+
end
|
|
454
|
+
ImageElement.const_set(:WIRE_TYPE, "image")
|
|
455
|
+
ImageElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "alt_text", "wire" => "alt_text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "image_element.alt_text", "required" => true}, {"name" => "image_url", "wire" => "image_url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "image_element.image_url", "required" => false}, {"name" => "slack_file", "wire" => "slack_file", "kind" => "object", "target" => "SlackFile", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
456
|
+
ImageElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
457
|
+
ImageElement.singleton_class.prepend(KeywordOnly)
|
|
458
|
+
|
|
459
|
+
class NumberInputElement
|
|
460
|
+
include Value
|
|
461
|
+
include Element
|
|
462
|
+
include InputElement
|
|
463
|
+
attr_reader :action_id, :is_decimal_allowed, :initial_value, :min_value, :max_value, :dispatch_action_config, :focus_on_load, :placeholder, :additional_fields
|
|
464
|
+
end
|
|
465
|
+
NumberInputElement.const_set(:WIRE_TYPE, "number_input")
|
|
466
|
+
NumberInputElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "is_decimal_allowed", "wire" => "is_decimal_allowed", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "initial_value", "wire" => "initial_value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "min_value", "wire" => "min_value", "kind" => "double", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "max_value", "wire" => "max_value", "kind" => "double", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "dispatch_action_config", "wire" => "dispatch_action_config", "kind" => "object", "target" => "DispatchActionConfiguration", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "number_input.placeholder", "required" => false}]))
|
|
467
|
+
NumberInputElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
468
|
+
NumberInputElement.singleton_class.prepend(KeywordOnly)
|
|
469
|
+
|
|
470
|
+
class OverflowElement
|
|
471
|
+
include Value
|
|
472
|
+
include Element
|
|
473
|
+
attr_reader :action_id, :options, :confirm, :additional_fields
|
|
474
|
+
end
|
|
475
|
+
OverflowElement.const_set(:WIRE_TYPE, "overflow")
|
|
476
|
+
OverflowElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "options", "wire" => "options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => "overflow.options", "required" => true}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
477
|
+
OverflowElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
478
|
+
OverflowElement.singleton_class.prepend(KeywordOnly)
|
|
479
|
+
|
|
480
|
+
class PlainTextInputElement
|
|
481
|
+
include Value
|
|
482
|
+
include Element
|
|
483
|
+
include InputElement
|
|
484
|
+
attr_reader :action_id, :initial_value, :multiline, :min_length, :max_length, :dispatch_action_config, :focus_on_load, :placeholder, :additional_fields
|
|
485
|
+
end
|
|
486
|
+
PlainTextInputElement.const_set(:WIRE_TYPE, "plain_text_input")
|
|
487
|
+
PlainTextInputElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_value", "wire" => "initial_value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "multiline", "wire" => "multiline", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "min_length", "wire" => "min_length", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "plain_text_input.min_length", "required" => false}, {"name" => "max_length", "wire" => "max_length", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "plain_text_input.max_length", "required" => false}, {"name" => "dispatch_action_config", "wire" => "dispatch_action_config", "kind" => "object", "target" => "DispatchActionConfiguration", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "plain_text_input.placeholder", "required" => false}]))
|
|
488
|
+
PlainTextInputElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
489
|
+
PlainTextInputElement.singleton_class.prepend(KeywordOnly)
|
|
490
|
+
|
|
491
|
+
class RadioButtonsElement
|
|
492
|
+
include Value
|
|
493
|
+
include Element
|
|
494
|
+
include InputElement
|
|
495
|
+
attr_reader :action_id, :options, :initial_option, :confirm, :focus_on_load, :additional_fields
|
|
496
|
+
end
|
|
497
|
+
RadioButtonsElement.const_set(:WIRE_TYPE, "radio_buttons")
|
|
498
|
+
RadioButtonsElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "options", "wire" => "options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => "radio_buttons.options", "required" => true}, {"name" => "initial_option", "wire" => "initial_option", "kind" => "object", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
499
|
+
RadioButtonsElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
500
|
+
RadioButtonsElement.singleton_class.prepend(KeywordOnly)
|
|
501
|
+
|
|
502
|
+
class RichTextInputElement
|
|
503
|
+
include Value
|
|
504
|
+
include Element
|
|
505
|
+
include InputElement
|
|
506
|
+
attr_reader :action_id, :initial_value, :dispatch_action_config, :focus_on_load, :placeholder, :min_lines, :max_lines, :additional_fields
|
|
507
|
+
end
|
|
508
|
+
RichTextInputElement.const_set(:WIRE_TYPE, "rich_text_input")
|
|
509
|
+
RichTextInputElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => true}, {"name" => "initial_value", "wire" => "initial_value", "kind" => "object", "target" => "RichTextBlock", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "dispatch_action_config", "wire" => "dispatch_action_config", "kind" => "object", "target" => "DispatchActionConfiguration", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "rich_text_input.placeholder", "required" => false}, {"name" => "min_lines", "wire" => "min_lines", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "rich_text_input.min_lines", "required" => false}, {"name" => "max_lines", "wire" => "max_lines", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "rich_text_input.max_lines", "required" => false}]))
|
|
510
|
+
RichTextInputElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
511
|
+
RichTextInputElement.singleton_class.prepend(KeywordOnly)
|
|
512
|
+
|
|
513
|
+
class StaticMultiSelectElement
|
|
514
|
+
include Value
|
|
515
|
+
include Element
|
|
516
|
+
include InputElement
|
|
517
|
+
attr_reader :action_id, :options, :option_groups, :initial_options, :confirm, :max_selected_items, :focus_on_load, :placeholder, :additional_fields
|
|
518
|
+
end
|
|
519
|
+
StaticMultiSelectElement.const_set(:WIRE_TYPE, "multi_static_select")
|
|
520
|
+
StaticMultiSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "options", "wire" => "options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => "select.options", "required" => false}, {"name" => "option_groups", "wire" => "option_groups", "kind" => "list", "target" => "OptionGroup", "coerce" => nil, "flags" => nil, "limits" => "select.option_groups", "required" => false}, {"name" => "initial_options", "wire" => "initial_options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "max_selected_items", "wire" => "max_selected_items", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "multi_select.max_selected_items", "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
521
|
+
StaticMultiSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
522
|
+
StaticMultiSelectElement.singleton_class.prepend(KeywordOnly)
|
|
523
|
+
|
|
524
|
+
class StaticSelectElement
|
|
525
|
+
include Value
|
|
526
|
+
include Element
|
|
527
|
+
include InputElement
|
|
528
|
+
attr_reader :action_id, :options, :option_groups, :initial_option, :confirm, :focus_on_load, :placeholder, :additional_fields
|
|
529
|
+
end
|
|
530
|
+
StaticSelectElement.const_set(:WIRE_TYPE, "static_select")
|
|
531
|
+
StaticSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "options", "wire" => "options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => "select.options", "required" => false}, {"name" => "option_groups", "wire" => "option_groups", "kind" => "list", "target" => "OptionGroup", "coerce" => nil, "flags" => nil, "limits" => "select.option_groups", "required" => false}, {"name" => "initial_option", "wire" => "initial_option", "kind" => "object", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
532
|
+
StaticSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
533
|
+
StaticSelectElement.singleton_class.prepend(KeywordOnly)
|
|
534
|
+
|
|
535
|
+
class TimePickerElement
|
|
536
|
+
include Value
|
|
537
|
+
include Element
|
|
538
|
+
include InputElement
|
|
539
|
+
attr_reader :action_id, :initial_time, :timezone, :confirm, :focus_on_load, :placeholder, :additional_fields
|
|
540
|
+
end
|
|
541
|
+
TimePickerElement.const_set(:WIRE_TYPE, "timepicker")
|
|
542
|
+
TimePickerElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_time", "wire" => "initial_time", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "timezone", "wire" => "timezone", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "time_picker.placeholder", "required" => false}]))
|
|
543
|
+
TimePickerElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
544
|
+
TimePickerElement.singleton_class.prepend(KeywordOnly)
|
|
545
|
+
|
|
546
|
+
class UrlInputElement
|
|
547
|
+
include Value
|
|
548
|
+
include Element
|
|
549
|
+
include InputElement
|
|
550
|
+
attr_reader :action_id, :initial_value, :dispatch_action_config, :focus_on_load, :placeholder, :additional_fields
|
|
551
|
+
end
|
|
552
|
+
UrlInputElement.const_set(:WIRE_TYPE, "url_text_input")
|
|
553
|
+
UrlInputElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_value", "wire" => "initial_value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "dispatch_action_config", "wire" => "dispatch_action_config", "kind" => "object", "target" => "DispatchActionConfiguration", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "url_input.placeholder", "required" => false}]))
|
|
554
|
+
UrlInputElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
555
|
+
UrlInputElement.singleton_class.prepend(KeywordOnly)
|
|
556
|
+
|
|
557
|
+
class UserMultiSelectElement
|
|
558
|
+
include Value
|
|
559
|
+
include Element
|
|
560
|
+
include InputElement
|
|
561
|
+
attr_reader :action_id, :initial_users, :confirm, :max_selected_items, :focus_on_load, :placeholder, :additional_fields
|
|
562
|
+
end
|
|
563
|
+
UserMultiSelectElement.const_set(:WIRE_TYPE, "multi_users_select")
|
|
564
|
+
UserMultiSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_users", "wire" => "initial_users", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "max_selected_items", "wire" => "max_selected_items", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "multi_select.max_selected_items", "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
565
|
+
UserMultiSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
566
|
+
UserMultiSelectElement.singleton_class.prepend(KeywordOnly)
|
|
567
|
+
|
|
568
|
+
class UserSelectElement
|
|
569
|
+
include Value
|
|
570
|
+
include Element
|
|
571
|
+
include InputElement
|
|
572
|
+
attr_reader :action_id, :initial_user, :confirm, :focus_on_load, :placeholder, :additional_fields
|
|
573
|
+
end
|
|
574
|
+
UserSelectElement.const_set(:WIRE_TYPE, "users_select")
|
|
575
|
+
UserSelectElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => false}, {"name" => "initial_user", "wire" => "initial_user", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "focus_on_load", "wire" => "focus_on_load", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "placeholder", "wire" => "placeholder", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "select.placeholder", "required" => false}]))
|
|
576
|
+
UserSelectElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
577
|
+
UserSelectElement.singleton_class.prepend(KeywordOnly)
|
|
578
|
+
|
|
579
|
+
class WorkflowButtonElement
|
|
580
|
+
include Value
|
|
581
|
+
include Element
|
|
582
|
+
attr_reader :text, :workflow, :action_id, :confirm, :style, :accessibility_label, :additional_fields
|
|
583
|
+
end
|
|
584
|
+
WorkflowButtonElement.const_set(:WIRE_TYPE, "workflow_button")
|
|
585
|
+
WorkflowButtonElement.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "workflow_button.text", "required" => true}, {"name" => "workflow", "wire" => "workflow", "kind" => "object", "target" => "Workflow", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "action_id", "wire" => "action_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "action_id", "required" => true}, {"name" => "confirm", "wire" => "confirm", "kind" => "object", "target" => "Confirmation", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "style", "wire" => "style", "kind" => "enum", "target" => "ButtonStyle", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "accessibility_label", "wire" => "accessibility_label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "workflow_button.accessibility_label", "required" => false}]))
|
|
586
|
+
WorkflowButtonElement.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
587
|
+
WorkflowButtonElement.singleton_class.prepend(KeywordOnly)
|
|
588
|
+
|
|
589
|
+
class AreaChart
|
|
590
|
+
include Value
|
|
591
|
+
include Chart
|
|
592
|
+
attr_reader :series, :axis_config, :additional_fields
|
|
593
|
+
end
|
|
594
|
+
AreaChart.const_set(:WIRE_TYPE, "area")
|
|
595
|
+
AreaChart.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "series", "wire" => "series", "kind" => "list", "target" => "DataSeries", "coerce" => nil, "flags" => nil, "limits" => "data_visualization.series", "required" => true}, {"name" => "axis_config", "wire" => "axis_config", "kind" => "object", "target" => "AxisConfig", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
596
|
+
AreaChart.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
597
|
+
AreaChart.singleton_class.prepend(KeywordOnly)
|
|
598
|
+
|
|
599
|
+
class AxisConfig
|
|
600
|
+
include Value
|
|
601
|
+
attr_reader :categories, :x_label, :y_label, :additional_fields
|
|
602
|
+
end
|
|
603
|
+
AxisConfig.const_set(:WIRE_TYPE, "")
|
|
604
|
+
AxisConfig.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "categories", "wire" => "categories", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_visualization.categories", "required" => true}, {"name" => "x_label", "wire" => "x_label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_visualization.axis_label", "required" => false}, {"name" => "y_label", "wire" => "y_label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_visualization.axis_label", "required" => false}]))
|
|
605
|
+
AxisConfig.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
606
|
+
AxisConfig.singleton_class.prepend(KeywordOnly)
|
|
607
|
+
|
|
608
|
+
class BarChart
|
|
609
|
+
include Value
|
|
610
|
+
include Chart
|
|
611
|
+
attr_reader :series, :axis_config, :additional_fields
|
|
612
|
+
end
|
|
613
|
+
BarChart.const_set(:WIRE_TYPE, "bar")
|
|
614
|
+
BarChart.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "series", "wire" => "series", "kind" => "list", "target" => "DataSeries", "coerce" => nil, "flags" => nil, "limits" => "data_visualization.series", "required" => true}, {"name" => "axis_config", "wire" => "axis_config", "kind" => "object", "target" => "AxisConfig", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
615
|
+
BarChart.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
616
|
+
BarChart.singleton_class.prepend(KeywordOnly)
|
|
617
|
+
|
|
618
|
+
class ChartSegment
|
|
619
|
+
include Value
|
|
620
|
+
attr_reader :label, :value, :additional_fields
|
|
621
|
+
end
|
|
622
|
+
ChartSegment.const_set(:WIRE_TYPE, "")
|
|
623
|
+
ChartSegment.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "label", "wire" => "label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_visualization.segment.label", "required" => true}, {"name" => "value", "wire" => "value", "kind" => "number", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
624
|
+
ChartSegment.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
625
|
+
ChartSegment.singleton_class.prepend(KeywordOnly)
|
|
626
|
+
|
|
627
|
+
class ColumnSettings
|
|
628
|
+
include Value
|
|
629
|
+
attr_reader :align, :is_wrapped, :additional_fields
|
|
630
|
+
end
|
|
631
|
+
ColumnSettings.const_set(:WIRE_TYPE, "")
|
|
632
|
+
ColumnSettings.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "align", "wire" => "align", "kind" => "enum", "target" => "ColumnAlign", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "is_wrapped", "wire" => "is_wrapped", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
633
|
+
ColumnSettings.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
634
|
+
ColumnSettings.singleton_class.prepend(KeywordOnly)
|
|
635
|
+
|
|
636
|
+
class Confirmation
|
|
637
|
+
include Value
|
|
638
|
+
attr_reader :title, :text, :confirm, :deny, :style, :additional_fields
|
|
639
|
+
end
|
|
640
|
+
Confirmation.const_set(:WIRE_TYPE, "")
|
|
641
|
+
Confirmation.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "title", "wire" => "title", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "confirmation.title", "required" => true}, {"name" => "text", "wire" => "text", "kind" => "text", "target" => "Text", "coerce" => "mrkdwn", "flags" => nil, "limits" => "confirmation.text", "required" => true}, {"name" => "confirm", "wire" => "confirm", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "confirmation.confirm", "required" => true}, {"name" => "deny", "wire" => "deny", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "confirmation.deny", "required" => true}, {"name" => "style", "wire" => "style", "kind" => "enum", "target" => "ButtonStyle", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
642
|
+
Confirmation.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
643
|
+
Confirmation.singleton_class.prepend(KeywordOnly)
|
|
644
|
+
|
|
645
|
+
class ConversationFilter
|
|
646
|
+
include Value
|
|
647
|
+
attr_reader :include, :exclude_external_shared_channels, :exclude_bot_users, :additional_fields
|
|
648
|
+
end
|
|
649
|
+
ConversationFilter.const_set(:WIRE_TYPE, "")
|
|
650
|
+
ConversationFilter.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "include", "wire" => "include", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "conversation_filter.include", "required" => false}, {"name" => "exclude_external_shared_channels", "wire" => "exclude_external_shared_channels", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "exclude_bot_users", "wire" => "exclude_bot_users", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
651
|
+
ConversationFilter.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
652
|
+
ConversationFilter.singleton_class.prepend(KeywordOnly)
|
|
653
|
+
|
|
654
|
+
class DataPoint
|
|
655
|
+
include Value
|
|
656
|
+
attr_reader :label, :value, :additional_fields
|
|
657
|
+
end
|
|
658
|
+
DataPoint.const_set(:WIRE_TYPE, "")
|
|
659
|
+
DataPoint.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "label", "wire" => "label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_visualization.point_label", "required" => true}, {"name" => "value", "wire" => "value", "kind" => "number", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
660
|
+
DataPoint.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
661
|
+
DataPoint.singleton_class.prepend(KeywordOnly)
|
|
662
|
+
|
|
663
|
+
class DataSeries
|
|
664
|
+
include Value
|
|
665
|
+
attr_reader :name, :data, :additional_fields
|
|
666
|
+
end
|
|
667
|
+
DataSeries.const_set(:WIRE_TYPE, "")
|
|
668
|
+
DataSeries.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "name", "wire" => "name", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "data_visualization.series_name", "required" => true}, {"name" => "data", "wire" => "data", "kind" => "list", "target" => "DataPoint", "coerce" => nil, "flags" => nil, "limits" => "data_visualization.data", "required" => true}]))
|
|
669
|
+
DataSeries.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
670
|
+
DataSeries.singleton_class.prepend(KeywordOnly)
|
|
671
|
+
|
|
672
|
+
class DispatchActionConfiguration
|
|
673
|
+
include Value
|
|
674
|
+
attr_reader :trigger_actions_on, :additional_fields
|
|
675
|
+
end
|
|
676
|
+
DispatchActionConfiguration.const_set(:WIRE_TYPE, "")
|
|
677
|
+
DispatchActionConfiguration.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "trigger_actions_on", "wire" => "trigger_actions_on", "kind" => "stringList", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "dispatch_action_configuration.trigger_actions_on", "required" => false}]))
|
|
678
|
+
DispatchActionConfiguration.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
679
|
+
DispatchActionConfiguration.singleton_class.prepend(KeywordOnly)
|
|
680
|
+
|
|
681
|
+
class FeedbackButton
|
|
682
|
+
include Value
|
|
683
|
+
attr_reader :text, :value, :accessibility_label, :additional_fields
|
|
684
|
+
end
|
|
685
|
+
FeedbackButton.const_set(:WIRE_TYPE, "")
|
|
686
|
+
FeedbackButton.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "feedback_button.text", "required" => true}, {"name" => "value", "wire" => "value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "feedback_button.value", "required" => true}, {"name" => "accessibility_label", "wire" => "accessibility_label", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "feedback_button.accessibility_label", "required" => false}]))
|
|
687
|
+
FeedbackButton.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
688
|
+
FeedbackButton.singleton_class.prepend(KeywordOnly)
|
|
689
|
+
|
|
690
|
+
class InputParameter
|
|
691
|
+
include Value
|
|
692
|
+
attr_reader :name, :value, :additional_fields
|
|
693
|
+
end
|
|
694
|
+
InputParameter.const_set(:WIRE_TYPE, "")
|
|
695
|
+
InputParameter.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "name", "wire" => "name", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "value", "wire" => "value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
696
|
+
InputParameter.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
697
|
+
InputParameter.singleton_class.prepend(KeywordOnly)
|
|
698
|
+
|
|
699
|
+
class LineChart
|
|
700
|
+
include Value
|
|
701
|
+
include Chart
|
|
702
|
+
attr_reader :series, :axis_config, :additional_fields
|
|
703
|
+
end
|
|
704
|
+
LineChart.const_set(:WIRE_TYPE, "line")
|
|
705
|
+
LineChart.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "series", "wire" => "series", "kind" => "list", "target" => "DataSeries", "coerce" => nil, "flags" => nil, "limits" => "data_visualization.series", "required" => true}, {"name" => "axis_config", "wire" => "axis_config", "kind" => "object", "target" => "AxisConfig", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
706
|
+
LineChart.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
707
|
+
LineChart.singleton_class.prepend(KeywordOnly)
|
|
708
|
+
|
|
709
|
+
class MarkdownText
|
|
710
|
+
include Value
|
|
711
|
+
include ContextElement
|
|
712
|
+
include Text
|
|
713
|
+
attr_reader :text, :verbatim, :additional_fields
|
|
714
|
+
end
|
|
715
|
+
MarkdownText.const_set(:WIRE_TYPE, "mrkdwn")
|
|
716
|
+
MarkdownText.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "verbatim", "wire" => "verbatim", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
717
|
+
MarkdownText.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
718
|
+
MarkdownText.singleton_class.prepend(KeywordOnly)
|
|
719
|
+
|
|
720
|
+
class Option
|
|
721
|
+
include Value
|
|
722
|
+
attr_reader :text, :value, :description, :url, :additional_fields
|
|
723
|
+
end
|
|
724
|
+
Option.const_set(:WIRE_TYPE, "")
|
|
725
|
+
Option.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "text", "target" => "Text", "coerce" => "plain_text", "flags" => nil, "limits" => "option.text", "required" => true}, {"name" => "value", "wire" => "value", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "option.value", "required" => true}, {"name" => "description", "wire" => "description", "kind" => "text", "target" => "Text", "coerce" => "plain_text", "flags" => nil, "limits" => "option.description", "required" => false}, {"name" => "url", "wire" => "url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "option.url", "required" => false}]))
|
|
726
|
+
Option.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
727
|
+
Option.singleton_class.prepend(KeywordOnly)
|
|
728
|
+
|
|
729
|
+
class OptionGroup
|
|
730
|
+
include Value
|
|
731
|
+
attr_reader :label, :options, :additional_fields
|
|
732
|
+
end
|
|
733
|
+
OptionGroup.const_set(:WIRE_TYPE, "")
|
|
734
|
+
OptionGroup.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "label", "wire" => "label", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "option_group.label", "required" => true}, {"name" => "options", "wire" => "options", "kind" => "list", "target" => "Option", "coerce" => nil, "flags" => nil, "limits" => "option_group.options", "required" => true}]))
|
|
735
|
+
OptionGroup.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
736
|
+
OptionGroup.singleton_class.prepend(KeywordOnly)
|
|
737
|
+
|
|
738
|
+
class PieChart
|
|
739
|
+
include Value
|
|
740
|
+
include Chart
|
|
741
|
+
attr_reader :segments, :additional_fields
|
|
742
|
+
end
|
|
743
|
+
PieChart.const_set(:WIRE_TYPE, "pie")
|
|
744
|
+
PieChart.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "segments", "wire" => "segments", "kind" => "list", "target" => "ChartSegment", "coerce" => nil, "flags" => nil, "limits" => "data_visualization.segments", "required" => true}]))
|
|
745
|
+
PieChart.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
746
|
+
PieChart.singleton_class.prepend(KeywordOnly)
|
|
747
|
+
|
|
748
|
+
class PlainText
|
|
749
|
+
include Value
|
|
750
|
+
include ContextElement
|
|
751
|
+
include Text
|
|
752
|
+
attr_reader :text, :emoji, :additional_fields
|
|
753
|
+
end
|
|
754
|
+
PlainText.const_set(:WIRE_TYPE, "plain_text")
|
|
755
|
+
PlainText.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "emoji", "wire" => "emoji", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
756
|
+
PlainText.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
757
|
+
PlainText.singleton_class.prepend(KeywordOnly)
|
|
758
|
+
|
|
759
|
+
class RawNumber
|
|
760
|
+
include Value
|
|
761
|
+
include DataTableCell
|
|
762
|
+
attr_reader :value, :text, :additional_fields
|
|
763
|
+
end
|
|
764
|
+
RawNumber.const_set(:WIRE_TYPE, "raw_number")
|
|
765
|
+
RawNumber.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "value", "wire" => "value", "kind" => "number", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
766
|
+
RawNumber.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
767
|
+
RawNumber.singleton_class.prepend(KeywordOnly)
|
|
768
|
+
|
|
769
|
+
class RawText
|
|
770
|
+
include Value
|
|
771
|
+
include DataTableCell
|
|
772
|
+
include TableCell
|
|
773
|
+
attr_reader :text, :additional_fields
|
|
774
|
+
end
|
|
775
|
+
RawText.const_set(:WIRE_TYPE, "raw_text")
|
|
776
|
+
RawText.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
777
|
+
RawText.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
778
|
+
RawText.singleton_class.prepend(KeywordOnly)
|
|
779
|
+
|
|
780
|
+
class RichTextChannel
|
|
781
|
+
include Value
|
|
782
|
+
include RichTextSectionElement
|
|
783
|
+
attr_reader :channel_id, :style, :additional_fields
|
|
784
|
+
end
|
|
785
|
+
RichTextChannel.const_set(:WIRE_TYPE, "channel")
|
|
786
|
+
RichTextChannel.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "channel_id", "wire" => "channel_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "style", "wire" => "style", "kind" => "style", "target" => nil, "coerce" => nil, "flags" => ["bold", "italic", "strike", "highlight", "client_highlight", "unlink"], "limits" => nil, "required" => false}]))
|
|
787
|
+
RichTextChannel.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
788
|
+
RichTextChannel.singleton_class.prepend(KeywordOnly)
|
|
789
|
+
|
|
790
|
+
class RichTextCodeBlock
|
|
791
|
+
include Value
|
|
792
|
+
include RichTextBlockElement
|
|
793
|
+
attr_reader :elements, :border, :additional_fields
|
|
794
|
+
end
|
|
795
|
+
RichTextCodeBlock.const_set(:WIRE_TYPE, "rich_text_preformatted")
|
|
796
|
+
RichTextCodeBlock.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "RichTextSectionElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "border", "wire" => "border", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "rich_text_preformatted.border", "required" => false}]))
|
|
797
|
+
RichTextCodeBlock.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
798
|
+
RichTextCodeBlock.singleton_class.prepend(KeywordOnly)
|
|
799
|
+
|
|
800
|
+
class RichTextEmoji
|
|
801
|
+
include Value
|
|
802
|
+
include RichTextSectionElement
|
|
803
|
+
attr_reader :name, :skin_tone, :additional_fields
|
|
804
|
+
end
|
|
805
|
+
RichTextEmoji.const_set(:WIRE_TYPE, "emoji")
|
|
806
|
+
RichTextEmoji.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "name", "wire" => "name", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "skin_tone", "wire" => "skin_tone", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
807
|
+
RichTextEmoji.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
808
|
+
RichTextEmoji.singleton_class.prepend(KeywordOnly)
|
|
809
|
+
|
|
810
|
+
class RichTextLink
|
|
811
|
+
include Value
|
|
812
|
+
include RichTextSectionElement
|
|
813
|
+
attr_reader :url, :text, :style, :unsafe, :additional_fields
|
|
814
|
+
end
|
|
815
|
+
RichTextLink.const_set(:WIRE_TYPE, "link")
|
|
816
|
+
RichTextLink.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "url", "wire" => "url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "style", "wire" => "style", "kind" => "style", "target" => nil, "coerce" => nil, "flags" => ["bold", "italic", "strike", "code"], "limits" => nil, "required" => false}, {"name" => "unsafe", "wire" => "unsafe", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
817
|
+
RichTextLink.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
818
|
+
RichTextLink.singleton_class.prepend(KeywordOnly)
|
|
819
|
+
|
|
820
|
+
class RichTextList
|
|
821
|
+
include Value
|
|
822
|
+
include RichTextBlockElement
|
|
823
|
+
attr_reader :style, :elements, :indent, :offset, :border, :additional_fields
|
|
824
|
+
end
|
|
825
|
+
RichTextList.const_set(:WIRE_TYPE, "rich_text_list")
|
|
826
|
+
RichTextList.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "style", "wire" => "style", "kind" => "enum", "target" => "RichTextListStyle", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "RichTextSection", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "indent", "wire" => "indent", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "rich_text_list.indent", "required" => false}, {"name" => "offset", "wire" => "offset", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "rich_text_list.offset", "required" => false}, {"name" => "border", "wire" => "border", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "rich_text_list.border", "required" => false}]))
|
|
827
|
+
RichTextList.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
828
|
+
RichTextList.singleton_class.prepend(KeywordOnly)
|
|
829
|
+
|
|
830
|
+
class RichTextQuote
|
|
831
|
+
include Value
|
|
832
|
+
include RichTextBlockElement
|
|
833
|
+
attr_reader :elements, :border, :additional_fields
|
|
834
|
+
end
|
|
835
|
+
RichTextQuote.const_set(:WIRE_TYPE, "rich_text_quote")
|
|
836
|
+
RichTextQuote.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "RichTextSectionElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "border", "wire" => "border", "kind" => "int", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "rich_text_quote.border", "required" => false}]))
|
|
837
|
+
RichTextQuote.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
838
|
+
RichTextQuote.singleton_class.prepend(KeywordOnly)
|
|
839
|
+
|
|
840
|
+
class RichTextSection
|
|
841
|
+
include Value
|
|
842
|
+
include RichTextBlockElement
|
|
843
|
+
attr_reader :elements, :additional_fields
|
|
844
|
+
end
|
|
845
|
+
RichTextSection.const_set(:WIRE_TYPE, "rich_text_section")
|
|
846
|
+
RichTextSection.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "elements", "wire" => "elements", "kind" => "list", "target" => "RichTextSectionElement", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
847
|
+
RichTextSection.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
848
|
+
RichTextSection.singleton_class.prepend(KeywordOnly)
|
|
849
|
+
|
|
850
|
+
class RichTextText
|
|
851
|
+
include Value
|
|
852
|
+
include RichTextSectionElement
|
|
853
|
+
attr_reader :text, :style, :additional_fields
|
|
854
|
+
end
|
|
855
|
+
RichTextText.const_set(:WIRE_TYPE, "text")
|
|
856
|
+
RichTextText.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "style", "wire" => "style", "kind" => "style", "target" => nil, "coerce" => nil, "flags" => ["bold", "italic", "strike", "code"], "limits" => nil, "required" => false}]))
|
|
857
|
+
RichTextText.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
858
|
+
RichTextText.singleton_class.prepend(KeywordOnly)
|
|
859
|
+
|
|
860
|
+
class RichTextUser
|
|
861
|
+
include Value
|
|
862
|
+
include RichTextSectionElement
|
|
863
|
+
attr_reader :user_id, :style, :additional_fields
|
|
864
|
+
end
|
|
865
|
+
RichTextUser.const_set(:WIRE_TYPE, "user")
|
|
866
|
+
RichTextUser.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "user_id", "wire" => "user_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "style", "wire" => "style", "kind" => "style", "target" => nil, "coerce" => nil, "flags" => ["bold", "italic", "strike", "highlight", "client_highlight", "unlink"], "limits" => nil, "required" => false}]))
|
|
867
|
+
RichTextUser.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
868
|
+
RichTextUser.singleton_class.prepend(KeywordOnly)
|
|
869
|
+
|
|
870
|
+
class RichTextUserGroup
|
|
871
|
+
include Value
|
|
872
|
+
include RichTextSectionElement
|
|
873
|
+
attr_reader :user_group_id, :style, :additional_fields
|
|
874
|
+
end
|
|
875
|
+
RichTextUserGroup.const_set(:WIRE_TYPE, "usergroup")
|
|
876
|
+
RichTextUserGroup.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "user_group_id", "wire" => "usergroup_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "style", "wire" => "style", "kind" => "style", "target" => nil, "coerce" => nil, "flags" => ["bold", "italic", "strike", "highlight", "client_highlight", "unlink"], "limits" => nil, "required" => false}]))
|
|
877
|
+
RichTextUserGroup.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
878
|
+
RichTextUserGroup.singleton_class.prepend(KeywordOnly)
|
|
879
|
+
|
|
880
|
+
class SlackFile
|
|
881
|
+
include Value
|
|
882
|
+
attr_reader :id, :url, :additional_fields
|
|
883
|
+
end
|
|
884
|
+
SlackFile.const_set(:WIRE_TYPE, "")
|
|
885
|
+
SlackFile.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "id", "wire" => "id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "url", "wire" => "url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
886
|
+
SlackFile.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
887
|
+
SlackFile.singleton_class.prepend(KeywordOnly)
|
|
888
|
+
|
|
889
|
+
class SlackIcon
|
|
890
|
+
include Value
|
|
891
|
+
attr_reader :name, :additional_fields
|
|
892
|
+
end
|
|
893
|
+
SlackIcon.const_set(:WIRE_TYPE, "icon")
|
|
894
|
+
SlackIcon.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "name", "wire" => "name", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
895
|
+
SlackIcon.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
896
|
+
SlackIcon.singleton_class.prepend(KeywordOnly)
|
|
897
|
+
|
|
898
|
+
class Trigger
|
|
899
|
+
include Value
|
|
900
|
+
attr_reader :url, :customizable_input_parameters, :additional_fields
|
|
901
|
+
end
|
|
902
|
+
Trigger.const_set(:WIRE_TYPE, "")
|
|
903
|
+
Trigger.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "url", "wire" => "url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "customizable_input_parameters", "wire" => "customizable_input_parameters", "kind" => "list", "target" => "InputParameter", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
904
|
+
Trigger.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
905
|
+
Trigger.singleton_class.prepend(KeywordOnly)
|
|
906
|
+
|
|
907
|
+
class UrlSource
|
|
908
|
+
include Value
|
|
909
|
+
attr_reader :url, :text, :additional_fields
|
|
910
|
+
end
|
|
911
|
+
UrlSource.const_set(:WIRE_TYPE, "url")
|
|
912
|
+
UrlSource.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "url", "wire" => "url", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
913
|
+
UrlSource.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
914
|
+
UrlSource.singleton_class.prepend(KeywordOnly)
|
|
915
|
+
|
|
916
|
+
class Workflow
|
|
917
|
+
include Value
|
|
918
|
+
attr_reader :trigger, :additional_fields
|
|
919
|
+
end
|
|
920
|
+
Workflow.const_set(:WIRE_TYPE, "")
|
|
921
|
+
Workflow.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "trigger", "wire" => "trigger", "kind" => "object", "target" => "Trigger", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}]))
|
|
922
|
+
Workflow.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
923
|
+
Workflow.singleton_class.prepend(KeywordOnly)
|
|
924
|
+
|
|
925
|
+
class Attachment
|
|
926
|
+
include Value
|
|
927
|
+
attr_reader :blocks, :color, :fallback, :additional_fields
|
|
928
|
+
end
|
|
929
|
+
Attachment.const_set(:WIRE_TYPE, "")
|
|
930
|
+
Attachment.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "blocks", "wire" => "blocks", "kind" => "list", "target" => "Block", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => true}, {"name" => "color", "wire" => "color", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "fallback", "wire" => "fallback", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
931
|
+
Attachment.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
932
|
+
Attachment.singleton_class.prepend(KeywordOnly)
|
|
933
|
+
|
|
934
|
+
class HomeTabView
|
|
935
|
+
include Value
|
|
936
|
+
attr_reader :blocks, :private_metadata, :callback_id, :external_id, :additional_fields
|
|
937
|
+
end
|
|
938
|
+
HomeTabView.const_set(:WIRE_TYPE, "home")
|
|
939
|
+
HomeTabView.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "blocks", "wire" => "blocks", "kind" => "list", "target" => "Block", "coerce" => nil, "flags" => nil, "limits" => "view.blocks", "required" => true}, {"name" => "private_metadata", "wire" => "private_metadata", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "view.private_metadata", "required" => false}, {"name" => "callback_id", "wire" => "callback_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "view.callback_id", "required" => false}, {"name" => "external_id", "wire" => "external_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "view.external_id", "required" => false}]))
|
|
940
|
+
HomeTabView.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
941
|
+
HomeTabView.singleton_class.prepend(KeywordOnly)
|
|
942
|
+
|
|
943
|
+
class MessagePayload
|
|
944
|
+
include Value
|
|
945
|
+
attr_reader :channel, :blocks, :attachments, :text, :mrkdwn, :unfurl_links, :unfurl_media, :metadata, :additional_fields
|
|
946
|
+
end
|
|
947
|
+
MessagePayload.const_set(:WIRE_TYPE, "")
|
|
948
|
+
MessagePayload.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "channel", "wire" => "channel", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "message.channel", "required" => true}, {"name" => "blocks", "wire" => "blocks", "kind" => "list", "target" => "Block", "coerce" => nil, "flags" => nil, "limits" => "message.blocks", "required" => false}, {"name" => "attachments", "wire" => "attachments", "kind" => "list", "target" => "Attachment", "coerce" => nil, "flags" => nil, "limits" => "message.attachments", "required" => false}, {"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "mrkdwn", "wire" => "mrkdwn", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "unfurl_links", "wire" => "unfurl_links", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "unfurl_media", "wire" => "unfurl_media", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "metadata", "wire" => "metadata", "kind" => "map", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
949
|
+
MessagePayload.const_set(:DEFAULTS, Value.deep_freeze({"mrkdwn" => true, "text" => ""}))
|
|
950
|
+
MessagePayload.singleton_class.prepend(KeywordOnly)
|
|
951
|
+
|
|
952
|
+
class MessageResponse
|
|
953
|
+
include Value
|
|
954
|
+
attr_reader :blocks, :attachments, :text, :mrkdwn, :replace_original, :response_type, :additional_fields
|
|
955
|
+
end
|
|
956
|
+
MessageResponse.const_set(:WIRE_TYPE, "")
|
|
957
|
+
MessageResponse.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "blocks", "wire" => "blocks", "kind" => "list", "target" => "Block", "coerce" => nil, "flags" => nil, "limits" => "message.blocks", "required" => false}, {"name" => "attachments", "wire" => "attachments", "kind" => "list", "target" => "Attachment", "coerce" => nil, "flags" => nil, "limits" => "message.attachments", "required" => false}, {"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "mrkdwn", "wire" => "mrkdwn", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "replace_original", "wire" => "replace_original", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "response_type", "wire" => "response_type", "kind" => "enum", "target" => "ResponseType", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
958
|
+
MessageResponse.const_set(:DEFAULTS, Value.deep_freeze({"mrkdwn" => true, "text" => "", "replace_original" => false, "response_type" => "in_channel"}))
|
|
959
|
+
MessageResponse.singleton_class.prepend(KeywordOnly)
|
|
960
|
+
|
|
961
|
+
class ModalView
|
|
962
|
+
include Value
|
|
963
|
+
attr_reader :title, :blocks, :close, :submit, :private_metadata, :callback_id, :clear_on_close, :notify_on_close, :external_id, :submit_disabled, :additional_fields
|
|
964
|
+
end
|
|
965
|
+
ModalView.const_set(:WIRE_TYPE, "modal")
|
|
966
|
+
ModalView.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "title", "wire" => "title", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "view.title", "required" => true}, {"name" => "blocks", "wire" => "blocks", "kind" => "list", "target" => "Block", "coerce" => nil, "flags" => nil, "limits" => "view.blocks", "required" => true}, {"name" => "close", "wire" => "close", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "view.close", "required" => false}, {"name" => "submit", "wire" => "submit", "kind" => "text", "target" => "PlainText", "coerce" => "plain_text", "flags" => nil, "limits" => "view.submit", "required" => false}, {"name" => "private_metadata", "wire" => "private_metadata", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "view.private_metadata", "required" => false}, {"name" => "callback_id", "wire" => "callback_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "view.callback_id", "required" => false}, {"name" => "clear_on_close", "wire" => "clear_on_close", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "notify_on_close", "wire" => "notify_on_close", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "external_id", "wire" => "external_id", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => "view.external_id", "required" => false}, {"name" => "submit_disabled", "wire" => "submit_disabled", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
967
|
+
ModalView.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
968
|
+
ModalView.singleton_class.prepend(KeywordOnly)
|
|
969
|
+
|
|
970
|
+
class WebhookMessage
|
|
971
|
+
include Value
|
|
972
|
+
attr_reader :blocks, :attachments, :text, :response_type, :replace_original, :delete_original, :unfurl_links, :unfurl_media, :metadata, :additional_fields
|
|
973
|
+
end
|
|
974
|
+
WebhookMessage.const_set(:WIRE_TYPE, "")
|
|
975
|
+
WebhookMessage.const_set(:FIELD_SPECS, Value.deep_freeze([{"name" => "blocks", "wire" => "blocks", "kind" => "list", "target" => "Block", "coerce" => nil, "flags" => nil, "limits" => "message.blocks", "required" => false}, {"name" => "attachments", "wire" => "attachments", "kind" => "list", "target" => "Attachment", "coerce" => nil, "flags" => nil, "limits" => "message.attachments", "required" => false}, {"name" => "text", "wire" => "text", "kind" => "string", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "response_type", "wire" => "response_type", "kind" => "enum", "target" => "ResponseType", "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "replace_original", "wire" => "replace_original", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "delete_original", "wire" => "delete_original", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "unfurl_links", "wire" => "unfurl_links", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "unfurl_media", "wire" => "unfurl_media", "kind" => "boolean", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}, {"name" => "metadata", "wire" => "metadata", "kind" => "map", "target" => nil, "coerce" => nil, "flags" => nil, "limits" => nil, "required" => false}]))
|
|
976
|
+
WebhookMessage.const_set(:DEFAULTS, Value.deep_freeze({}))
|
|
977
|
+
WebhookMessage.singleton_class.prepend(KeywordOnly)
|
|
978
|
+
|
|
979
|
+
end
|