@epilot/sdk 2.0.0-beta.3 → 2.0.0-beta.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.
- package/definitions/access-token-runtime.json +1 -0
- package/definitions/access-token.json +663 -0
- package/definitions/address-runtime.json +1 -0
- package/definitions/address-suggestions-runtime.json +1 -0
- package/definitions/address-suggestions.json +582 -0
- package/definitions/address.json +578 -0
- package/definitions/ai-agents-runtime.json +1 -0
- package/definitions/ai-agents.json +1711 -0
- package/definitions/app-runtime.json +1 -0
- package/definitions/app.json +4443 -0
- package/definitions/audit-logs-runtime.json +1 -0
- package/definitions/audit-logs.json +305 -0
- package/definitions/automation-runtime.json +1 -0
- package/definitions/automation.json +4850 -0
- package/definitions/billing-runtime.json +1 -0
- package/definitions/billing.json +837 -0
- package/definitions/blueprint-manifest-runtime.json +1 -0
- package/definitions/blueprint-manifest.json +3376 -0
- package/definitions/consent-runtime.json +1 -0
- package/definitions/consent.json +344 -0
- package/definitions/customer-portal-runtime.json +1 -0
- package/definitions/customer-portal.json +15000 -0
- package/definitions/dashboard-runtime.json +1 -0
- package/definitions/dashboard.json +484 -0
- package/definitions/data-management-runtime.json +1 -0
- package/definitions/data-management.json +962 -0
- package/definitions/deduplication-runtime.json +1 -0
- package/definitions/deduplication.json +183 -0
- package/definitions/design-runtime.json +1 -0
- package/definitions/design.json +1423 -0
- package/definitions/document-runtime.json +1 -0
- package/definitions/document.json +758 -0
- package/definitions/email-settings-runtime.json +1 -0
- package/definitions/email-settings.json +2627 -0
- package/definitions/email-template-runtime.json +1 -0
- package/definitions/email-template.json +1419 -0
- package/definitions/entity-mapping-runtime.json +1 -0
- package/definitions/entity-mapping.json +1642 -0
- package/definitions/entity-runtime.json +1 -0
- package/definitions/entity.json +10074 -0
- package/definitions/environments-runtime.json +1 -0
- package/definitions/environments.json +363 -0
- package/definitions/erp-integration-runtime.json +1 -0
- package/definitions/erp-integration.json +5845 -0
- package/definitions/event-catalog-runtime.json +1 -0
- package/definitions/event-catalog.json +1051 -0
- package/definitions/file-runtime.json +1 -0
- package/definitions/file.json +2842 -0
- package/definitions/iban-runtime.json +1 -0
- package/definitions/iban.json +132 -0
- package/definitions/journey-runtime.json +1 -0
- package/definitions/journey.json +2341 -0
- package/definitions/kanban-runtime.json +1 -0
- package/definitions/kanban.json +929 -0
- package/definitions/message-runtime.json +1 -0
- package/definitions/message.json +2660 -0
- package/definitions/metering-runtime.json +1 -0
- package/definitions/metering.json +2321 -0
- package/definitions/notes-runtime.json +1 -0
- package/definitions/notes.json +1531 -0
- package/definitions/notification-runtime.json +1 -0
- package/definitions/notification.json +1425 -0
- package/definitions/organization-runtime.json +1 -0
- package/definitions/organization.json +629 -0
- package/definitions/partner-directory-runtime.json +1 -0
- package/definitions/partner-directory.json +1718 -0
- package/definitions/permissions-runtime.json +1 -0
- package/definitions/permissions.json +1480 -0
- package/definitions/pricing-runtime.json +1 -0
- package/definitions/pricing-tier-runtime.json +1 -0
- package/definitions/pricing-tier.json +105 -0
- package/definitions/pricing.json +9884 -0
- package/definitions/purpose-runtime.json +1 -0
- package/definitions/purpose.json +524 -0
- package/definitions/sandbox-runtime.json +1 -0
- package/definitions/sandbox.json +453 -0
- package/definitions/submission-runtime.json +1 -0
- package/definitions/submission.json +313 -0
- package/definitions/targeting-runtime.json +1 -0
- package/definitions/targeting.json +1474 -0
- package/definitions/template-variables-runtime.json +1 -0
- package/definitions/template-variables.json +1408 -0
- package/definitions/user-runtime.json +1 -0
- package/definitions/user.json +2408 -0
- package/definitions/validation-rules-runtime.json +1 -0
- package/definitions/validation-rules.json +1491 -0
- package/definitions/webhooks-runtime.json +1 -0
- package/definitions/webhooks.json +1525 -0
- package/definitions/workflow-definition-runtime.json +1 -0
- package/definitions/workflow-definition.json +3417 -0
- package/definitions/workflow-runtime.json +1 -0
- package/definitions/workflow.json +4106 -0
- package/dist/apis/access-token.cjs +13 -84
- package/dist/apis/access-token.js +11 -82
- package/dist/apis/address-suggestions.cjs +13 -127
- package/dist/apis/address-suggestions.js +11 -125
- package/dist/apis/address.cjs +13 -79
- package/dist/apis/address.js +11 -77
- package/dist/apis/ai-agents.cjs +13 -210
- package/dist/apis/ai-agents.js +11 -208
- package/dist/apis/app.cjs +13 -568
- package/dist/apis/app.js +11 -566
- package/dist/apis/audit-logs.cjs +13 -50
- package/dist/apis/audit-logs.js +11 -48
- package/dist/apis/automation.cjs +13 -277
- package/dist/apis/automation.js +11 -275
- package/dist/apis/billing.cjs +13 -170
- package/dist/apis/billing.js +11 -168
- package/dist/apis/blueprint-manifest.cjs +13 -499
- package/dist/apis/blueprint-manifest.js +11 -497
- package/dist/apis/consent.cjs +13 -79
- package/dist/apis/consent.js +11 -77
- package/dist/apis/customer-portal.cjs +13 -2247
- package/dist/apis/customer-portal.js +11 -2245
- package/dist/apis/dashboard.cjs +13 -79
- package/dist/apis/dashboard.js +11 -77
- package/dist/apis/data-management.cjs +13 -235
- package/dist/apis/data-management.js +11 -233
- package/dist/apis/deduplication.cjs +13 -37
- package/dist/apis/deduplication.js +11 -35
- package/dist/apis/design.cjs +13 -214
- package/dist/apis/design.js +11 -212
- package/dist/apis/document.cjs +13 -73
- package/dist/apis/document.js +11 -71
- package/dist/apis/email-settings.cjs +13 -528
- package/dist/apis/email-settings.js +11 -526
- package/dist/apis/email-template.cjs +13 -117
- package/dist/apis/email-template.js +11 -115
- package/dist/apis/entity-mapping.cjs +13 -210
- package/dist/apis/entity-mapping.js +11 -208
- package/dist/apis/entity.cjs +13 -1595
- package/dist/apis/entity.js +11 -1593
- package/dist/apis/environments.cjs +13 -66
- package/dist/apis/environments.js +11 -64
- package/dist/apis/erp-integration.cjs +13 -581
- package/dist/apis/erp-integration.js +11 -579
- package/dist/apis/event-catalog.cjs +13 -125
- package/dist/apis/event-catalog.js +11 -123
- package/dist/apis/file.cjs +13 -568
- package/dist/apis/file.js +11 -566
- package/dist/apis/iban.cjs +13 -38
- package/dist/apis/iban.js +11 -36
- package/dist/apis/journey.cjs +13 -265
- package/dist/apis/journey.js +11 -263
- package/dist/apis/kanban.cjs +13 -159
- package/dist/apis/kanban.js +11 -157
- package/dist/apis/message.cjs +13 -668
- package/dist/apis/message.js +11 -666
- package/dist/apis/metering.cjs +13 -394
- package/dist/apis/metering.js +11 -392
- package/dist/apis/notes.cjs +13 -214
- package/dist/apis/notes.js +11 -212
- package/dist/apis/notification.cjs +13 -232
- package/dist/apis/notification.js +11 -230
- package/dist/apis/organization.cjs +13 -113
- package/dist/apis/organization.js +11 -111
- package/dist/apis/partner-directory.cjs +13 -277
- package/dist/apis/partner-directory.js +11 -275
- package/dist/apis/permissions.cjs +13 -173
- package/dist/apis/permissions.js +11 -171
- package/dist/apis/pricing-tier.cjs +14 -32
- package/dist/apis/pricing-tier.js +11 -29
- package/dist/apis/pricing.cjs +13 -434
- package/dist/apis/pricing.js +11 -432
- package/dist/apis/purpose.cjs +13 -175
- package/dist/apis/purpose.js +11 -173
- package/dist/apis/sandbox.cjs +13 -95
- package/dist/apis/sandbox.js +11 -93
- package/dist/apis/submission.cjs +13 -50
- package/dist/apis/submission.js +11 -48
- package/dist/apis/targeting.cjs +13 -270
- package/dist/apis/targeting.js +11 -268
- package/dist/apis/template-variables.cjs +13 -154
- package/dist/apis/template-variables.js +11 -152
- package/dist/apis/user.cjs +13 -483
- package/dist/apis/user.js +11 -481
- package/dist/apis/validation-rules.cjs +13 -115
- package/dist/apis/validation-rules.js +11 -113
- package/dist/apis/webhooks.cjs +13 -247
- package/dist/apis/webhooks.js +11 -245
- package/dist/apis/workflow-definition.cjs +13 -337
- package/dist/apis/workflow-definition.js +11 -335
- package/dist/apis/workflow.cjs +13 -397
- package/dist/apis/workflow.js +11 -395
- package/dist/{chunk-D7ICL3AM.cjs → chunk-5LXNSDG2.cjs} +51 -2
- package/dist/{chunk-DGCGLG7G.js → chunk-QMQNMCOC.js} +49 -0
- package/dist/index.cjs +56 -54
- package/dist/index.js +53 -51
- package/package.json +50 -3
|
@@ -0,0 +1,313 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"s":"https://targeting.sls.epilot.io","o":[["changeCampaignStatus","post","/v1/campaign/{campaign_id}/status",[["CampaignIdPathParam"]]],["getCampaignJobStatus","get","/v1/campaign/{campaign_id}/job",[["CampaignIdPathParam"]]],["getCampaignPortals","get","/v1/campaign/{campaign_id}/portals",[["CampaignIdPathParam"]]],["retriggerCampaignAutomations","post","/v1/campaign/{campaign_id}/automations:retrigger",[["CampaignIdPathParam"]],1],["matchCampaigns","post","/v1/campaign:match",null,1],["matchTargets","post","/v1/target:match",null,1],["getTargetQueries","post","/v1/target/queries",null,1],["createRecipient","post","/v1/campaign/{campaign_id}/recipient",[["CampaignIdPathParam"]],1],["updateRecipient","patch","/v1/campaign/{campaign_id}/recipient/{recipient_id}",[["CampaignIdPathParam"],["RecipientIdPathParam"]],1],["updateRecipientPortalStatus","patch","/v1/campaign/{campaign_id}/recipient/{recipient_id}/portal:status",[["CampaignIdPathParam"],["RecipientIdPathParam"]],1],["getRecipients","get","/v1/campaign/{campaign_id}/recipients",[["CampaignIdPathParam"],["limit","q"],["next","q"],["q","q"],["automation_status","q"],["portal_status","q"]]]],"v":"3.0.3","cp":{"CampaignIdPathParam":["campaign_id","p",true],"RecipientIdPathParam":["recipient_id","p",true]}}
|