@gooddata/api-client-tiger 10.16.0-alpha.2 → 10.16.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/__version.js.map +1 -1
- package/esm/api-client-tiger.d.ts +2108 -1304
- package/esm/automation.d.ts +8 -0
- package/esm/automation.d.ts.map +1 -0
- package/esm/automation.js +6 -0
- package/esm/automation.js.map +1 -0
- package/esm/client.d.ts +4 -2
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +4 -1
- package/esm/client.js.map +1 -1
- package/esm/generated/afm-rest-api/api.d.ts +24 -7
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +9 -5
- package/esm/generated/afm-rest-api/api.js.map +1 -1
- package/esm/generated/afm-rest-api/openapi-spec.json +15 -7
- package/esm/generated/automation-json-api/api.d.ts +1030 -0
- package/esm/generated/automation-json-api/api.d.ts.map +1 -0
- package/esm/generated/automation-json-api/api.js +544 -0
- package/esm/generated/automation-json-api/api.js.map +1 -0
- package/esm/generated/automation-json-api/base.d.ts +56 -0
- package/esm/generated/automation-json-api/base.d.ts.map +1 -0
- package/esm/generated/automation-json-api/base.js +48 -0
- package/esm/generated/automation-json-api/base.js.map +1 -0
- package/esm/generated/automation-json-api/common.d.ts +66 -0
- package/esm/generated/automation-json-api/common.d.ts.map +1 -0
- package/esm/generated/automation-json-api/common.js +123 -0
- package/esm/generated/automation-json-api/common.js.map +1 -0
- package/esm/generated/automation-json-api/configuration.d.ts +84 -0
- package/esm/generated/automation-json-api/configuration.d.ts.map +1 -0
- package/esm/generated/automation-json-api/configuration.js +76 -0
- package/esm/generated/automation-json-api/configuration.js.map +1 -0
- package/esm/generated/automation-json-api/index.d.ts +14 -0
- package/esm/generated/automation-json-api/index.d.ts.map +1 -0
- package/esm/generated/automation-json-api/index.js +17 -0
- package/esm/generated/automation-json-api/index.js.map +1 -0
- package/esm/generated/automation-json-api/openapi-spec.json +646 -0
- package/esm/generated/metadata-json-api/api.d.ts +1296 -1258
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +31 -35
- package/esm/generated/metadata-json-api/api.js.map +1 -1
- package/esm/generated/metadata-json-api/openapi-spec.json +7560 -7524
- package/esm/generated/scan-json-api/api.d.ts +24 -1
- package/esm/generated/scan-json-api/api.d.ts.map +1 -1
- package/esm/generated/scan-json-api/api.js +0 -1
- package/esm/generated/scan-json-api/api.js.map +1 -1
- package/esm/generated/scan-json-api/openapi-spec.json +16 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "OpenAPI definition",
|
|
5
|
+
"version": "v0"
|
|
6
|
+
},
|
|
7
|
+
"servers": [
|
|
8
|
+
{
|
|
9
|
+
"url": "/",
|
|
10
|
+
"description": "GoodData.CN endpoint"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"tags": [
|
|
14
|
+
{
|
|
15
|
+
"name": "actions",
|
|
16
|
+
"description": "| execution of some form of computation (RPC over JSON)"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/api/v1/notifications/{notificationId}/markAsRead": {
|
|
21
|
+
"post": {
|
|
22
|
+
"tags": ["actions"],
|
|
23
|
+
"summary": "Mark notification as read.",
|
|
24
|
+
"description": "Mark in-platform notification by its ID as read.",
|
|
25
|
+
"operationId": "markAsReadNotification",
|
|
26
|
+
"parameters": [
|
|
27
|
+
{
|
|
28
|
+
"name": "notificationId",
|
|
29
|
+
"in": "path",
|
|
30
|
+
"description": "Notification ID to mark as read.",
|
|
31
|
+
"required": true,
|
|
32
|
+
"schema": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"responses": {
|
|
38
|
+
"204": {
|
|
39
|
+
"description": "No Content"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"/api/v1/actions/notificationChannels/{notificationChannelId}/test": {
|
|
45
|
+
"post": {
|
|
46
|
+
"tags": ["Notification Channels", "actions"],
|
|
47
|
+
"summary": "Test existing notification channel.",
|
|
48
|
+
"description": "Tests the existing notification channel by sending a test notification.",
|
|
49
|
+
"operationId": "testExistingNotificationChannel",
|
|
50
|
+
"parameters": [
|
|
51
|
+
{
|
|
52
|
+
"name": "notificationChannelId",
|
|
53
|
+
"in": "path",
|
|
54
|
+
"required": true,
|
|
55
|
+
"schema": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"responses": {
|
|
61
|
+
"200": {
|
|
62
|
+
"description": "The result of the test of a notification channel connection.",
|
|
63
|
+
"content": {
|
|
64
|
+
"application/json": {
|
|
65
|
+
"schema": {
|
|
66
|
+
"$ref": "#/components/schemas/TestResponse"
|
|
67
|
+
},
|
|
68
|
+
"examples": {
|
|
69
|
+
"An example of a successful connection": {
|
|
70
|
+
"description": "An example of a successful connection",
|
|
71
|
+
"value": {
|
|
72
|
+
"successful": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"An example of an unsuccessful connection": {
|
|
76
|
+
"description": "An example of an unsuccessful connection",
|
|
77
|
+
"value": {
|
|
78
|
+
"successful": false,
|
|
79
|
+
"error": "Authentication failed"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"/api/v1/actions/notificationChannels/test": {
|
|
90
|
+
"post": {
|
|
91
|
+
"tags": ["Notification Channels", "actions"],
|
|
92
|
+
"summary": "Test notification channel.",
|
|
93
|
+
"description": "Tests the notification channel by sending a test notification.",
|
|
94
|
+
"operationId": "testNotificationChannel",
|
|
95
|
+
"requestBody": {
|
|
96
|
+
"content": {
|
|
97
|
+
"application/json": {
|
|
98
|
+
"schema": {
|
|
99
|
+
"$ref": "#/components/schemas/TestDestinationRequest"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": true
|
|
104
|
+
},
|
|
105
|
+
"responses": {
|
|
106
|
+
"200": {
|
|
107
|
+
"description": "The result of the test of a notification channel connection.",
|
|
108
|
+
"content": {
|
|
109
|
+
"application/json": {
|
|
110
|
+
"schema": {
|
|
111
|
+
"$ref": "#/components/schemas/TestResponse"
|
|
112
|
+
},
|
|
113
|
+
"examples": {
|
|
114
|
+
"An example of a successful connection": {
|
|
115
|
+
"description": "An example of a successful connection",
|
|
116
|
+
"value": {
|
|
117
|
+
"successful": true
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"An example of an unsuccessful connection": {
|
|
121
|
+
"description": "An example of an unsuccessful connection",
|
|
122
|
+
"value": {
|
|
123
|
+
"successful": false,
|
|
124
|
+
"error": "Authentication failed"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"/api/v1/notifications": {
|
|
135
|
+
"get": {
|
|
136
|
+
"tags": ["actions"],
|
|
137
|
+
"summary": "Get latest notifications.",
|
|
138
|
+
"description": "Get latest in-platform notifications for the current user.",
|
|
139
|
+
"operationId": "getNotifications",
|
|
140
|
+
"parameters": [
|
|
141
|
+
{
|
|
142
|
+
"name": "workspaceId",
|
|
143
|
+
"in": "query",
|
|
144
|
+
"description": "Workspace ID to filter notifications by.",
|
|
145
|
+
"required": false,
|
|
146
|
+
"style": "form",
|
|
147
|
+
"schema": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "page",
|
|
153
|
+
"in": "query",
|
|
154
|
+
"description": "Zero-based page index (0..N)",
|
|
155
|
+
"required": false,
|
|
156
|
+
"style": "form",
|
|
157
|
+
"schema": {
|
|
158
|
+
"minimum": 0,
|
|
159
|
+
"type": "string",
|
|
160
|
+
"default": "0"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "size",
|
|
165
|
+
"in": "query",
|
|
166
|
+
"description": "The size of the page to be returned.",
|
|
167
|
+
"required": false,
|
|
168
|
+
"style": "form",
|
|
169
|
+
"schema": {
|
|
170
|
+
"minimum": 0,
|
|
171
|
+
"type": "string",
|
|
172
|
+
"default": "20"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"responses": {
|
|
177
|
+
"200": {
|
|
178
|
+
"description": "OK",
|
|
179
|
+
"content": {
|
|
180
|
+
"application/json": {
|
|
181
|
+
"schema": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"$ref": "#/components/schemas/Notification"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"components": {
|
|
195
|
+
"schemas": {
|
|
196
|
+
"TestResponse": {
|
|
197
|
+
"required": ["successful"],
|
|
198
|
+
"type": "object",
|
|
199
|
+
"properties": {
|
|
200
|
+
"successful": {
|
|
201
|
+
"type": "boolean",
|
|
202
|
+
"description": "A flag indicating whether test passed or not.",
|
|
203
|
+
"example": true
|
|
204
|
+
},
|
|
205
|
+
"error": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"description": "Field containing more details in case of a failure. Details are available to a privileged user only.",
|
|
208
|
+
"example": "Authentication failed"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"description": "Response from notification channel testing."
|
|
212
|
+
},
|
|
213
|
+
"DefaultSmtp": {
|
|
214
|
+
"required": ["type"],
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"fromEmail": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "E-mail address to send notifications from. Currently this does not have any effect. E-mail 'no-reply@gooddata.com' is used instead.",
|
|
220
|
+
"format": "email",
|
|
221
|
+
"default": "no-reply@gooddata.com"
|
|
222
|
+
},
|
|
223
|
+
"fromEmailName": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "An optional e-mail name to send notifications from. Currently this does not have any effect. E-mail from name 'GoodData' is used instead.",
|
|
226
|
+
"default": "GoodData"
|
|
227
|
+
},
|
|
228
|
+
"type": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"description": "The destination type.",
|
|
231
|
+
"enum": ["DEFAULT_SMTP"]
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"description": "Default SMTP destination for notifications."
|
|
235
|
+
},
|
|
236
|
+
"InPlatform": {
|
|
237
|
+
"required": ["type"],
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"type": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"description": "The destination type.",
|
|
243
|
+
"enum": ["IN_PLATFORM"]
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"description": "In-platform destination for notifications."
|
|
247
|
+
},
|
|
248
|
+
"NotificationChannelDestination": {
|
|
249
|
+
"required": ["type"],
|
|
250
|
+
"type": "object",
|
|
251
|
+
"properties": {
|
|
252
|
+
"type": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"oneOf": [
|
|
257
|
+
{
|
|
258
|
+
"$ref": "#/components/schemas/Webhook"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"$ref": "#/components/schemas/Smtp"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"$ref": "#/components/schemas/DefaultSmtp"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"$ref": "#/components/schemas/InPlatform"
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
"Smtp": {
|
|
272
|
+
"required": ["type"],
|
|
273
|
+
"type": "object",
|
|
274
|
+
"properties": {
|
|
275
|
+
"fromEmail": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"description": "E-mail address to send notifications from.",
|
|
278
|
+
"format": "email",
|
|
279
|
+
"default": "no-reply@gooddata.com"
|
|
280
|
+
},
|
|
281
|
+
"fromEmailName": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"description": "An optional e-mail name to send notifications from.",
|
|
284
|
+
"default": "GoodData"
|
|
285
|
+
},
|
|
286
|
+
"host": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": "The SMTP server address."
|
|
289
|
+
},
|
|
290
|
+
"port": {
|
|
291
|
+
"type": "integer",
|
|
292
|
+
"description": "The SMTP server port.",
|
|
293
|
+
"format": "int32",
|
|
294
|
+
"enum": [25, 465, 587, 2525]
|
|
295
|
+
},
|
|
296
|
+
"username": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "The SMTP server username."
|
|
299
|
+
},
|
|
300
|
+
"password": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "The SMTP server password.",
|
|
303
|
+
"writeOnly": true
|
|
304
|
+
},
|
|
305
|
+
"type": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "The destination type.",
|
|
308
|
+
"enum": ["SMTP"]
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"description": "Custom SMTP destination for notifications. The properties host, port, username, and password are required on create and update"
|
|
312
|
+
},
|
|
313
|
+
"TestDestinationRequest": {
|
|
314
|
+
"required": ["destination"],
|
|
315
|
+
"type": "object",
|
|
316
|
+
"properties": {
|
|
317
|
+
"destination": {
|
|
318
|
+
"oneOf": [
|
|
319
|
+
{
|
|
320
|
+
"$ref": "#/components/schemas/DefaultSmtp"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"$ref": "#/components/schemas/InPlatform"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"$ref": "#/components/schemas/Smtp"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"$ref": "#/components/schemas/Webhook"
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"description": "Request body with notification channel destination to test."
|
|
335
|
+
},
|
|
336
|
+
"Webhook": {
|
|
337
|
+
"required": ["type"],
|
|
338
|
+
"type": "object",
|
|
339
|
+
"properties": {
|
|
340
|
+
"url": {
|
|
341
|
+
"maxLength": 255,
|
|
342
|
+
"pattern": "https?\\://.*",
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "The webhook URL.",
|
|
345
|
+
"example": "https://webhook.site/something"
|
|
346
|
+
},
|
|
347
|
+
"token": {
|
|
348
|
+
"maxLength": 10000,
|
|
349
|
+
"type": "string",
|
|
350
|
+
"description": "Bearer token for the webhook.",
|
|
351
|
+
"nullable": true,
|
|
352
|
+
"writeOnly": true,
|
|
353
|
+
"example": "secret"
|
|
354
|
+
},
|
|
355
|
+
"hasToken": {
|
|
356
|
+
"maxLength": 10000,
|
|
357
|
+
"type": "boolean",
|
|
358
|
+
"description": "Flag indicating if webhook has a token.",
|
|
359
|
+
"nullable": true,
|
|
360
|
+
"readOnly": true
|
|
361
|
+
},
|
|
362
|
+
"type": {
|
|
363
|
+
"type": "string",
|
|
364
|
+
"description": "The destination type.",
|
|
365
|
+
"enum": ["WEBHOOK"]
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"description": "Webhook destination for notifications. The property url is required on create and update."
|
|
369
|
+
},
|
|
370
|
+
"AlertDescription": {
|
|
371
|
+
"required": ["condition", "metric"],
|
|
372
|
+
"type": "object",
|
|
373
|
+
"properties": {
|
|
374
|
+
"metric": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"condition": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
"currentValues": {
|
|
381
|
+
"type": "array",
|
|
382
|
+
"items": {
|
|
383
|
+
"$ref": "#/components/schemas/AlertEvaluationRow"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"attribute": {
|
|
387
|
+
"type": "string"
|
|
388
|
+
},
|
|
389
|
+
"totalValueCount": {
|
|
390
|
+
"type": "integer",
|
|
391
|
+
"format": "int32"
|
|
392
|
+
},
|
|
393
|
+
"triggeredCount": {
|
|
394
|
+
"type": "integer",
|
|
395
|
+
"format": "int32"
|
|
396
|
+
},
|
|
397
|
+
"threshold": {
|
|
398
|
+
"type": "number",
|
|
399
|
+
"format": "double"
|
|
400
|
+
},
|
|
401
|
+
"formattedThreshold": {
|
|
402
|
+
"type": "string"
|
|
403
|
+
},
|
|
404
|
+
"lowerThreshold": {
|
|
405
|
+
"type": "number",
|
|
406
|
+
"format": "double"
|
|
407
|
+
},
|
|
408
|
+
"upperThreshold": {
|
|
409
|
+
"type": "number",
|
|
410
|
+
"format": "double"
|
|
411
|
+
},
|
|
412
|
+
"status": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"enum": ["SUCCESS", "ERROR", "INTERNAL_ERROR", "TIMEOUT"]
|
|
415
|
+
},
|
|
416
|
+
"errorMessage": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
"traceId": {
|
|
420
|
+
"type": "string"
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"AlertEvaluationRow": {
|
|
425
|
+
"type": "object",
|
|
426
|
+
"properties": {
|
|
427
|
+
"primaryMetric": {
|
|
428
|
+
"$ref": "#/components/schemas/MetricRecord"
|
|
429
|
+
},
|
|
430
|
+
"secondaryMetric": {
|
|
431
|
+
"$ref": "#/components/schemas/MetricRecord"
|
|
432
|
+
},
|
|
433
|
+
"computedMetric": {
|
|
434
|
+
"$ref": "#/components/schemas/MetricRecord"
|
|
435
|
+
},
|
|
436
|
+
"labelValue": {
|
|
437
|
+
"type": "string"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"AutomationNotification": {
|
|
442
|
+
"required": ["content"],
|
|
443
|
+
"type": "object",
|
|
444
|
+
"allOf": [
|
|
445
|
+
{
|
|
446
|
+
"$ref": "#/components/schemas/NotificationContent"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"type": "object",
|
|
450
|
+
"properties": {
|
|
451
|
+
"content": {
|
|
452
|
+
"$ref": "#/components/schemas/WebhookMessage"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
"ExportResult": {
|
|
459
|
+
"required": ["exportId", "fileName", "status"],
|
|
460
|
+
"type": "object",
|
|
461
|
+
"properties": {
|
|
462
|
+
"fileName": {
|
|
463
|
+
"type": "string"
|
|
464
|
+
},
|
|
465
|
+
"exportId": {
|
|
466
|
+
"type": "string"
|
|
467
|
+
},
|
|
468
|
+
"status": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"enum": ["SUCCESS", "ERROR", "INTERNAL_ERROR", "TIMEOUT"]
|
|
471
|
+
},
|
|
472
|
+
"fileUri": {
|
|
473
|
+
"type": "string"
|
|
474
|
+
},
|
|
475
|
+
"errorMessage": {
|
|
476
|
+
"type": "string"
|
|
477
|
+
},
|
|
478
|
+
"traceId": {
|
|
479
|
+
"type": "string"
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"MetricRecord": {
|
|
484
|
+
"required": ["value"],
|
|
485
|
+
"type": "object",
|
|
486
|
+
"properties": {
|
|
487
|
+
"value": {
|
|
488
|
+
"type": "number",
|
|
489
|
+
"format": "double"
|
|
490
|
+
},
|
|
491
|
+
"formattedValue": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"Notification": {
|
|
497
|
+
"required": ["createdAt", "data", "id", "isRead"],
|
|
498
|
+
"type": "object",
|
|
499
|
+
"properties": {
|
|
500
|
+
"id": {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
503
|
+
"workspaceId": {
|
|
504
|
+
"type": "string"
|
|
505
|
+
},
|
|
506
|
+
"automationId": {
|
|
507
|
+
"type": "string"
|
|
508
|
+
},
|
|
509
|
+
"data": {
|
|
510
|
+
"oneOf": [
|
|
511
|
+
{
|
|
512
|
+
"$ref": "#/components/schemas/AutomationNotification"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"$ref": "#/components/schemas/TestNotification"
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
"isRead": {
|
|
520
|
+
"type": "boolean"
|
|
521
|
+
},
|
|
522
|
+
"createdAt": {
|
|
523
|
+
"type": "string",
|
|
524
|
+
"format": "date-time"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"NotificationContent": {
|
|
529
|
+
"required": ["type"],
|
|
530
|
+
"type": "object",
|
|
531
|
+
"properties": {
|
|
532
|
+
"type": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"discriminator": {
|
|
537
|
+
"propertyName": "type",
|
|
538
|
+
"mapping": {
|
|
539
|
+
"AUTOMATION": "#/components/schemas/AutomationNotification",
|
|
540
|
+
"TEST": "#/components/schemas/TestNotification"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"TestNotification": {
|
|
545
|
+
"required": ["message"],
|
|
546
|
+
"type": "object",
|
|
547
|
+
"allOf": [
|
|
548
|
+
{
|
|
549
|
+
"$ref": "#/components/schemas/NotificationContent"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"type": "object",
|
|
553
|
+
"properties": {
|
|
554
|
+
"message": {
|
|
555
|
+
"type": "string"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
]
|
|
560
|
+
},
|
|
561
|
+
"WebhookAutomationInfo": {
|
|
562
|
+
"required": ["dashboardURL", "id"],
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"id": {
|
|
566
|
+
"type": "string"
|
|
567
|
+
},
|
|
568
|
+
"title": {
|
|
569
|
+
"type": "string"
|
|
570
|
+
},
|
|
571
|
+
"dashboardURL": {
|
|
572
|
+
"type": "string"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"WebhookMessage": {
|
|
577
|
+
"required": ["data", "timestamp", "type"],
|
|
578
|
+
"type": "object",
|
|
579
|
+
"properties": {
|
|
580
|
+
"timestamp": {
|
|
581
|
+
"type": "string"
|
|
582
|
+
},
|
|
583
|
+
"data": {
|
|
584
|
+
"$ref": "#/components/schemas/WebhookMessageData"
|
|
585
|
+
},
|
|
586
|
+
"type": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"enum": ["automation-task.completed", "automation-task.limit-exceeded"]
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"WebhookMessageData": {
|
|
593
|
+
"required": ["automation"],
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {
|
|
596
|
+
"automation": {
|
|
597
|
+
"$ref": "#/components/schemas/WebhookAutomationInfo"
|
|
598
|
+
},
|
|
599
|
+
"recipients": {
|
|
600
|
+
"type": "array",
|
|
601
|
+
"items": {
|
|
602
|
+
"$ref": "#/components/schemas/WebhookRecipient"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"details": {
|
|
606
|
+
"type": "object",
|
|
607
|
+
"additionalProperties": {
|
|
608
|
+
"type": "string"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"remainingActionCount": {
|
|
612
|
+
"type": "integer",
|
|
613
|
+
"format": "int32"
|
|
614
|
+
},
|
|
615
|
+
"tabularExports": {
|
|
616
|
+
"type": "array",
|
|
617
|
+
"items": {
|
|
618
|
+
"$ref": "#/components/schemas/ExportResult"
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
"visualExports": {
|
|
622
|
+
"type": "array",
|
|
623
|
+
"items": {
|
|
624
|
+
"$ref": "#/components/schemas/ExportResult"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
"alert": {
|
|
628
|
+
"$ref": "#/components/schemas/AlertDescription"
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"WebhookRecipient": {
|
|
633
|
+
"required": ["email", "id"],
|
|
634
|
+
"type": "object",
|
|
635
|
+
"properties": {
|
|
636
|
+
"id": {
|
|
637
|
+
"type": "string"
|
|
638
|
+
},
|
|
639
|
+
"email": {
|
|
640
|
+
"type": "string"
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|