@devhelm/sdk 1.1.0 → 1.2.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.
@@ -7,6 +7,13 @@ const pageable = z
7
7
  sort: z.array(z.string()),
8
8
  })
9
9
  .strict();
10
+ const ErrorEntry = z
11
+ .object({
12
+ code: z.string().min(1),
13
+ field: z.string().nullish(),
14
+ message: z.string().min(1),
15
+ })
16
+ .strict();
10
17
  const ErrorResponse = z
11
18
  .object({
12
19
  status: z.number().int(),
@@ -14,6 +21,15 @@ const ErrorResponse = z
14
21
  message: z.string(),
15
22
  timestamp: z.number().int(),
16
23
  requestId: z.string().nullish(),
24
+ errors: z.array(ErrorEntry.nullable()).nullish(),
25
+ })
26
+ .strict();
27
+ const DatadogChannelConfig = z
28
+ .object({
29
+ channelType: z.literal("datadog"),
30
+ apiKey: z.string().min(1),
31
+ site: z.string().nullish(),
32
+ tags: z.string().nullish(),
17
33
  })
18
34
  .strict();
19
35
  const DiscordChannelConfig = z
@@ -29,6 +45,53 @@ const EmailChannelConfig = z
29
45
  recipients: z.array(z.string().email()).min(1),
30
46
  })
31
47
  .strict();
48
+ const GitLabChannelConfig = z
49
+ .object({
50
+ channelType: z.literal("gitlab"),
51
+ endpointUrl: z.string().min(1),
52
+ authorizationKey: z.string().min(1),
53
+ })
54
+ .strict();
55
+ const GoogleChatChannelConfig = z
56
+ .object({
57
+ channelType: z.literal("google_chat"),
58
+ webhookUrl: z.string().min(1),
59
+ })
60
+ .strict();
61
+ const IncidentIoChannelConfig = z
62
+ .object({
63
+ channelType: z.literal("incident_io"),
64
+ apiKey: z.string().min(1),
65
+ severityId: z.string().nullish(),
66
+ visibility: z.string().nullish(),
67
+ })
68
+ .strict();
69
+ const JiraChannelConfig = z
70
+ .object({
71
+ channelType: z.literal("jira"),
72
+ domain: z.string().min(1),
73
+ email: z.string().min(1),
74
+ apiToken: z.string().min(1),
75
+ projectKey: z.string().min(1),
76
+ issueType: z.string().nullish(),
77
+ })
78
+ .strict();
79
+ const LinearChannelConfig = z
80
+ .object({
81
+ channelType: z.literal("linear"),
82
+ apiKey: z.string().min(1),
83
+ teamId: z.string().min(1),
84
+ labelId: z.string().nullish(),
85
+ })
86
+ .strict();
87
+ const MattermostChannelConfig = z
88
+ .object({
89
+ channelType: z.literal("mattermost"),
90
+ webhookUrl: z.string().min(1),
91
+ channel: z.string().nullish(),
92
+ iconUrl: z.string().nullish(),
93
+ })
94
+ .strict();
32
95
  const OpsGenieChannelConfig = z
33
96
  .object({
34
97
  channelType: z.literal("opsgenie"),
@@ -43,6 +106,29 @@ const PagerDutyChannelConfig = z
43
106
  severityOverride: z.string().nullish(),
44
107
  })
45
108
  .strict();
109
+ const PushbulletChannelConfig = z
110
+ .object({
111
+ channelType: z.literal("pushbullet"),
112
+ accessToken: z.string().min(1),
113
+ deviceIden: z.string().nullish(),
114
+ })
115
+ .strict();
116
+ const PushoverChannelConfig = z
117
+ .object({
118
+ channelType: z.literal("pushover"),
119
+ userKey: z.string().min(1),
120
+ appToken: z.string().min(1),
121
+ priority: z.string().nullish(),
122
+ sound: z.string().nullish(),
123
+ })
124
+ .strict();
125
+ const RootlyChannelConfig = z
126
+ .object({
127
+ channelType: z.literal("rootly"),
128
+ apiKey: z.string().min(1),
129
+ severity: z.string().nullish(),
130
+ })
131
+ .strict();
46
132
  const SlackChannelConfig = z
47
133
  .object({
48
134
  channelType: z.literal("slack"),
@@ -50,9 +136,23 @@ const SlackChannelConfig = z
50
136
  mentionText: z.string().nullish(),
51
137
  })
52
138
  .strict();
139
+ const SplunkOnCallChannelConfig = z
140
+ .object({
141
+ channelType: z.literal("splunk_oncall"),
142
+ apiKey: z.string().min(1),
143
+ routingKey: z.string().min(1),
144
+ })
145
+ .strict();
53
146
  const TeamsChannelConfig = z
54
147
  .object({ channelType: z.literal("teams"), webhookUrl: z.string().min(1) })
55
148
  .strict();
149
+ const TelegramChannelConfig = z
150
+ .object({
151
+ channelType: z.literal("telegram"),
152
+ botToken: z.string().min(1),
153
+ chatId: z.string().min(1),
154
+ })
155
+ .strict();
56
156
  const WebhookChannelConfig = z
57
157
  .object({
58
158
  channelType: z.literal("webhook"),
@@ -61,17 +161,33 @@ const WebhookChannelConfig = z
61
161
  customHeaders: z.record(z.string(), z.string().nullable()).nullish(),
62
162
  })
63
163
  .strict();
164
+ const ZapierChannelConfig = z
165
+ .object({ channelType: z.literal("zapier"), webhookUrl: z.string().min(1) })
166
+ .strict();
64
167
  const CreateAlertChannelRequest = z
65
168
  .object({
66
169
  name: z.string().min(0).max(255),
67
170
  config: z.union([
171
+ DatadogChannelConfig,
68
172
  DiscordChannelConfig,
69
173
  EmailChannelConfig,
174
+ GitLabChannelConfig,
175
+ GoogleChatChannelConfig,
176
+ IncidentIoChannelConfig,
177
+ JiraChannelConfig,
178
+ LinearChannelConfig,
179
+ MattermostChannelConfig,
70
180
  OpsGenieChannelConfig,
71
181
  PagerDutyChannelConfig,
182
+ PushbulletChannelConfig,
183
+ PushoverChannelConfig,
184
+ RootlyChannelConfig,
72
185
  SlackChannelConfig,
186
+ SplunkOnCallChannelConfig,
73
187
  TeamsChannelConfig,
188
+ TelegramChannelConfig,
74
189
  WebhookChannelConfig,
190
+ ZapierChannelConfig,
75
191
  ]),
76
192
  managedBy: z
77
193
  .enum(["DASHBOARD", "CLI", "TERRAFORM", "MCP", "API"])
@@ -82,13 +198,26 @@ const UpdateAlertChannelRequest = z
82
198
  .object({
83
199
  name: z.string().min(0).max(255),
84
200
  config: z.union([
201
+ DatadogChannelConfig,
85
202
  DiscordChannelConfig,
86
203
  EmailChannelConfig,
204
+ GitLabChannelConfig,
205
+ GoogleChatChannelConfig,
206
+ IncidentIoChannelConfig,
207
+ JiraChannelConfig,
208
+ LinearChannelConfig,
209
+ MattermostChannelConfig,
87
210
  OpsGenieChannelConfig,
88
211
  PagerDutyChannelConfig,
212
+ PushbulletChannelConfig,
213
+ PushoverChannelConfig,
214
+ RootlyChannelConfig,
89
215
  SlackChannelConfig,
216
+ SplunkOnCallChannelConfig,
90
217
  TeamsChannelConfig,
218
+ TelegramChannelConfig,
91
219
  WebhookChannelConfig,
220
+ ZapierChannelConfig,
92
221
  ]),
93
222
  managedBy: z
94
223
  .enum(["DASHBOARD", "CLI", "TERRAFORM", "MCP", "API"])
@@ -98,13 +227,26 @@ const UpdateAlertChannelRequest = z
98
227
  const TestAlertChannelRequest = z
99
228
  .object({
100
229
  config: z.union([
230
+ DatadogChannelConfig,
101
231
  DiscordChannelConfig,
102
232
  EmailChannelConfig,
233
+ GitLabChannelConfig,
234
+ GoogleChatChannelConfig,
235
+ IncidentIoChannelConfig,
236
+ JiraChannelConfig,
237
+ LinearChannelConfig,
238
+ MattermostChannelConfig,
103
239
  OpsGenieChannelConfig,
104
240
  PagerDutyChannelConfig,
241
+ PushbulletChannelConfig,
242
+ PushoverChannelConfig,
243
+ RootlyChannelConfig,
105
244
  SlackChannelConfig,
245
+ SplunkOnCallChannelConfig,
106
246
  TeamsChannelConfig,
247
+ TelegramChannelConfig,
107
248
  WebhookChannelConfig,
249
+ ZapierChannelConfig,
108
250
  ]),
109
251
  })
110
252
  .strict();
@@ -947,13 +1089,16 @@ const UpdateAlertSensitivityRequest = z
947
1089
  alertSensitivity: z
948
1090
  .string()
949
1091
  .min(1)
950
- .regex(/ALL|INCIDENTS_ONLY|MAJOR_ONLY/),
1092
+ .regex(/ALL|AWARENESS|INCIDENTS_ONLY|MAJOR_ONLY/),
951
1093
  })
952
1094
  .strict();
953
1095
  const ServiceSubscribeRequest = z
954
1096
  .object({
955
1097
  componentId: z.string().uuid().nullable(),
956
- alertSensitivity: z.string().nullable(),
1098
+ alertSensitivity: z
1099
+ .string()
1100
+ .regex(/ALL|AWARENESS|INCIDENTS_ONLY|MAJOR_ONLY/)
1101
+ .nullable(),
957
1102
  })
958
1103
  .partial()
959
1104
  .strict();
@@ -1010,6 +1155,7 @@ const StatusPageBranding = z
1010
1155
  .regex(/^https?:\/\/.*/)
1011
1156
  .nullable(),
1012
1157
  hidePoweredBy: z.boolean().default(false),
1158
+ showSubscribeButton: z.boolean().default(true),
1013
1159
  customCss: z.string().min(0).max(50000).nullable(),
1014
1160
  customHeadHtml: z.string().min(0).max(50000).nullable(),
1015
1161
  })
@@ -1277,6 +1423,16 @@ const AlertChannelDisplayConfig = z
1277
1423
  severityOverride: z.string().nullable(),
1278
1424
  mentionRoleId: z.string().nullable(),
1279
1425
  customHeaders: z.record(z.string(), z.string().nullable()).nullable(),
1426
+ chatId: z.string().nullable(),
1427
+ priority: z.string().nullable(),
1428
+ channel: z.string().nullable(),
1429
+ routingKey: z.string().nullable(),
1430
+ deviceIden: z.string().nullable(),
1431
+ teamId: z.string().nullable(),
1432
+ visibility: z.string().nullable(),
1433
+ severity: z.string().nullable(),
1434
+ site: z.string().nullable(),
1435
+ projectKey: z.string().nullable(),
1280
1436
  })
1281
1437
  .partial()
1282
1438
  .strict();
@@ -1675,6 +1831,7 @@ const ServiceCatalogDto = z
1675
1831
  logoUrl: z.string().nullish(),
1676
1832
  adapterType: z.string(),
1677
1833
  pollingIntervalSeconds: z.number().int(),
1834
+ lifecycleStatus: z.string(),
1678
1835
  enabled: z.boolean(),
1679
1836
  published: z.boolean(),
1680
1837
  overallStatus: z.string().nullish(),
@@ -2394,6 +2551,7 @@ const ServiceDetailDto = z
2394
2551
  logoUrl: z.string().nullish(),
2395
2552
  adapterType: z.string(),
2396
2553
  pollingIntervalSeconds: z.number().int(),
2554
+ lifecycleStatus: z.string(),
2397
2555
  enabled: z.boolean(),
2398
2556
  createdAt: z.string().datetime({ offset: true }),
2399
2557
  updatedAt: z.string().datetime({ offset: true }),
@@ -3160,14 +3318,28 @@ const WebhookEventCatalogResponse = z
3160
3318
  .strict();
3161
3319
  export const schemas = {
3162
3320
  pageable,
3321
+ ErrorEntry,
3163
3322
  ErrorResponse,
3323
+ DatadogChannelConfig,
3164
3324
  DiscordChannelConfig,
3165
3325
  EmailChannelConfig,
3326
+ GitLabChannelConfig,
3327
+ GoogleChatChannelConfig,
3328
+ IncidentIoChannelConfig,
3329
+ JiraChannelConfig,
3330
+ LinearChannelConfig,
3331
+ MattermostChannelConfig,
3166
3332
  OpsGenieChannelConfig,
3167
3333
  PagerDutyChannelConfig,
3334
+ PushbulletChannelConfig,
3335
+ PushoverChannelConfig,
3336
+ RootlyChannelConfig,
3168
3337
  SlackChannelConfig,
3338
+ SplunkOnCallChannelConfig,
3169
3339
  TeamsChannelConfig,
3340
+ TelegramChannelConfig,
3170
3341
  WebhookChannelConfig,
3342
+ ZapierChannelConfig,
3171
3343
  CreateAlertChannelRequest,
3172
3344
  UpdateAlertChannelRequest,
3173
3345
  TestAlertChannelRequest,