@epilot/cli 0.1.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.
Files changed (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +354 -0
  3. package/definitions/access-token.json +663 -0
  4. package/definitions/address-suggestions.json +582 -0
  5. package/definitions/address.json +578 -0
  6. package/definitions/ai-agents.json +1711 -0
  7. package/definitions/app.json +4443 -0
  8. package/definitions/audit-logs.json +305 -0
  9. package/definitions/automation.json +4815 -0
  10. package/definitions/billing.json +837 -0
  11. package/definitions/blueprint-manifest.json +3376 -0
  12. package/definitions/consent.json +344 -0
  13. package/definitions/customer-portal.json +15000 -0
  14. package/definitions/dashboard.json +484 -0
  15. package/definitions/data-management.json +962 -0
  16. package/definitions/deduplication.json +183 -0
  17. package/definitions/design.json +1423 -0
  18. package/definitions/document.json +758 -0
  19. package/definitions/email-settings.json +2627 -0
  20. package/definitions/email-template.json +1419 -0
  21. package/definitions/entity-mapping.json +1642 -0
  22. package/definitions/entity.json +10074 -0
  23. package/definitions/environments.json +363 -0
  24. package/definitions/erp-integration.json +5845 -0
  25. package/definitions/event-catalog.json +1051 -0
  26. package/definitions/file.json +2842 -0
  27. package/definitions/iban.json +132 -0
  28. package/definitions/journey.json +2341 -0
  29. package/definitions/kanban.json +929 -0
  30. package/definitions/message.json +2660 -0
  31. package/definitions/metering.json +2321 -0
  32. package/definitions/notes.json +1531 -0
  33. package/definitions/notification.json +1425 -0
  34. package/definitions/organization.json +629 -0
  35. package/definitions/partner-directory.json +1718 -0
  36. package/definitions/permissions.json +1480 -0
  37. package/definitions/pricing-tier.json +105 -0
  38. package/definitions/pricing.json +9884 -0
  39. package/definitions/purpose.json +524 -0
  40. package/definitions/sandbox.json +453 -0
  41. package/definitions/submission.json +313 -0
  42. package/definitions/targeting.json +1474 -0
  43. package/definitions/template-variables.json +1408 -0
  44. package/definitions/user.json +2408 -0
  45. package/definitions/validation-rules.json +1491 -0
  46. package/definitions/webhooks.json +1525 -0
  47. package/definitions/workflow-definition.json +3417 -0
  48. package/definitions/workflow.json +4106 -0
  49. package/dist/access-token-OG5AR7UB.js +51 -0
  50. package/dist/address-QUSMK5GV.js +51 -0
  51. package/dist/address-suggestions-E5SQNUS5.js +51 -0
  52. package/dist/ai-agents-PM42SJY3.js +51 -0
  53. package/dist/app-YTM3XAJL.js +51 -0
  54. package/dist/audit-logs-NXP7GFKX.js +51 -0
  55. package/dist/auth-CCBTXH5U.js +113 -0
  56. package/dist/auth-login-2ZIXM47J.js +137 -0
  57. package/dist/auth-token-OS4BEEVZ.js +43 -0
  58. package/dist/automation-TDJASTEV.js +51 -0
  59. package/dist/billing-M4MRBLEK.js +51 -0
  60. package/dist/bin/epilot.js +104 -0
  61. package/dist/blueprint-manifest-NQL7NRMV.js +51 -0
  62. package/dist/chunk-57PPARIW.js +715 -0
  63. package/dist/chunk-5WUPDZ5D.js +76 -0
  64. package/dist/chunk-IST42ZNL.js +78 -0
  65. package/dist/chunk-RC3GCXCI.js +76 -0
  66. package/dist/chunk-TKZLQD2B.js +72 -0
  67. package/dist/chunk-UJ6TU34M.js +56 -0
  68. package/dist/completion-GRQM2FJQ.js +168 -0
  69. package/dist/consent-KQ7MJAS6.js +51 -0
  70. package/dist/customer-portal-VUVSKWAQ.js +51 -0
  71. package/dist/dashboard-GVR4XNGR.js +51 -0
  72. package/dist/data-management-2RD3DLOS.js +51 -0
  73. package/dist/deduplication-PY77EINR.js +51 -0
  74. package/dist/design-M4FP2K5R.js +51 -0
  75. package/dist/document-P4QA7LEZ.js +51 -0
  76. package/dist/email-settings-7HGGRCCM.js +51 -0
  77. package/dist/email-template-3HXQI4CH.js +51 -0
  78. package/dist/entity-XUESZBPJ.js +51 -0
  79. package/dist/entity-mapping-JBKWWBH2.js +51 -0
  80. package/dist/environments-KKOS7ONY.js +51 -0
  81. package/dist/erp-integration-YTOWHCAW.js +51 -0
  82. package/dist/event-catalog-UKLZUGC4.js +51 -0
  83. package/dist/file-IFZNZ547.js +51 -0
  84. package/dist/iban-X2IW2NWU.js +51 -0
  85. package/dist/interactive-46ICLQKL.js +16 -0
  86. package/dist/journey-JU6X2KMX.js +51 -0
  87. package/dist/kanban-VHUU44PM.js +51 -0
  88. package/dist/message-AOUWJ4YX.js +51 -0
  89. package/dist/metering-RDS3XBD5.js +51 -0
  90. package/dist/notes-WE2UC75B.js +51 -0
  91. package/dist/notification-FKFNBHYZ.js +51 -0
  92. package/dist/organization-LMNFF6BX.js +51 -0
  93. package/dist/partner-directory-IIZVQDXJ.js +51 -0
  94. package/dist/permissions-AYCMVM7Y.js +51 -0
  95. package/dist/pricing-PS26FWBS.js +51 -0
  96. package/dist/pricing-tier-FBXWQ6T3.js +51 -0
  97. package/dist/profile-5Q5YARG7.js +135 -0
  98. package/dist/purpose-HE4E4SVU.js +51 -0
  99. package/dist/sandbox-Z7BU4UAD.js +51 -0
  100. package/dist/submission-MWVDF2ZB.js +51 -0
  101. package/dist/targeting-7NM5GDJ6.js +51 -0
  102. package/dist/template-variables-AJAR7PAV.js +51 -0
  103. package/dist/user-A26XQXG3.js +51 -0
  104. package/dist/validation-rules-VZTISEG2.js +51 -0
  105. package/dist/webhooks-RXH67WZ3.js +51 -0
  106. package/dist/workflow-G4FUUGZQ.js +51 -0
  107. package/dist/workflow-definition-LJYLMMGD.js +51 -0
  108. package/package.json +62 -0
@@ -0,0 +1,484 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "Dashboard API",
5
+ "version": "0.0.1",
6
+ "description": "API to store the dashboard configuration for the epilot 360 dashboard\n"
7
+ },
8
+ "security": [
9
+ {
10
+ "EpilotAuth": []
11
+ },
12
+ {
13
+ "EpilotOrg": []
14
+ }
15
+ ],
16
+ "tags": [
17
+ {
18
+ "name": "Dashboards"
19
+ },
20
+ {
21
+ "name": "Visualisations"
22
+ },
23
+ {
24
+ "name": "Examples"
25
+ }
26
+ ],
27
+ "paths": {
28
+ "/v1/dashboard/dashboards": {
29
+ "get": {
30
+ "operationId": "listDashboards",
31
+ "summary": "listDashboards",
32
+ "description": "List dashboards available to the user",
33
+ "tags": [
34
+ "Dashboards"
35
+ ],
36
+ "responses": {
37
+ "200": {
38
+ "description": "List of dashboards available to the user",
39
+ "content": {
40
+ "application/json": {
41
+ "schema": {
42
+ "type": "object",
43
+ "properties": {
44
+ "results": {
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/components/schemas/Dashboard"
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "post": {
58
+ "operationId": "createDashboard",
59
+ "summary": "createDashboard",
60
+ "description": "Create new dashboard",
61
+ "tags": [
62
+ "Dashboards"
63
+ ],
64
+ "requestBody": {
65
+ "description": "The dashboard to create",
66
+ "content": {
67
+ "application/json": {
68
+ "schema": {
69
+ "$ref": "#/components/schemas/Dashboard"
70
+ }
71
+ }
72
+ }
73
+ },
74
+ "responses": {
75
+ "201": {
76
+ "description": "The created dashboard",
77
+ "content": {
78
+ "application/json": {
79
+ "schema": {
80
+ "$ref": "#/components/schemas/Dashboard"
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "/v1/dashboard/dashboards/{id}": {
89
+ "parameters": [
90
+ {
91
+ "name": "id",
92
+ "in": "path",
93
+ "required": true,
94
+ "schema": {
95
+ "$ref": "#/components/schemas/DashboardID"
96
+ }
97
+ }
98
+ ],
99
+ "get": {
100
+ "operationId": "getDashboard",
101
+ "summary": "getDashboard",
102
+ "description": "Get dashboard by ID",
103
+ "tags": [
104
+ "Dashboards"
105
+ ],
106
+ "responses": {
107
+ "200": {
108
+ "description": "The dashboard with the passed ID",
109
+ "content": {
110
+ "application/json": {
111
+ "schema": {
112
+ "$ref": "#/components/schemas/Dashboard"
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ },
119
+ "put": {
120
+ "operationId": "putDashboard",
121
+ "summary": "putDashboard",
122
+ "description": "Update a dashboard by ID",
123
+ "tags": [
124
+ "Dashboards"
125
+ ],
126
+ "requestBody": {
127
+ "description": "The updated dashboard",
128
+ "content": {
129
+ "application/json": {
130
+ "schema": {
131
+ "$ref": "#/components/schemas/Dashboard"
132
+ }
133
+ }
134
+ }
135
+ },
136
+ "responses": {
137
+ "200": {
138
+ "description": "The dashboard with the passed ID",
139
+ "content": {
140
+ "application/json": {
141
+ "schema": {
142
+ "$ref": "#/components/schemas/Dashboard"
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "delete": {
150
+ "operationId": "deleteDashboard",
151
+ "summary": "deleteDashboard",
152
+ "description": "Delete a dashboard by ID",
153
+ "tags": [
154
+ "Dashboards"
155
+ ],
156
+ "responses": {
157
+ "200": {
158
+ "description": "The deleted dashboard",
159
+ "content": {
160
+ "application/json": {
161
+ "schema": {
162
+ "$ref": "#/components/schemas/Dashboard"
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ },
170
+ "/v1/dashboard/visualisations": {
171
+ "get": {
172
+ "operationId": "listAvailableVisualisations",
173
+ "summary": "listAvailableVisualisations",
174
+ "description": "Returns list of available Visualisations to configure new dashboard tiles",
175
+ "tags": [
176
+ "Visualisations"
177
+ ],
178
+ "responses": {
179
+ "200": {
180
+ "description": "List of available Visualisations to configure new dashboard tiles",
181
+ "content": {
182
+ "application/json": {
183
+ "schema": {
184
+ "type": "object",
185
+ "properties": {
186
+ "results": {
187
+ "type": "array",
188
+ "items": {
189
+ "$ref": "#/components/schemas/Visualisation"
190
+ },
191
+ "example": [
192
+ {
193
+ "visualisation": "timechart",
194
+ "title": "Time Series Visualisation",
195
+ "description": "Visualise your metrics with respect to time series",
196
+ "package_name": "@epilot360/highcharts"
197
+ },
198
+ {
199
+ "visualisation": "kpi",
200
+ "title": "KPI Visualisation",
201
+ "description": "Visualise your key performance indicators",
202
+ "package_name": "@epilot360/kpi"
203
+ }
204
+ ]
205
+ }
206
+ }
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ },
214
+ "/v1/dashboard/examples": {
215
+ "get": {
216
+ "operationId": "listAvailableExamples",
217
+ "summary": "listAvailableExamples",
218
+ "description": "Returns list of available exampless for visualisations to configure new dashboard tiles",
219
+ "tags": [
220
+ "Examples"
221
+ ],
222
+ "responses": {
223
+ "200": {
224
+ "description": "List of available exampless for visualisations to configure new dashboard tiles",
225
+ "content": {
226
+ "application/json": {
227
+ "schema": {
228
+ "type": "object",
229
+ "properties": {
230
+ "results": {
231
+ "type": "array",
232
+ "items": {
233
+ "$ref": "#/components/schemas/Example"
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }
244
+ },
245
+ "components": {
246
+ "schemas": {
247
+ "DashboardID": {
248
+ "description": "Unique identifier for dashboard",
249
+ "type": "string",
250
+ "format": "uuid",
251
+ "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
252
+ },
253
+ "Dashboard": {
254
+ "type": "object",
255
+ "description": "Adashboard configuration with tiles",
256
+ "properties": {
257
+ "id": {
258
+ "$ref": "#/components/schemas/DashboardID"
259
+ },
260
+ "title": {
261
+ "type": "string",
262
+ "example": "Employee Dashboard"
263
+ },
264
+ "tiles": {
265
+ "type": "array",
266
+ "items": {
267
+ "$ref": "#/components/schemas/DashboardTile"
268
+ },
269
+ "example": [
270
+ {
271
+ "id": "e4af1297-1fd6-440f-9846-f475f580d40f",
272
+ "coordinates": {},
273
+ "visualisation": "timechart",
274
+ "visualisation_config": {
275
+ "query": {
276
+ "dataset": "entity_operations",
277
+ "measure": "count_operations",
278
+ "filters": [
279
+ {
280
+ "operation": [
281
+ "createEntity"
282
+ ]
283
+ },
284
+ {
285
+ "entity_schema": [
286
+ "opportunity"
287
+ ]
288
+ }
289
+ ],
290
+ "dimensions": [
291
+ {
292
+ "time_with_granularity": "month"
293
+ },
294
+ {
295
+ "entity_attribute": "source.title"
296
+ }
297
+ ]
298
+ },
299
+ "options": {
300
+ "type": "line"
301
+ }
302
+ }
303
+ }
304
+ ]
305
+ }
306
+ },
307
+ "required": [
308
+ "title",
309
+ "tiles"
310
+ ]
311
+ },
312
+ "DashboardTileID": {
313
+ "description": "Unique identifier for a tile in a dashboard",
314
+ "type": "string",
315
+ "format": "uuid",
316
+ "example": "e4af1297-1fd6-440f-9846-f475f580d40f"
317
+ },
318
+ "DashboardTile": {
319
+ "type": "object",
320
+ "properties": {
321
+ "id": {
322
+ "$ref": "#/components/schemas/DashboardTileID"
323
+ },
324
+ "coordinates": {
325
+ "type": "object"
326
+ },
327
+ "title": {
328
+ "type": "string",
329
+ "example": "Number of opportunities created by journeys every month"
330
+ },
331
+ "visualisation_id": {
332
+ "$ref": "#/components/schemas/VisualisationId"
333
+ },
334
+ "visualisation_config": {
335
+ "$ref": "#/components/schemas/VisualisationConfig"
336
+ }
337
+ }
338
+ },
339
+ "VisualisationConfig": {
340
+ "anyOf": [
341
+ {
342
+ "$ref": "#/components/schemas/timechartVisualisationConfig"
343
+ }
344
+ ]
345
+ },
346
+ "timechartVisualisationConfig": {
347
+ "type": "object",
348
+ "properties": {
349
+ "query": {
350
+ "$ref": "#/components/schemas/DatalakeQuery"
351
+ },
352
+ "options": {
353
+ "type": "object",
354
+ "additionalProperties": true,
355
+ "example": {
356
+ "type": "bar"
357
+ }
358
+ }
359
+ }
360
+ },
361
+ "ExampleID": {
362
+ "description": "Unique identifier for a visualisation examples for tiles in a dashboard",
363
+ "type": "string",
364
+ "format": "uuid",
365
+ "example": "e4af1297-1fd6-440f-9846-f475f580d40f"
366
+ },
367
+ "Example": {
368
+ "type": "object",
369
+ "properties": {
370
+ "id": {
371
+ "$ref": "#/components/schemas/ExampleID"
372
+ },
373
+ "title": {
374
+ "type": "string",
375
+ "example": "Number of opportunities created by journeys every month"
376
+ },
377
+ "visualisation": {
378
+ "$ref": "#/components/schemas/VisualisationId"
379
+ },
380
+ "query": {
381
+ "$ref": "#/components/schemas/DatalakeQuery"
382
+ }
383
+ }
384
+ },
385
+ "DatalakeQuery": {
386
+ "type": "object",
387
+ "properties": {
388
+ "dataset": {
389
+ "type": "string",
390
+ "example": "entity_operations"
391
+ },
392
+ "measure": {
393
+ "type": "string",
394
+ "example": "count_operations"
395
+ },
396
+ "dimensions": {
397
+ "type": "array",
398
+ "items": {
399
+ "type": "object",
400
+ "additionalProperties": true,
401
+ "example": {
402
+ "time_with_granularity": "year-month"
403
+ }
404
+ }
405
+ },
406
+ "filters": {
407
+ "type": "array",
408
+ "items": {
409
+ "type": "object",
410
+ "additionalProperties": true,
411
+ "example": {
412
+ "entity_schema": "opportunity"
413
+ }
414
+ }
415
+ }
416
+ },
417
+ "additionalProperties": true
418
+ },
419
+ "VisualisationId": {
420
+ "description": "Unique identifier for a Visualisation",
421
+ "type": "string",
422
+ "example": "timechart",
423
+ "enum": [
424
+ "kpi",
425
+ "funnel",
426
+ "toplist",
427
+ "timechart",
428
+ "pie",
429
+ "bar",
430
+ "entity_list",
431
+ "markdown",
432
+ "news_feed",
433
+ "workflow"
434
+ ]
435
+ },
436
+ "Visualisation": {
437
+ "type": "object",
438
+ "description": "A Visualisation that can be used to configure tiles in dashboards",
439
+ "properties": {
440
+ "visualisation": {
441
+ "$ref": "#/components/schemas/VisualisationId"
442
+ },
443
+ "title": {
444
+ "type": "string",
445
+ "example": "Time Series Visualisation"
446
+ },
447
+ "description": {
448
+ "type": "string"
449
+ },
450
+ "package_name": {
451
+ "type": "string",
452
+ "description": "Package name of the Visualisation MFE bundle to import",
453
+ "example": "@epilot360/highcharts"
454
+ },
455
+ "import_url": {
456
+ "type": "string",
457
+ "format": "uri",
458
+ "description": "URL to Visualisation MFE bundle to import",
459
+ "example": "https://epilot-dashboard-visualisations.epilot.io/epilot360-datalake-visualisation/bundle.js?version=1650592827"
460
+ }
461
+ }
462
+ }
463
+ },
464
+ "securitySchemes": {
465
+ "EpilotAuth": {
466
+ "type": "http",
467
+ "scheme": "bearer",
468
+ "description": "Authorization header with epilot OAuth2 bearer token",
469
+ "bearerFormat": "JWT"
470
+ },
471
+ "EpilotOrg": {
472
+ "description": "Overrides the target organization to allow shared tenantaccess",
473
+ "name": "x-epilot-org-id",
474
+ "in": "header",
475
+ "type": "apiKey"
476
+ }
477
+ }
478
+ },
479
+ "servers": [
480
+ {
481
+ "url": "https://dashboard.sls.epilot.io"
482
+ }
483
+ ]
484
+ }