@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.
- package/LICENSE +21 -0
- package/README.md +354 -0
- package/definitions/access-token.json +663 -0
- package/definitions/address-suggestions.json +582 -0
- package/definitions/address.json +578 -0
- package/definitions/ai-agents.json +1711 -0
- package/definitions/app.json +4443 -0
- package/definitions/audit-logs.json +305 -0
- package/definitions/automation.json +4815 -0
- package/definitions/billing.json +837 -0
- package/definitions/blueprint-manifest.json +3376 -0
- package/definitions/consent.json +344 -0
- package/definitions/customer-portal.json +15000 -0
- package/definitions/dashboard.json +484 -0
- package/definitions/data-management.json +962 -0
- package/definitions/deduplication.json +183 -0
- package/definitions/design.json +1423 -0
- package/definitions/document.json +758 -0
- package/definitions/email-settings.json +2627 -0
- package/definitions/email-template.json +1419 -0
- package/definitions/entity-mapping.json +1642 -0
- package/definitions/entity.json +10074 -0
- package/definitions/environments.json +363 -0
- package/definitions/erp-integration.json +5845 -0
- package/definitions/event-catalog.json +1051 -0
- package/definitions/file.json +2842 -0
- package/definitions/iban.json +132 -0
- package/definitions/journey.json +2341 -0
- package/definitions/kanban.json +929 -0
- package/definitions/message.json +2660 -0
- package/definitions/metering.json +2321 -0
- package/definitions/notes.json +1531 -0
- package/definitions/notification.json +1425 -0
- package/definitions/organization.json +629 -0
- package/definitions/partner-directory.json +1718 -0
- package/definitions/permissions.json +1480 -0
- package/definitions/pricing-tier.json +105 -0
- package/definitions/pricing.json +9884 -0
- package/definitions/purpose.json +524 -0
- package/definitions/sandbox.json +453 -0
- package/definitions/submission.json +313 -0
- package/definitions/targeting.json +1474 -0
- package/definitions/template-variables.json +1408 -0
- package/definitions/user.json +2408 -0
- package/definitions/validation-rules.json +1491 -0
- package/definitions/webhooks.json +1525 -0
- package/definitions/workflow-definition.json +3417 -0
- package/definitions/workflow.json +4106 -0
- package/dist/access-token-OG5AR7UB.js +51 -0
- package/dist/address-QUSMK5GV.js +51 -0
- package/dist/address-suggestions-E5SQNUS5.js +51 -0
- package/dist/ai-agents-PM42SJY3.js +51 -0
- package/dist/app-YTM3XAJL.js +51 -0
- package/dist/audit-logs-NXP7GFKX.js +51 -0
- package/dist/auth-CCBTXH5U.js +113 -0
- package/dist/auth-login-2ZIXM47J.js +137 -0
- package/dist/auth-token-OS4BEEVZ.js +43 -0
- package/dist/automation-TDJASTEV.js +51 -0
- package/dist/billing-M4MRBLEK.js +51 -0
- package/dist/bin/epilot.js +104 -0
- package/dist/blueprint-manifest-NQL7NRMV.js +51 -0
- package/dist/chunk-57PPARIW.js +715 -0
- package/dist/chunk-5WUPDZ5D.js +76 -0
- package/dist/chunk-IST42ZNL.js +78 -0
- package/dist/chunk-RC3GCXCI.js +76 -0
- package/dist/chunk-TKZLQD2B.js +72 -0
- package/dist/chunk-UJ6TU34M.js +56 -0
- package/dist/completion-GRQM2FJQ.js +168 -0
- package/dist/consent-KQ7MJAS6.js +51 -0
- package/dist/customer-portal-VUVSKWAQ.js +51 -0
- package/dist/dashboard-GVR4XNGR.js +51 -0
- package/dist/data-management-2RD3DLOS.js +51 -0
- package/dist/deduplication-PY77EINR.js +51 -0
- package/dist/design-M4FP2K5R.js +51 -0
- package/dist/document-P4QA7LEZ.js +51 -0
- package/dist/email-settings-7HGGRCCM.js +51 -0
- package/dist/email-template-3HXQI4CH.js +51 -0
- package/dist/entity-XUESZBPJ.js +51 -0
- package/dist/entity-mapping-JBKWWBH2.js +51 -0
- package/dist/environments-KKOS7ONY.js +51 -0
- package/dist/erp-integration-YTOWHCAW.js +51 -0
- package/dist/event-catalog-UKLZUGC4.js +51 -0
- package/dist/file-IFZNZ547.js +51 -0
- package/dist/iban-X2IW2NWU.js +51 -0
- package/dist/interactive-46ICLQKL.js +16 -0
- package/dist/journey-JU6X2KMX.js +51 -0
- package/dist/kanban-VHUU44PM.js +51 -0
- package/dist/message-AOUWJ4YX.js +51 -0
- package/dist/metering-RDS3XBD5.js +51 -0
- package/dist/notes-WE2UC75B.js +51 -0
- package/dist/notification-FKFNBHYZ.js +51 -0
- package/dist/organization-LMNFF6BX.js +51 -0
- package/dist/partner-directory-IIZVQDXJ.js +51 -0
- package/dist/permissions-AYCMVM7Y.js +51 -0
- package/dist/pricing-PS26FWBS.js +51 -0
- package/dist/pricing-tier-FBXWQ6T3.js +51 -0
- package/dist/profile-5Q5YARG7.js +135 -0
- package/dist/purpose-HE4E4SVU.js +51 -0
- package/dist/sandbox-Z7BU4UAD.js +51 -0
- package/dist/submission-MWVDF2ZB.js +51 -0
- package/dist/targeting-7NM5GDJ6.js +51 -0
- package/dist/template-variables-AJAR7PAV.js +51 -0
- package/dist/user-A26XQXG3.js +51 -0
- package/dist/validation-rules-VZTISEG2.js +51 -0
- package/dist/webhooks-RXH67WZ3.js +51 -0
- package/dist/workflow-G4FUUGZQ.js +51 -0
- package/dist/workflow-definition-LJYLMMGD.js +51 -0
- package/package.json +62 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.3",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Consent API",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": "Consent Management for epilot customer entities\n"
|
|
7
|
+
},
|
|
8
|
+
"tags": [
|
|
9
|
+
{
|
|
10
|
+
"name": "consent",
|
|
11
|
+
"description": "Consent Management"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"security": [
|
|
15
|
+
{
|
|
16
|
+
"EpilotAuth": []
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/v1/consent/publish": {
|
|
21
|
+
"post": {
|
|
22
|
+
"operationId": "publishConsentEvent",
|
|
23
|
+
"summary": "publishConsentEvent",
|
|
24
|
+
"description": "Publishes consent event on event bus, which appends to consent store\n",
|
|
25
|
+
"tags": [
|
|
26
|
+
"consent"
|
|
27
|
+
],
|
|
28
|
+
"requestBody": {
|
|
29
|
+
"content": {
|
|
30
|
+
"application/json": {
|
|
31
|
+
"schema": {
|
|
32
|
+
"$ref": "#/components/schemas/ConsentEventRequestBody"
|
|
33
|
+
},
|
|
34
|
+
"examples": {
|
|
35
|
+
"OptInEmailMarketing": {
|
|
36
|
+
"$ref": "#/components/examples/ConsentOptInEmailMarketing"
|
|
37
|
+
},
|
|
38
|
+
"OptInSMSMarketing": {
|
|
39
|
+
"$ref": "#/components/examples/ConsentOptInSMSMarketing"
|
|
40
|
+
},
|
|
41
|
+
"OptInPhoneCallMarketing": {
|
|
42
|
+
"$ref": "#/components/examples/ConsentOptInPhoneCallMarketing"
|
|
43
|
+
},
|
|
44
|
+
"OptOutEmailMarketing": {
|
|
45
|
+
"$ref": "#/components/examples/ConsentOptOutEmailMarketing"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"responses": {
|
|
52
|
+
"201": {
|
|
53
|
+
"description": "The created opt-in",
|
|
54
|
+
"content": {
|
|
55
|
+
"application/json": {
|
|
56
|
+
"schema": {
|
|
57
|
+
"$ref": "#/components/schemas/ConsentEvent"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"/v1/consent/{identifier}": {
|
|
66
|
+
"get": {
|
|
67
|
+
"operationId": "listConsentEvents",
|
|
68
|
+
"summary": "listConsentEvents",
|
|
69
|
+
"description": "List opt-ins and opt-outs by customer identifier\n",
|
|
70
|
+
"tags": [
|
|
71
|
+
"consent"
|
|
72
|
+
],
|
|
73
|
+
"parameters": [
|
|
74
|
+
{
|
|
75
|
+
"name": "identifier",
|
|
76
|
+
"in": "path",
|
|
77
|
+
"required": true,
|
|
78
|
+
"schema": {
|
|
79
|
+
"$ref": "#/components/schemas/ConsentIdentifier"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "topic",
|
|
84
|
+
"in": "query",
|
|
85
|
+
"required": false,
|
|
86
|
+
"schema": {
|
|
87
|
+
"$ref": "#/components/schemas/ConsentTopic"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "limit",
|
|
92
|
+
"in": "query",
|
|
93
|
+
"required": false,
|
|
94
|
+
"schema": {
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"default": 50,
|
|
97
|
+
"minimum": 1,
|
|
98
|
+
"maximum": 100
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "from",
|
|
103
|
+
"in": "query",
|
|
104
|
+
"required": false,
|
|
105
|
+
"schema": {
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"default": 0,
|
|
108
|
+
"minimum": 0
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"responses": {
|
|
113
|
+
"200": {
|
|
114
|
+
"description": "list of opt-ins and opt-outs",
|
|
115
|
+
"content": {
|
|
116
|
+
"application/json": {
|
|
117
|
+
"schema": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"events": {
|
|
121
|
+
"type": "array",
|
|
122
|
+
"items": {
|
|
123
|
+
"$ref": "#/components/schemas/ConsentEvent"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"total": {
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"example": 1
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"/v1/opt-in/{token}": {
|
|
139
|
+
"get": {
|
|
140
|
+
"operationId": "handleOptInWithToken",
|
|
141
|
+
"summary": "handleOptInWithToken",
|
|
142
|
+
"security": [],
|
|
143
|
+
"description": "Endpoint to handle opt-in links\n",
|
|
144
|
+
"tags": [
|
|
145
|
+
"consent"
|
|
146
|
+
],
|
|
147
|
+
"parameters": [
|
|
148
|
+
{
|
|
149
|
+
"name": "token",
|
|
150
|
+
"in": "path",
|
|
151
|
+
"required": true,
|
|
152
|
+
"schema": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "lang",
|
|
158
|
+
"in": "query",
|
|
159
|
+
"schema": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"default": "de"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"responses": {
|
|
166
|
+
"200": {
|
|
167
|
+
"description": "Handler page for opt in links",
|
|
168
|
+
"content": {
|
|
169
|
+
"text/html": {
|
|
170
|
+
"example": "<p>You are subscribed!</p>\n"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"components": {
|
|
179
|
+
"securitySchemes": {
|
|
180
|
+
"EpilotAuth": {
|
|
181
|
+
"type": "http",
|
|
182
|
+
"scheme": "bearer",
|
|
183
|
+
"description": "Epilot Id Token\n"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"schemas": {
|
|
187
|
+
"ConsentIdentifier": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "Unique identifier for consent source (e.g. customer email or phone)",
|
|
190
|
+
"example": "exampleuser@epilot.cloud"
|
|
191
|
+
},
|
|
192
|
+
"ConsentTopic": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "Consent Topic (what the person is opting into)",
|
|
195
|
+
"example": "EMAIL_MARKETING"
|
|
196
|
+
},
|
|
197
|
+
"ConsentSource": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"description": "Consent Source (Origin of the Consent Event)",
|
|
200
|
+
"example": "www.frontend.epilot.cloud"
|
|
201
|
+
},
|
|
202
|
+
"ConsentMeta": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"additionalProperties": true,
|
|
205
|
+
"example": {
|
|
206
|
+
"double_opt_in": true,
|
|
207
|
+
"source_type": "journey",
|
|
208
|
+
"source_id": "0e4f2a26-14f0-4ada-9294-a7d7a0b9b214",
|
|
209
|
+
"ip_address": "1.1.1.1",
|
|
210
|
+
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"ConsentEventRequestBody": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"properties": {
|
|
216
|
+
"type": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"enum": [
|
|
219
|
+
"OPT_IN",
|
|
220
|
+
"OPT_OUT"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"topic": {
|
|
224
|
+
"$ref": "#/components/schemas/ConsentTopic"
|
|
225
|
+
},
|
|
226
|
+
"source": {
|
|
227
|
+
"$ref": "#/components/schemas/ConsentSource"
|
|
228
|
+
},
|
|
229
|
+
"identifier": {
|
|
230
|
+
"$ref": "#/components/schemas/ConsentIdentifier"
|
|
231
|
+
},
|
|
232
|
+
"meta": {
|
|
233
|
+
"$ref": "#/components/schemas/ConsentMeta"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": [
|
|
237
|
+
"type",
|
|
238
|
+
"topic",
|
|
239
|
+
"identifier"
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
"ConsentEvent": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"properties": {
|
|
245
|
+
"type": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"enum": [
|
|
248
|
+
"OPT_IN",
|
|
249
|
+
"OPT_OUT",
|
|
250
|
+
"DOUBLE_OPT_IN_REQUESTED",
|
|
251
|
+
"DOUBLE_OPT_IN"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"created_at": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"format": "date-time"
|
|
257
|
+
},
|
|
258
|
+
"topic": {
|
|
259
|
+
"$ref": "#/components/schemas/ConsentTopic"
|
|
260
|
+
},
|
|
261
|
+
"source": {
|
|
262
|
+
"$ref": "#/components/schemas/ConsentSource"
|
|
263
|
+
},
|
|
264
|
+
"organization_id": {
|
|
265
|
+
"$ref": "#/components/schemas/OrganizationId"
|
|
266
|
+
},
|
|
267
|
+
"identifier": {
|
|
268
|
+
"$ref": "#/components/schemas/ConsentIdentifier"
|
|
269
|
+
},
|
|
270
|
+
"meta": {
|
|
271
|
+
"$ref": "#/components/schemas/ConsentMeta"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"required": [
|
|
275
|
+
"type",
|
|
276
|
+
"topic",
|
|
277
|
+
"identifier"
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
"OrganizationId": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"example": "123"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"examples": {
|
|
286
|
+
"ConsentOptInEmailMarketing": {
|
|
287
|
+
"value": {
|
|
288
|
+
"type": "OPT_IN",
|
|
289
|
+
"topic": "EMAIL_MARKETING",
|
|
290
|
+
"identifier": "exampleuser@epilot.cloud",
|
|
291
|
+
"source": "frontend.epilot.cloud",
|
|
292
|
+
"meta": {
|
|
293
|
+
"ip_address": "1.1.1.1",
|
|
294
|
+
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"ConsentOptOutEmailMarketing": {
|
|
299
|
+
"value": {
|
|
300
|
+
"type": "OPT_OUT",
|
|
301
|
+
"topic": "EMAIL_MARKETING",
|
|
302
|
+
"identifier": "exampleuser@epilot.cloud",
|
|
303
|
+
"source": "unsubscribe via email",
|
|
304
|
+
"meta": {
|
|
305
|
+
"ip_address": "1.1.1.1",
|
|
306
|
+
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"ConsentOptInSMSMarketing": {
|
|
311
|
+
"value": {
|
|
312
|
+
"type": "OPT_IN",
|
|
313
|
+
"topic": "SMS_MARKETING",
|
|
314
|
+
"identifier": "+49 123 1234567",
|
|
315
|
+
"source": "frontend.epilot.cloud",
|
|
316
|
+
"meta": {
|
|
317
|
+
"ip_address": "1.1.1.1",
|
|
318
|
+
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"ConsentOptInPhoneCallMarketing": {
|
|
323
|
+
"value": {
|
|
324
|
+
"type": "OPT_IN",
|
|
325
|
+
"topic": "PHONE_CALL_MARKETING",
|
|
326
|
+
"identifier": "+49 123 1234567",
|
|
327
|
+
"source": "frontend.epilot.cloud",
|
|
328
|
+
"meta": {
|
|
329
|
+
"ip_address": "1.1.1.1",
|
|
330
|
+
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"servers": [
|
|
337
|
+
{
|
|
338
|
+
"url": "https://consent.sls.epilot.io"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"url": "https://consent.sls.epilot.io"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
}
|