@daocloud-proto/skoala 0.49.0-26 → 0.49.0-4

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.
Files changed (51) hide show
  1. package/alert/v1alpha1/alert.pb.ts +433 -0
  2. package/alert/v1alpha1/inhibition.pb.ts +56 -0
  3. package/alert/v1alpha1/notify.pb.ts +250 -0
  4. package/alert/v1alpha1/silence.pb.ts +85 -0
  5. package/alert/v1alpha1/type.pb.ts +55 -0
  6. package/api/hosted/v1alpha3/ai_gateway.pb.ts +0 -32
  7. package/event/v1alpha1/event.pb.ts +137 -0
  8. package/feature_gate/v1alpha1/feature_gate.pb.ts +31 -0
  9. package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
  10. package/gogoproto/gogo.pb.ts +1 -0
  11. package/google/api/annotations.pb.ts +1 -0
  12. package/google/api/http.pb.ts +34 -0
  13. package/google/api/httpbody.pb.ts +12 -0
  14. package/{api/crds/version.pb.ts → google/protobuf/any.pb.ts} +3 -5
  15. package/google/protobuf/api.pb.ts +32 -0
  16. package/google/protobuf/descriptor.pb.ts +262 -0
  17. package/google/protobuf/duration.pb.ts +9 -0
  18. package/google/protobuf/empty.pb.ts +7 -0
  19. package/google/protobuf/field_mask.pb.ts +8 -0
  20. package/google/protobuf/struct.pb.ts +33 -0
  21. package/google/protobuf/timestamp.pb.ts +9 -0
  22. package/google/protobuf/type.pb.ts +83 -0
  23. package/google/protobuf/wrappers.pb.ts +40 -0
  24. package/google/rpc/status.pb.ts +12 -0
  25. package/graph/v1alpha1/graph.pb.ts +175 -0
  26. package/log/v1alpha1/log.pb.ts +163 -0
  27. package/metric/v1alpha1/metric.pb.ts +116 -0
  28. package/net_flow/v1alpha1/net_flow.pb.ts +8 -0
  29. package/openapi/annotations.pb.ts +1 -0
  30. package/openapi/openapiv2.pb.ts +193 -0
  31. package/overview/v1alpha1/overview.pb.ts +95 -0
  32. package/package.json +3 -3
  33. package/probes/v1alpha1/probe.pb.ts +132 -0
  34. package/resource/v1alpha1/cluster.pb.ts +156 -0
  35. package/resource/v1alpha1/job.pb.ts +113 -0
  36. package/resource/v1alpha1/namespace.pb.ts +43 -0
  37. package/resource/v1alpha1/node.pb.ts +96 -0
  38. package/resource/v1alpha1/pod.pb.ts +112 -0
  39. package/resource/v1alpha1/service.pb.ts +62 -0
  40. package/resource/v1alpha1/type.pb.ts +26 -0
  41. package/resource/v1alpha1/workload.pb.ts +98 -0
  42. package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
  43. package/span_metric/v1alpha1/span_metric.pb.ts +142 -0
  44. package/tracing/v1alpha1/model.pb.ts +95 -0
  45. package/tracing/v1alpha1/query.pb.ts +43 -0
  46. package/tracing/v1alpha1/tracing.pb.ts +64 -0
  47. package/type/v1alpha1/objectmeta.pb.ts +67 -0
  48. package/type/v1alpha1/page.pb.ts +11 -0
  49. package/user/v1alpha1/user.pb.ts +23 -0
  50. package/validate/validate.pb.ts +266 -0
  51. package/api/hosted/v1alpha3/gateway_api.pb.ts +0 -412
@@ -0,0 +1,433 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
8
+ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
9
+ import * as InsightIoApiAlertV1alpha1Notify from "./notify.pb"
10
+ import * as InsightIoApiAlertV1alpha1Type from "./type.pb"
11
+
12
+ export enum ValidateGroupCode {
13
+ ERR_CODE_UNSPECIFIED = "ERR_CODE_UNSPECIFIED",
14
+ ERR_YAML_UNMARSHAL = "ERR_YAML_UNMARSHAL",
15
+ ERR_GROUP_NAME = "ERR_GROUP_NAME",
16
+ ERR_GROUP_RULES = "ERR_GROUP_RULES",
17
+ ERR_GROUP_NAME_DUPLICATED = "ERR_GROUP_NAME_DUPLICATED",
18
+ ERR_RULE = "ERR_RULE",
19
+ ERR_RULE_ALERT = "ERR_RULE_ALERT",
20
+ ERR_RULE_RECORD = "ERR_RULE_RECORD",
21
+ ERR_RULE_FOR = "ERR_RULE_FOR",
22
+ ERR_RULE_EXPR = "ERR_RULE_EXPR",
23
+ ERR_RULE_SEVERITY = "ERR_RULE_SEVERITY",
24
+ ERR_RULE_ANNOTATIONS = "ERR_RULE_ANNOTATIONS",
25
+ ERR_RULE_LABELS = "ERR_RULE_LABELS",
26
+ ERR_RULE_ALERT_DUPLICATED = "ERR_RULE_ALERT_DUPLICATED",
27
+ ERR_RULE_DESCRIPTION = "ERR_RULE_DESCRIPTION",
28
+ }
29
+
30
+ export type ID = {
31
+ id?: string
32
+ }
33
+
34
+ export type ListGroupsRequest = {
35
+ builtin?: boolean
36
+ name?: string
37
+ clusterName?: string
38
+ namespace?: string
39
+ page?: number
40
+ pageSize?: number
41
+ sorts?: string[]
42
+ }
43
+
44
+ export type ListGroupsResponse = {
45
+ items?: GroupSummary[]
46
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
47
+ }
48
+
49
+ export type GroupSummary = {
50
+ id?: string
51
+ name?: string
52
+ builtin?: boolean
53
+ clusterName?: string
54
+ namespace?: string
55
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
56
+ targets?: string[]
57
+ groupRuleStatus?: groupRuleStatus[]
58
+ description?: string
59
+ createAt?: string
60
+ updateAt?: string
61
+ }
62
+
63
+ export type groupRuleStatus = {
64
+ status?: InsightIoApiAlertV1alpha1Type.RuleStatus
65
+ count?: number
66
+ }
67
+
68
+ export type CreateGroupRequest = {
69
+ name?: string
70
+ description?: string
71
+ clusterName?: string
72
+ namespace?: string
73
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
74
+ targets?: string[]
75
+ rules?: CreateGroupRule[]
76
+ notificationTemplate?: string
77
+ receivers?: groupReceiver[]
78
+ notifyRepeatConfig?: repeatConfig[]
79
+ }
80
+
81
+ export type repeatConfig = {
82
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
83
+ interval?: number
84
+ }
85
+
86
+ export type groupReceiver = {
87
+ type?: InsightIoApiAlertV1alpha1Notify.ReceiverType
88
+ names?: string[]
89
+ }
90
+
91
+ export type Group = {
92
+ id?: string
93
+ name?: string
94
+ builtin?: boolean
95
+ clusterName?: string
96
+ namespace?: string
97
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
98
+ targets?: string[]
99
+ description?: string
100
+ notificationTemplate?: string
101
+ receivers?: groupReceiver[]
102
+ notifyRepeatConfig?: repeatConfig[]
103
+ createAt?: string
104
+ updateAt?: string
105
+ }
106
+
107
+ export type ValidateGroupRequest = {
108
+ yamlString?: string
109
+ clusterName?: string
110
+ namespace?: string
111
+ }
112
+
113
+ export type ValidateGroupError = {
114
+ code?: ValidateGroupCode
115
+ message?: string
116
+ }
117
+
118
+ export type ValidateGroupResponse = {
119
+ valid?: boolean
120
+ errors?: ValidateGroupError[]
121
+ params?: CreateGroupRequest
122
+ }
123
+
124
+ export type UpdateGroupRequest = {
125
+ id?: string
126
+ description?: string
127
+ notificationTemplate?: string
128
+ receivers?: groupReceiver[]
129
+ notifyRepeatConfig?: repeatConfig[]
130
+ }
131
+
132
+ export type ListGroupRulesRequest = {
133
+ id?: string
134
+ name?: string
135
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
136
+ status?: InsightIoApiAlertV1alpha1Type.RuleStatus
137
+ page?: number
138
+ pageSize?: number
139
+ sorts?: string[]
140
+ }
141
+
142
+ export type ListRulesResponse = {
143
+ items?: RuleSummary[]
144
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
145
+ }
146
+
147
+ export type RuleSummary = {
148
+ id?: string
149
+ name?: string
150
+ groupId?: string
151
+ groupName?: string
152
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
153
+ source?: InsightIoApiAlertV1alpha1Type.RuleSource
154
+ expr?: string
155
+ thresholdSymbol?: string
156
+ thresholdNum?: number
157
+ status?: InsightIoApiAlertV1alpha1Type.RuleStatus
158
+ description?: string
159
+ createAt?: string
160
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
161
+ logQueryString?: string
162
+ duration?: string
163
+ }
164
+
165
+ export type Rule = {
166
+ id?: string
167
+ name?: string
168
+ groupId?: string
169
+ groupName?: string
170
+ expr?: string
171
+ thresholdSymbol?: string
172
+ thresholdNum?: number
173
+ duration?: string
174
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
175
+ source?: InsightIoApiAlertV1alpha1Type.RuleSource
176
+ status?: InsightIoApiAlertV1alpha1Type.RuleStatus
177
+ promQL?: string
178
+ labels?: {[key: string]: string}
179
+ annotations?: {[key: string]: string}
180
+ description?: string
181
+ createAt?: string
182
+ updateAt?: string
183
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
184
+ logQueryString?: string
185
+ }
186
+
187
+ export type AddGroupRuleRequest = {
188
+ id?: string
189
+ rule?: CreateGroupRule
190
+ }
191
+
192
+ export type CreateGroupRule = {
193
+ name?: string
194
+ description?: string
195
+ source?: InsightIoApiAlertV1alpha1Type.RuleSource
196
+ expr?: string
197
+ thresholdSymbol?: string
198
+ thresholdNum?: number
199
+ duration?: string
200
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
201
+ labels?: {[key: string]: string}
202
+ annotations?: {[key: string]: string}
203
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
204
+ logQueryString?: string
205
+ }
206
+
207
+ export type UpdateRuleRequest = {
208
+ id?: string
209
+ name?: string
210
+ description?: string
211
+ expr?: string
212
+ thresholdSymbol?: string
213
+ thresholdNum?: number
214
+ duration?: string
215
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
216
+ labels?: {[key: string]: string}
217
+ annotations?: {[key: string]: string}
218
+ logFilterCondition?: InsightIoApiAlertV1alpha1Type.RuleFilterCondition
219
+ logQueryString?: string
220
+ }
221
+
222
+ export type GroupRule = {
223
+ id?: string
224
+ name?: string
225
+ }
226
+
227
+ export type ListAlertsRequest = {
228
+ resolved?: boolean
229
+ groupName?: string
230
+ groupId?: string
231
+ ruleName?: string
232
+ ruleId?: string
233
+ clusterName?: string
234
+ namespace?: string
235
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
236
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
237
+ target?: string
238
+ page?: number
239
+ pageSize?: number
240
+ sorts?: string[]
241
+ status?: InsightIoApiAlertV1alpha1Type.AlertStatus[]
242
+ }
243
+
244
+ export type ListAlertsResponse = {
245
+ items?: AlertSummary[]
246
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
247
+ }
248
+
249
+ export type AlertSummary = {
250
+ id?: string
251
+ groupName?: string
252
+ groupId?: string
253
+ ruleName?: string
254
+ ruleId?: string
255
+ clusterName?: string
256
+ namespace?: string
257
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
258
+ target?: string
259
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
260
+ value?: string
261
+ notifyResponse?: string
262
+ description?: string
263
+ startAt?: string
264
+ updateAt?: string
265
+ lastSent?: string
266
+ builtin?: boolean
267
+ status?: InsightIoApiAlertV1alpha1Type.AlertStatus
268
+ }
269
+
270
+ export type GetAlertRequest = {
271
+ id?: string
272
+ resolved?: boolean
273
+ }
274
+
275
+ export type Alert = {
276
+ id?: string
277
+ groupName?: string
278
+ groupId?: string
279
+ ruleName?: string
280
+ ruleId?: string
281
+ clusterName?: string
282
+ namespace?: string
283
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
284
+ target?: string
285
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
286
+ value?: string
287
+ notifyResponse?: string
288
+ description?: string
289
+ promQL?: string
290
+ labels?: {[key: string]: string}
291
+ annotations?: {[key: string]: string}
292
+ startAt?: string
293
+ updateAt?: string
294
+ lastSent?: string
295
+ }
296
+
297
+ export type CountAlertRequest = {
298
+ resolved?: boolean
299
+ clusterName?: string
300
+ namespace?: string
301
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
302
+ target?: string
303
+ severity?: InsightIoApiAlertV1alpha1Type.Severity
304
+ start?: string
305
+ end?: string
306
+ step?: string
307
+ groupByType?: boolean
308
+ }
309
+
310
+ export type CountAlertResponse = {
311
+ data?: CountAlert[]
312
+ }
313
+
314
+ export type CountAlert = {
315
+ start?: string
316
+ end?: string
317
+ items?: countInfo[]
318
+ }
319
+
320
+ export type countInfo = {
321
+ target?: string
322
+ sum?: {[key: string]: string}
323
+ }
324
+
325
+ export type AMHookRequest = {
326
+ version?: string
327
+ groupKey?: string
328
+ status?: string
329
+ receiver?: string
330
+ groupLabels?: {[key: string]: string}
331
+ commonLabels?: {[key: string]: string}
332
+ commonAnnotations?: {[key: string]: string}
333
+ externalURL?: string
334
+ alerts?: AmAlert[]
335
+ truncatedAlerts?: string
336
+ }
337
+
338
+ export type AmAlert = {
339
+ status?: string
340
+ labels?: {[key: string]: string}
341
+ annotations?: {[key: string]: string}
342
+ startsAt?: string
343
+ endsAt?: string
344
+ generatorURL?: string
345
+ fingerprint?: string
346
+ }
347
+
348
+ export type AlertHistoryRetentionPeriod = {
349
+ retentionTime?: number
350
+ }
351
+
352
+ export type CleanAlertHistoryResponse = {
353
+ num?: string
354
+ }
355
+
356
+ export type PreviewRuleRequestParams = {
357
+ start?: string
358
+ end?: string
359
+ step?: number
360
+ }
361
+
362
+ export type PreviewRuleRequestGroup = {
363
+ clusterName?: string
364
+ namespace?: string
365
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
366
+ targets?: string[]
367
+ }
368
+
369
+ export type PreviewRuleRequest = {
370
+ params?: PreviewRuleRequestParams
371
+ group?: PreviewRuleRequestGroup
372
+ rule?: CreateGroupRule
373
+ }
374
+
375
+ export type PreviewRuleResponse = {
376
+ matrix?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
377
+ }
378
+
379
+ export type GetSMTPStatusResponse = {
380
+ enabled?: boolean
381
+ }
382
+
383
+ export type RuleTemplate = {
384
+ id?: string
385
+ name?: string
386
+ description?: string
387
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
388
+ count?: number
389
+ rules?: CreateGroupRule[]
390
+ createAt?: string
391
+ updateAt?: string
392
+ }
393
+
394
+ export type RuleTemplateSummary = {
395
+ id?: string
396
+ name?: string
397
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
398
+ }
399
+
400
+ export type ListRuleTemplateSummaryRequest = {
401
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
402
+ }
403
+
404
+ export type ListRuleTemplateSummaryResponse = {
405
+ items?: RuleTemplateSummary[]
406
+ }
407
+
408
+ export type ListRuleTemplatesRequest = {
409
+ builtin?: boolean
410
+ name?: string
411
+ page?: number
412
+ pageSize?: number
413
+ sorts?: string[]
414
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
415
+ }
416
+
417
+ export type ListRuleTemplatesResponse = {
418
+ items?: RuleTemplate[]
419
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
420
+ }
421
+
422
+ export type CreateRuleTemplateRequest = {
423
+ name?: string
424
+ description?: string
425
+ targetType?: InsightIoApiAlertV1alpha1Type.TargetType
426
+ rules?: CreateGroupRule[]
427
+ }
428
+
429
+ export type UpdateRuleTemplateRequest = {
430
+ id?: string
431
+ description?: string
432
+ rules?: CreateGroupRule[]
433
+ }
@@ -0,0 +1,56 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
8
+ import * as InsightIoApiAlertV1alpha1Silence from "./silence.pb"
9
+ export type InhibitionName = {
10
+ name?: string
11
+ }
12
+
13
+ export type Inhibition = {
14
+ id?: string
15
+ name?: string
16
+ clusterName?: string
17
+ namespace?: string
18
+ description?: string
19
+ sourceMatchers?: InsightIoApiAlertV1alpha1Silence.match[]
20
+ targetMatchers?: InsightIoApiAlertV1alpha1Silence.match[]
21
+ equal?: string[]
22
+ createAt?: string
23
+ updateAt?: string
24
+ }
25
+
26
+ export type CreateInhibitionRequest = {
27
+ name?: string
28
+ clusterName?: string
29
+ namespace?: string
30
+ description?: string
31
+ sourceMatchers?: InsightIoApiAlertV1alpha1Silence.match[]
32
+ targetMatchers?: InsightIoApiAlertV1alpha1Silence.match[]
33
+ equal?: string[]
34
+ }
35
+
36
+ export type UpdateInhibitionRequest = {
37
+ id?: string
38
+ description?: string
39
+ sourceMatchers?: InsightIoApiAlertV1alpha1Silence.match[]
40
+ targetMatchers?: InsightIoApiAlertV1alpha1Silence.match[]
41
+ equal?: string[]
42
+ }
43
+
44
+ export type ListInhibitionsRequest = {
45
+ name?: string
46
+ clusterName?: string
47
+ namespace?: string
48
+ page?: number
49
+ pageSize?: number
50
+ sorts?: string[]
51
+ }
52
+
53
+ export type InhibitionList = {
54
+ items?: Inhibition[]
55
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
56
+ }
@@ -0,0 +1,250 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb"
8
+
9
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
10
+ type OneOf<T> =
11
+ | { [k in keyof T]?: undefined }
12
+ | (
13
+ keyof T extends infer K ?
14
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
15
+ : never)
16
+ : never);
17
+
18
+ export enum ReceiverType {
19
+ RECEIVER_TYPE_UNSPECIFIED = "RECEIVER_TYPE_UNSPECIFIED",
20
+ webhook = "webhook",
21
+ email = "email",
22
+ dingtalk = "dingtalk",
23
+ wecom = "wecom",
24
+ sms = "sms",
25
+ message = "message",
26
+ lark = "lark",
27
+ }
28
+
29
+ export enum ProviderType {
30
+ PROVIDER_TYPE_UNSPECIFIED = "PROVIDER_TYPE_UNSPECIFIED",
31
+ aliyun = "aliyun",
32
+ tencent = "tencent",
33
+ custom = "custom",
34
+ }
35
+
36
+
37
+ type BaseReceiver = {
38
+ name?: string
39
+ type?: ReceiverType
40
+ createAt?: string
41
+ updateAt?: string
42
+ description?: string
43
+ }
44
+
45
+ export type Receiver = BaseReceiver
46
+ & OneOf<{ webhook: WebhookConfig; email: EmailConfig; wecom: WecomConfig; dingtalk: DingtalkConfig; sms: SmsConfig; message: MessageConfig; lark: LarkConfig }>
47
+
48
+ export type WebhookConfig = {
49
+ url?: string
50
+ httpConfig?: HTTPConfig
51
+ }
52
+
53
+ export type WecomConfig = {
54
+ webhook?: string
55
+ }
56
+
57
+ export type DingtalkConfig = {
58
+ webhook?: string
59
+ secret?: string
60
+ }
61
+
62
+ export type LarkConfig = {
63
+ webhook?: string
64
+ secret?: string
65
+ }
66
+
67
+ export type EmailConfig = {
68
+ to?: string[]
69
+ }
70
+
71
+ export type SmsConfig = {
72
+ contact?: SmsConfigContact[]
73
+ provider?: string
74
+ }
75
+
76
+ export type SmsConfigContact = {
77
+ name?: string
78
+ phone?: string
79
+ }
80
+
81
+ export type MessageConfigUser = {
82
+ name?: string
83
+ userId?: string
84
+ }
85
+
86
+ export type MessageConfig = {
87
+ users?: MessageConfigUser[]
88
+ }
89
+
90
+ export type ListReceiversRequest = {
91
+ name?: string
92
+ type?: ReceiverType
93
+ page?: number
94
+ pageSize?: number
95
+ sorts?: string[]
96
+ exactSearch?: boolean
97
+ }
98
+
99
+ export type GetReceiversRequest = {
100
+ name?: string
101
+ type?: ReceiverType
102
+ }
103
+
104
+ export type DeleteReceiversRequest = {
105
+ name?: string
106
+ }
107
+
108
+ export type ReceiverDataResponse = {
109
+ data?: Receiver
110
+ }
111
+
112
+ export type ListReceiverResponse = {
113
+ items?: Receiver[]
114
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
115
+ }
116
+
117
+ export type HTTPConfig = {
118
+ basicAuth?: BasicAuth
119
+ bearerToken?: string
120
+ tlsConfig?: SafeTLSConfig
121
+ headers?: HTTPHeader[]
122
+ }
123
+
124
+ export type BasicAuth = {
125
+ username?: string
126
+ password?: string
127
+ }
128
+
129
+ export type HTTPHeader = {
130
+ name?: string
131
+ value?: string
132
+ }
133
+
134
+ export type SafeTLSConfig = {
135
+ insecureSkipVerify?: boolean
136
+ }
137
+
138
+ export type ListTemplatesRequest = {
139
+ name?: string
140
+ page?: number
141
+ pageSize?: number
142
+ sorts?: string[]
143
+ exactSearch?: boolean
144
+ builtin?: boolean
145
+ }
146
+
147
+ export type ListTemplateSummaryResponse = {
148
+ items?: TemplateSummary[]
149
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
150
+ }
151
+
152
+ export type ListTemplatesResponse = {
153
+ items?: Template[]
154
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
155
+ }
156
+
157
+ export type TemplateSummary = {
158
+ name?: string
159
+ description?: string
160
+ updateAt?: string
161
+ builtin?: boolean
162
+ }
163
+
164
+ export type Template = {
165
+ name?: string
166
+ description?: string
167
+ body?: TemplateBody
168
+ builtin?: boolean
169
+ createAt?: string
170
+ updateAt?: string
171
+ }
172
+
173
+ export type TemplateName = {
174
+ name?: string
175
+ }
176
+
177
+ export type CreateTemplateRequest = {
178
+ name?: string
179
+ description?: string
180
+ body?: TemplateBody
181
+ }
182
+
183
+ export type TemplateBody = {
184
+ email?: emailBody
185
+ wecom?: string
186
+ dingtalk?: string
187
+ webhook?: string
188
+ message?: string
189
+ lark?: string
190
+ }
191
+
192
+ export type emailBody = {
193
+ subject?: string
194
+ body?: string
195
+ }
196
+
197
+ export type ProviderAliyunConfig = {
198
+ signName?: string
199
+ templateCode?: string
200
+ accessKeyId?: string
201
+ accessKeySecret?: string
202
+ }
203
+
204
+ export type ProviderTencentConfig = {
205
+ templateId?: string
206
+ smsSdkAppId?: string
207
+ sign?: string
208
+ secretId?: string
209
+ secretKey?: string
210
+ }
211
+
212
+ export type ProviderCustomConfig = {
213
+ }
214
+
215
+
216
+ type BaseProvider = {
217
+ name?: string
218
+ type?: ProviderType
219
+ template?: string
220
+ createAt?: string
221
+ updateAt?: string
222
+ }
223
+
224
+ export type Provider = BaseProvider
225
+ & OneOf<{ aliyun: ProviderAliyunConfig; tencent: ProviderTencentConfig; custom: ProviderCustomConfig }>
226
+
227
+ export type ListProvidersRequest = {
228
+ name?: string
229
+ page?: number
230
+ pageSize?: number
231
+ sorts?: string[]
232
+ exactSearch?: boolean
233
+ }
234
+
235
+ export type ListProvidersResponse = {
236
+ items?: Provider[]
237
+ pagination?: InsightIoApiTypeV1alpha1Page.Pagination
238
+ }
239
+
240
+ export type GetProvidersRequest = {
241
+ name?: string
242
+ }
243
+
244
+ export type DeleteProvidersRequest = {
245
+ name?: string
246
+ }
247
+
248
+ export type ProviderDataResponse = {
249
+ data?: Provider
250
+ }