@@ -35,6 +35,7 @@ type Integration struct {
35
35
Type string `json:"type"`
36
36
DefaultRoute * DefaultRoute `json:"default_route"`
37
37
Templates * Templates `json:"templates"`
38
+ Labels []* Label `json:"labels"`
38
39
}
39
40
40
41
type DefaultRoute struct {
@@ -83,6 +84,11 @@ type ImageURLTemplate struct {
83
84
ImageURL * string `json:"image_url"`
84
85
}
85
86
87
+ type Label struct {
88
+ Key string `json:"key"`
89
+ Value string `json:"value"`
90
+ }
91
+
86
92
type ListIntegrationOptions struct {
87
93
ListOptions
88
94
}
@@ -136,6 +142,7 @@ type CreateIntegrationOptions struct {
136
142
Type string `json:"type,omitempty"`
137
143
Templates * Templates `json:"templates,omitempty"`
138
144
DefaultRoute * DefaultRoute `json:"default_route,omitempty"`
145
+ Labels []* Label `json:"labels,omitempty"`
139
146
}
140
147
141
148
// CreateIntegration creates integration with type, team_id and optional given name.
@@ -163,6 +170,7 @@ type UpdateIntegrationOptions struct {
163
170
TeamId string `json:"team_id"`
164
171
Templates * Templates `json:"templates,omitempty"`
165
172
DefaultRoute * DefaultRoute `json:"default_route,omitempty"`
173
+ Labels []* Label `json:"labels,omitempty"`
166
174
}
167
175
168
176
// UpdateIntegration updates integration with new templates, name and default route.
0 commit comments