epilot 0.1.0 → 0.1.2

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/README.md +7 -345
  2. package/bin/epilot.js +5 -0
  3. package/package.json +7 -33
  4. package/definitions/access-token.json +0 -663
  5. package/definitions/address-suggestions.json +0 -582
  6. package/definitions/address.json +0 -578
  7. package/definitions/ai-agents.json +0 -1711
  8. package/definitions/app.json +0 -4443
  9. package/definitions/audit-logs.json +0 -305
  10. package/definitions/automation.json +0 -4815
  11. package/definitions/billing.json +0 -837
  12. package/definitions/blueprint-manifest.json +0 -3376
  13. package/definitions/consent.json +0 -344
  14. package/definitions/customer-portal.json +0 -15000
  15. package/definitions/dashboard.json +0 -484
  16. package/definitions/data-management.json +0 -962
  17. package/definitions/deduplication.json +0 -183
  18. package/definitions/design.json +0 -1423
  19. package/definitions/document.json +0 -758
  20. package/definitions/email-settings.json +0 -2627
  21. package/definitions/email-template.json +0 -1419
  22. package/definitions/entity-mapping.json +0 -1642
  23. package/definitions/entity.json +0 -10074
  24. package/definitions/environments.json +0 -363
  25. package/definitions/erp-integration.json +0 -5845
  26. package/definitions/event-catalog.json +0 -1051
  27. package/definitions/file.json +0 -2842
  28. package/definitions/iban.json +0 -132
  29. package/definitions/journey.json +0 -2341
  30. package/definitions/kanban.json +0 -929
  31. package/definitions/message.json +0 -2660
  32. package/definitions/metering.json +0 -2321
  33. package/definitions/notes.json +0 -1531
  34. package/definitions/notification.json +0 -1425
  35. package/definitions/organization.json +0 -629
  36. package/definitions/partner-directory.json +0 -1718
  37. package/definitions/permissions.json +0 -1480
  38. package/definitions/pricing-tier.json +0 -105
  39. package/definitions/pricing.json +0 -9884
  40. package/definitions/purpose.json +0 -524
  41. package/definitions/sandbox.json +0 -453
  42. package/definitions/submission.json +0 -313
  43. package/definitions/targeting.json +0 -1474
  44. package/definitions/template-variables.json +0 -1408
  45. package/definitions/user.json +0 -2408
  46. package/definitions/validation-rules.json +0 -1491
  47. package/definitions/webhooks.json +0 -1525
  48. package/definitions/workflow-definition.json +0 -3417
  49. package/definitions/workflow.json +0 -4106
  50. package/dist/access-token-OG5AR7UB.js +0 -51
  51. package/dist/address-QUSMK5GV.js +0 -51
  52. package/dist/address-suggestions-E5SQNUS5.js +0 -51
  53. package/dist/ai-agents-PM42SJY3.js +0 -51
  54. package/dist/app-YTM3XAJL.js +0 -51
  55. package/dist/audit-logs-NXP7GFKX.js +0 -51
  56. package/dist/auth-CCBTXH5U.js +0 -113
  57. package/dist/auth-login-2ZIXM47J.js +0 -137
  58. package/dist/auth-token-OS4BEEVZ.js +0 -43
  59. package/dist/automation-TDJASTEV.js +0 -51
  60. package/dist/billing-M4MRBLEK.js +0 -51
  61. package/dist/bin/epilot.js +0 -104
  62. package/dist/blueprint-manifest-NQL7NRMV.js +0 -51
  63. package/dist/chunk-57PPARIW.js +0 -715
  64. package/dist/chunk-5WUPDZ5D.js +0 -76
  65. package/dist/chunk-IST42ZNL.js +0 -78
  66. package/dist/chunk-RC3GCXCI.js +0 -76
  67. package/dist/chunk-TKZLQD2B.js +0 -72
  68. package/dist/chunk-UJ6TU34M.js +0 -56
  69. package/dist/completion-GRQM2FJQ.js +0 -168
  70. package/dist/consent-KQ7MJAS6.js +0 -51
  71. package/dist/customer-portal-VUVSKWAQ.js +0 -51
  72. package/dist/dashboard-GVR4XNGR.js +0 -51
  73. package/dist/data-management-2RD3DLOS.js +0 -51
  74. package/dist/deduplication-PY77EINR.js +0 -51
  75. package/dist/design-M4FP2K5R.js +0 -51
  76. package/dist/document-P4QA7LEZ.js +0 -51
  77. package/dist/email-settings-7HGGRCCM.js +0 -51
  78. package/dist/email-template-3HXQI4CH.js +0 -51
  79. package/dist/entity-XUESZBPJ.js +0 -51
  80. package/dist/entity-mapping-JBKWWBH2.js +0 -51
  81. package/dist/environments-KKOS7ONY.js +0 -51
  82. package/dist/erp-integration-YTOWHCAW.js +0 -51
  83. package/dist/event-catalog-UKLZUGC4.js +0 -51
  84. package/dist/file-IFZNZ547.js +0 -51
  85. package/dist/iban-X2IW2NWU.js +0 -51
  86. package/dist/interactive-46ICLQKL.js +0 -16
  87. package/dist/journey-JU6X2KMX.js +0 -51
  88. package/dist/kanban-VHUU44PM.js +0 -51
  89. package/dist/message-AOUWJ4YX.js +0 -51
  90. package/dist/metering-RDS3XBD5.js +0 -51
  91. package/dist/notes-WE2UC75B.js +0 -51
  92. package/dist/notification-FKFNBHYZ.js +0 -51
  93. package/dist/organization-LMNFF6BX.js +0 -51
  94. package/dist/partner-directory-IIZVQDXJ.js +0 -51
  95. package/dist/permissions-AYCMVM7Y.js +0 -51
  96. package/dist/pricing-PS26FWBS.js +0 -51
  97. package/dist/pricing-tier-FBXWQ6T3.js +0 -51
  98. package/dist/profile-5Q5YARG7.js +0 -135
  99. package/dist/purpose-HE4E4SVU.js +0 -51
  100. package/dist/sandbox-Z7BU4UAD.js +0 -51
  101. package/dist/submission-MWVDF2ZB.js +0 -51
  102. package/dist/targeting-7NM5GDJ6.js +0 -51
  103. package/dist/template-variables-AJAR7PAV.js +0 -51
  104. package/dist/user-A26XQXG3.js +0 -51
  105. package/dist/validation-rules-VZTISEG2.js +0 -51
  106. package/dist/webhooks-RXH67WZ3.js +0 -51
  107. package/dist/workflow-G4FUUGZQ.js +0 -51
  108. package/dist/workflow-definition-LJYLMMGD.js +0 -51
@@ -1,313 +0,0 @@
1
- {
2
- "openapi": "3.0.2",
3
- "info": {
4
- "title": "Submission API",
5
- "version": "1.0.0",
6
- "description": "Use this API to handle submissions entities from external sources e.g. journeys and frontends\n"
7
- },
8
- "tags": [
9
- {
10
- "name": "Submissions",
11
- "description": "Journey Submission"
12
- },
13
- {
14
- "name": "submission_schema",
15
- "x-displayName": "Submission",
16
- "description": "<SchemaDefinition schemaRef=\"#/components/schemas/SubmissionEntity\" />\n"
17
- }
18
- ],
19
- "x-tagGroups": [
20
- {
21
- "name": "APIs",
22
- "tags": [
23
- "Submissions"
24
- ]
25
- },
26
- {
27
- "name": "Schemas",
28
- "tags": [
29
- "submission_schema"
30
- ]
31
- }
32
- ],
33
- "security": [
34
- {},
35
- {
36
- "EpilotAuth": []
37
- }
38
- ],
39
- "paths": {
40
- "/v1/submission/submissions": {
41
- "post": {
42
- "operationId": "createSubmission",
43
- "summary": "createSubmission",
44
- "description": "Creates a submission from a public facing Journey\n",
45
- "tags": [
46
- "Submissions"
47
- ],
48
- "requestBody": {
49
- "content": {
50
- "application/json": {
51
- "schema": {
52
- "$ref": "#/components/schemas/SubmissionPayload"
53
- }
54
- }
55
- }
56
- },
57
- "responses": {
58
- "201": {
59
- "description": "Success"
60
- }
61
- }
62
- }
63
- },
64
- "/v1/submission/nonce/{nonce_id}": {
65
- "get": {
66
- "operationId": "getNonce",
67
- "summary": "Check if a nonce was already used (aka exists in storage)",
68
- "description": "Returns { exists: boolean } along some meta data",
69
- "tags": [
70
- "Submissions"
71
- ],
72
- "parameters": [
73
- {
74
- "name": "nonce_id",
75
- "in": "path",
76
- "required": true,
77
- "schema": {
78
- "type": "string"
79
- }
80
- }
81
- ],
82
- "responses": {
83
- "200": {
84
- "description": "Nonce found",
85
- "content": {
86
- "application/json": {
87
- "schema": {
88
- "allOf": [
89
- {
90
- "$ref": "#/components/schemas/SubmissionNonce"
91
- },
92
- {
93
- "type": "object",
94
- "properties": {
95
- "exists": {
96
- "type": "boolean",
97
- "example": true
98
- }
99
- }
100
- }
101
- ]
102
- }
103
- }
104
- }
105
- }
106
- }
107
- }
108
- }
109
- },
110
- "components": {
111
- "securitySchemes": {
112
- "EpilotAuth": {
113
- "type": "http",
114
- "scheme": "bearer",
115
- "description": "Epilot Authorization Bearer Token - public access token / user token",
116
- "bearerFormat": "JWT"
117
- }
118
- },
119
- "schemas": {
120
- "SubmissionNonce": {
121
- "type": "object",
122
- "properties": {
123
- "nonce": {
124
- "type": "string"
125
- },
126
- "submission_id": {
127
- "type": "string"
128
- },
129
- "organization_id": {
130
- "type": "string"
131
- },
132
- "ttl": {
133
- "type": "number"
134
- }
135
- },
136
- "required": [
137
- "nonce",
138
- "submission_id",
139
- "organization_id"
140
- ]
141
- },
142
- "SubmissionPayload": {
143
- "description": "Holds content and meta information",
144
- "type": "object",
145
- "properties": {
146
- "organization_id": {
147
- "description": "organization id – defaults to token value",
148
- "type": "string",
149
- "example": "123"
150
- },
151
- "journey_submit_id": {
152
- "description": "journey submit uid",
153
- "type": "string",
154
- "example": "123"
155
- },
156
- "source_type": {
157
- "type": "string",
158
- "description": "type of source, e.g. journey or frontend",
159
- "example": "journey"
160
- },
161
- "source_id": {
162
- "type": "string",
163
- "description": "identifier for source e.g. journey ID or frontend ID",
164
- "example": "ce99875f-fba9-4fe2-a8f9-afaf52059051"
165
- },
166
- "opt_ins": {
167
- "description": "Opt-ins to create from submission\n",
168
- "type": "array",
169
- "maxItems": 10,
170
- "items": {
171
- "$ref": "#/components/schemas/OptIn"
172
- }
173
- },
174
- "entities": {
175
- "description": "Entities to create from submission\n",
176
- "type": "array",
177
- "minItems": 1,
178
- "maxItems": 10,
179
- "items": {
180
- "$ref": "#/components/schemas/SubmissionEntity"
181
- }
182
- },
183
- "_ivy_opportunity_ids": {
184
- "deprecated": true,
185
- "description": "Related Ivy Opportunity Ids",
186
- "type": "array",
187
- "minItems": 1,
188
- "items": {
189
- "type": "string"
190
- }
191
- }
192
- },
193
- "required": [
194
- "source_type",
195
- "source_id",
196
- "entities"
197
- ]
198
- },
199
- "SubmissionEntity": {
200
- "type": "object",
201
- "description": "The submission entity to create",
202
- "additionalProperties": true,
203
- "properties": {
204
- "_schema": {
205
- "type": "string",
206
- "enum": [
207
- "submission"
208
- ]
209
- },
210
- "description": {
211
- "type": "string",
212
- "description": "Readable description of the submission. Will be used as the title if passed"
213
- },
214
- "files": {
215
- "type": "array",
216
- "description": "Files to attach to Submission Entity as a relation (s3refs from File API)\n",
217
- "items": {
218
- "type": "object",
219
- "properties": {
220
- "s3ref": {
221
- "$ref": "#/components/schemas/S3Reference"
222
- },
223
- "filename": {
224
- "type": "string",
225
- "description": "Override the file name"
226
- },
227
- "_tags": {
228
- "type": "array",
229
- "description": "List of tags for File entities",
230
- "items": {
231
- "type": "string"
232
- }
233
- },
234
- "relation_tags": {
235
- "type": "array",
236
- "description": "List of relation labels for File attachments",
237
- "items": {
238
- "type": "string"
239
- }
240
- }
241
- },
242
- "additionalProperties": true,
243
- "required": [
244
- "s3ref"
245
- ]
246
- }
247
- }
248
- },
249
- "required": [
250
- "_schema"
251
- ],
252
- "example": {
253
- "_schema": "submission",
254
- "description": "Submission created via API",
255
- "contact_first_name": "First",
256
- "contact_last_name": "Last",
257
- "contact_email": "example@submission.com",
258
- "request": "I would like to know more about electric vehicles",
259
- "files": [
260
- {
261
- "s3ref": {
262
- "bucket": "epilot-user-content",
263
- "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
264
- },
265
- "filename": "document.pdf"
266
- }
267
- ]
268
- }
269
- },
270
- "OptIn": {
271
- "type": "object",
272
- "properties": {
273
- "topic": {
274
- "type": "string",
275
- "example": "EMAIL_MARKETING"
276
- },
277
- "identifier": {
278
- "type": "string",
279
- "description": "Consent identifier",
280
- "example": "example@email.com"
281
- },
282
- "meta": {
283
- "type": "object",
284
- "additionalProperties": true
285
- }
286
- }
287
- },
288
- "S3Reference": {
289
- "type": "object",
290
- "description": "S3 Reference from File API",
291
- "properties": {
292
- "bucket": {
293
- "type": "string",
294
- "example": "epilot-user-content"
295
- },
296
- "key": {
297
- "type": "string",
298
- "example": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
299
- }
300
- },
301
- "required": [
302
- "bucket",
303
- "key"
304
- ]
305
- }
306
- }
307
- },
308
- "servers": [
309
- {
310
- "url": "https://submission.sls.epilot.io"
311
- }
312
- ]
313
- }