@epilot/sdk 2.4.4-alpha.0 → 2.4.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/dist/access-token.d-CnmUTOlq.d.cts +552 -0
- package/dist/access-token.d-CnmUTOlq.d.ts +552 -0
- package/dist/address-suggestions.d-_YwTOR-9.d.cts +339 -0
- package/dist/address-suggestions.d-_YwTOR-9.d.ts +339 -0
- package/dist/address.d-CwAPOVxa.d.cts +437 -0
- package/dist/address.d-CwAPOVxa.d.ts +437 -0
- package/dist/ai-agents.d-OkXfr2bz.d.cts +1339 -0
- package/dist/ai-agents.d-OkXfr2bz.d.ts +1339 -0
- package/dist/apis/access-token.d.cts +18 -0
- package/dist/apis/access-token.d.ts +12 -9
- package/dist/apis/address-suggestions.d.cts +18 -0
- package/dist/apis/address-suggestions.d.ts +12 -9
- package/dist/apis/address.d.cts +18 -0
- package/dist/apis/address.d.ts +12 -9
- package/dist/apis/ai-agents.d.cts +18 -0
- package/dist/apis/ai-agents.d.ts +12 -9
- package/dist/apis/app.d.cts +18 -0
- package/dist/apis/app.d.ts +12 -9
- package/dist/apis/audit-logs.d.cts +18 -0
- package/dist/apis/audit-logs.d.ts +12 -9
- package/dist/apis/automation.d.cts +18 -0
- package/dist/apis/automation.d.ts +12 -9
- package/dist/apis/billing.d.cts +18 -0
- package/dist/apis/billing.d.ts +12 -9
- package/dist/apis/blueprint-manifest.d.cts +18 -0
- package/dist/apis/blueprint-manifest.d.ts +12 -9
- package/dist/apis/calendar.d.cts +18 -0
- package/dist/apis/calendar.d.ts +12 -9
- package/dist/apis/configuration-hub.d.cts +18 -0
- package/dist/apis/configuration-hub.d.ts +12 -9
- package/dist/apis/consent.d.cts +18 -0
- package/dist/apis/consent.d.ts +12 -9
- package/dist/apis/customer-portal.d.cts +18 -0
- package/dist/apis/customer-portal.d.ts +12 -9
- package/dist/apis/dashboard.d.cts +18 -0
- package/dist/apis/dashboard.d.ts +12 -9
- package/dist/apis/data-governance.d.cts +18 -0
- package/dist/apis/data-governance.d.ts +12 -9
- package/dist/apis/deduplication.d.cts +18 -0
- package/dist/apis/deduplication.d.ts +12 -9
- package/dist/apis/design.d.cts +18 -0
- package/dist/apis/design.d.ts +12 -9
- package/dist/apis/document.d.cts +18 -0
- package/dist/apis/document.d.ts +12 -9
- package/dist/apis/email-settings.d.cts +18 -0
- package/dist/apis/email-settings.d.ts +12 -9
- package/dist/apis/email-template.d.cts +18 -0
- package/dist/apis/email-template.d.ts +12 -9
- package/dist/apis/entity-mapping.d.cts +18 -0
- package/dist/apis/entity-mapping.d.ts +12 -9
- package/dist/apis/entity.d.cts +18 -0
- package/dist/apis/entity.d.ts +12 -9
- package/dist/apis/environments.d.cts +18 -0
- package/dist/apis/environments.d.ts +12 -9
- package/dist/apis/event-catalog.d.cts +18 -0
- package/dist/apis/event-catalog.d.ts +12 -9
- package/dist/apis/file.d.cts +18 -0
- package/dist/apis/file.d.ts +12 -9
- package/dist/apis/iban.d.cts +18 -0
- package/dist/apis/iban.d.ts +12 -9
- package/dist/apis/integration-toolkit.d.cts +18 -0
- package/dist/apis/integration-toolkit.d.ts +12 -9
- package/dist/apis/journey.d.cts +18 -0
- package/dist/apis/journey.d.ts +12 -9
- package/dist/apis/kanban.d.cts +18 -0
- package/dist/apis/kanban.d.ts +12 -9
- package/dist/apis/message.d.cts +18 -0
- package/dist/apis/message.d.ts +12 -9
- package/dist/apis/metering.d.cts +18 -0
- package/dist/apis/metering.d.ts +12 -9
- package/dist/apis/notes.d.cts +18 -0
- package/dist/apis/notes.d.ts +12 -9
- package/dist/apis/notification.d.cts +18 -0
- package/dist/apis/notification.d.ts +12 -9
- package/dist/apis/organization.d.cts +18 -0
- package/dist/apis/organization.d.ts +12 -9
- package/dist/apis/partner-directory.d.cts +18 -0
- package/dist/apis/partner-directory.d.ts +12 -9
- package/dist/apis/permissions.d.cts +18 -0
- package/dist/apis/permissions.d.ts +12 -9
- package/dist/apis/pricing-tier.d.cts +18 -0
- package/dist/apis/pricing-tier.d.ts +12 -9
- package/dist/apis/pricing.d.cts +18 -0
- package/dist/apis/pricing.d.ts +12 -9
- package/dist/apis/purpose.d.cts +18 -0
- package/dist/apis/purpose.d.ts +12 -9
- package/dist/apis/query.d.cts +18 -0
- package/dist/apis/query.d.ts +12 -9
- package/dist/apis/sandbox.d.cts +18 -0
- package/dist/apis/sandbox.d.ts +12 -9
- package/dist/apis/sharing.d.cts +18 -0
- package/dist/apis/sharing.d.ts +12 -9
- package/dist/apis/submission.d.cts +18 -0
- package/dist/apis/submission.d.ts +12 -9
- package/dist/apis/target.d.cts +597 -0
- package/dist/apis/target.d.ts +591 -9
- package/dist/apis/targeting.d.cts +18 -0
- package/dist/apis/targeting.d.ts +12 -9
- package/dist/apis/template-variables.d.cts +18 -0
- package/dist/apis/template-variables.d.ts +12 -9
- package/dist/apis/user.d.cts +18 -0
- package/dist/apis/user.d.ts +12 -9
- package/dist/apis/validation-rules.d.cts +18 -0
- package/dist/apis/validation-rules.d.ts +12 -9
- package/dist/apis/webhooks.d.cts +18 -0
- package/dist/apis/webhooks.d.ts +12 -9
- package/dist/apis/workflow-definition.d.cts +18 -0
- package/dist/apis/workflow-definition.d.ts +12 -9
- package/dist/apis/workflow.d.cts +18 -0
- package/dist/apis/workflow.d.ts +12 -9
- package/dist/app.d-u7Dq42kU.d.cts +3391 -0
- package/dist/app.d-u7Dq42kU.d.ts +3391 -0
- package/dist/audit-logs.d-BRToFqeX.d.cts +287 -0
- package/dist/audit-logs.d-BRToFqeX.d.ts +287 -0
- package/dist/automation.d-Du6-uiz5.d.cts +5283 -0
- package/dist/automation.d-Du6-uiz5.d.ts +5283 -0
- package/dist/billing.d-Bs8Ku9qE.d.cts +993 -0
- package/dist/billing.d-Bs8Ku9qE.d.ts +993 -0
- package/dist/blueprint-manifest.d-BPyzoR0X.d.cts +4343 -0
- package/dist/blueprint-manifest.d-BPyzoR0X.d.ts +4343 -0
- package/dist/calendar.d-BEjLDagH.d.cts +353 -0
- package/dist/calendar.d-BEjLDagH.d.ts +353 -0
- package/dist/configuration-hub.d-Cqaq2F-W.d.cts +478 -0
- package/dist/configuration-hub.d-Cqaq2F-W.d.ts +478 -0
- package/dist/consent.d-C2PROHhX.d.cts +265 -0
- package/dist/consent.d-C2PROHhX.d.ts +265 -0
- package/dist/customer-portal.d-DyZ2n2dW.d.cts +16728 -0
- package/dist/customer-portal.d-DyZ2n2dW.d.ts +16728 -0
- package/dist/dashboard.d-CsGcA74I.d.cts +440 -0
- package/dist/dashboard.d-CsGcA74I.d.ts +440 -0
- package/dist/data-governance.d-BbZ466j5.d.cts +1178 -0
- package/dist/data-governance.d-BbZ466j5.d.ts +1178 -0
- package/dist/deduplication.d-D5GYddVu.d.cts +218 -0
- package/dist/deduplication.d-D5GYddVu.d.ts +218 -0
- package/dist/design.d-BRre8iLg.d.cts +2346 -0
- package/dist/design.d-BRre8iLg.d.ts +2346 -0
- package/dist/document.d-DN37pjdx.d.cts +648 -0
- package/dist/document.d-DN37pjdx.d.ts +648 -0
- package/dist/email-settings.d-B7Q_xT25.d.cts +2417 -0
- package/dist/email-settings.d-B7Q_xT25.d.ts +2417 -0
- package/dist/email-template.d-gtQkdaXM.d.cts +1188 -0
- package/dist/email-template.d-gtQkdaXM.d.ts +1188 -0
- package/dist/entity-mapping.d-DKSW3sfy.d.cts +1092 -0
- package/dist/entity-mapping.d-DKSW3sfy.d.ts +1092 -0
- package/dist/entity.d-BHR9dEon.d.cts +18479 -0
- package/dist/entity.d-BHR9dEon.d.ts +18479 -0
- package/dist/environments.d-BvqvN-PD.d.cts +382 -0
- package/dist/environments.d-BvqvN-PD.d.ts +382 -0
- package/dist/event-catalog.d-ENw6HO-w.d.cts +1511 -0
- package/dist/event-catalog.d-ENw6HO-w.d.ts +1511 -0
- package/dist/file.d-DcTJxjp7.d.cts +2992 -0
- package/dist/file.d-DcTJxjp7.d.ts +2992 -0
- package/dist/iban.d-BwdiGbxi.d.cts +70 -0
- package/dist/iban.d-BwdiGbxi.d.ts +70 -0
- package/dist/index.d.cts +182 -0
- package/dist/index.d.ts +182 -12
- package/dist/integration-toolkit.d-Ry-KC9ow.d.cts +5796 -0
- package/dist/integration-toolkit.d-Ry-KC9ow.d.ts +5796 -0
- package/dist/journey.d-ClXO0xK8.d.cts +1931 -0
- package/dist/journey.d-ClXO0xK8.d.ts +1931 -0
- package/dist/kanban.d-BHnSRCYW.d.cts +760 -0
- package/dist/kanban.d-BHnSRCYW.d.ts +760 -0
- package/dist/message.d-B5UuSqgw.d.cts +3811 -0
- package/dist/message.d-B5UuSqgw.d.ts +3811 -0
- package/dist/metering.d-DvtPv7wk.d.cts +1841 -0
- package/dist/metering.d-DvtPv7wk.d.ts +1841 -0
- package/dist/notes.d-BC-scR42.d.cts +1046 -0
- package/dist/notes.d-BC-scR42.d.ts +1046 -0
- package/dist/notification.d-BfBL3lga.d.cts +1147 -0
- package/dist/notification.d-BfBL3lga.d.ts +1147 -0
- package/dist/organization.d-DqwnNxMg.d.cts +1271 -0
- package/dist/organization.d-DqwnNxMg.d.ts +1271 -0
- package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
- package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
- package/dist/permissions.d-l6AT8SYP.d.cts +1279 -0
- package/dist/permissions.d-l6AT8SYP.d.ts +1279 -0
- package/dist/pricing-tier.d-Cg0jl6n_.d.cts +81 -0
- package/dist/pricing-tier.d-Cg0jl6n_.d.ts +81 -0
- package/dist/pricing.d-BHpMU4KU.d.cts +12255 -0
- package/dist/pricing.d-BHpMU4KU.d.ts +12255 -0
- package/dist/purpose.d-CbIYfTua.d.cts +372 -0
- package/dist/purpose.d-CbIYfTua.d.ts +372 -0
- package/dist/query.d-Cmp78IhZ.d.cts +2375 -0
- package/dist/query.d-Cmp78IhZ.d.ts +2375 -0
- package/dist/sandbox.d-BdbOFzDu.d.cts +465 -0
- package/dist/sandbox.d-BdbOFzDu.d.ts +465 -0
- package/dist/sharing.d-sOXq-gtz.d.cts +571 -0
- package/dist/sharing.d-sOXq-gtz.d.ts +571 -0
- package/dist/submission.d-BamwfhXw.d.cts +469 -0
- package/dist/submission.d-BamwfhXw.d.ts +469 -0
- package/dist/targeting.d-BNmcVsNS.d.cts +2057 -0
- package/dist/targeting.d-BNmcVsNS.d.ts +2057 -0
- package/dist/template-variables.d-Ble9TSBa.d.cts +1320 -0
- package/dist/template-variables.d-Ble9TSBa.d.ts +1320 -0
- package/dist/types-ChU9Acbv.d.cts +37 -0
- package/dist/types-ChU9Acbv.d.ts +37 -0
- package/dist/user.d-D18fe97W.d.cts +2270 -0
- package/dist/user.d-D18fe97W.d.ts +2270 -0
- package/dist/validation-rules.d-Db5c5zTf.d.cts +807 -0
- package/dist/validation-rules.d-Db5c5zTf.d.ts +807 -0
- package/dist/webhooks.d-pLHIL_io.d.cts +1256 -0
- package/dist/webhooks.d-pLHIL_io.d.ts +1256 -0
- package/dist/workflow-definition.d-DOeb0KVV.d.cts +1922 -0
- package/dist/workflow-definition.d-DOeb0KVV.d.ts +1922 -0
- package/dist/workflow.d-CMSKt8oN.d.cts +3151 -0
- package/dist/workflow.d-CMSKt8oN.d.ts +3151 -0
- package/package.json +1 -1
- package/dist/apis/_registry.d.ts +0 -8
- package/dist/authorize.d.ts +0 -3
- package/dist/bin/cli.d.ts +0 -1
- package/dist/client-factory.d.ts +0 -9
- package/dist/client-map.d.ts +0 -102
- package/dist/compact.d.ts +0 -22
- package/dist/help.d.ts +0 -12
- package/dist/large-response.d.ts +0 -9
- package/dist/openapi.d.ts +0 -12
- package/dist/overrides.d.ts +0 -9
- package/dist/proxy.d.ts +0 -14
- package/dist/registry.d.ts +0 -19
- package/dist/retry.d.ts +0 -11
- package/dist/sdk.d.ts +0 -29
- package/dist/types.d.ts +0 -53
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* Auto-copied from submission-client */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
declare namespace Components {
|
|
9
|
+
namespace Schemas {
|
|
10
|
+
export interface OptIn {
|
|
11
|
+
/**
|
|
12
|
+
* example:
|
|
13
|
+
* EMAIL_MARKETING
|
|
14
|
+
*/
|
|
15
|
+
topic?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Consent identifier
|
|
18
|
+
* example:
|
|
19
|
+
* example@email.com
|
|
20
|
+
*/
|
|
21
|
+
identifier?: string;
|
|
22
|
+
meta?: {
|
|
23
|
+
[name: string]: any;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* S3 Reference from File API
|
|
28
|
+
*/
|
|
29
|
+
export interface S3Reference {
|
|
30
|
+
/**
|
|
31
|
+
* example:
|
|
32
|
+
* epilot-user-content
|
|
33
|
+
*/
|
|
34
|
+
bucket: string;
|
|
35
|
+
/**
|
|
36
|
+
* example:
|
|
37
|
+
* temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf
|
|
38
|
+
*/
|
|
39
|
+
key: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The submission entity to create
|
|
43
|
+
* example:
|
|
44
|
+
* {
|
|
45
|
+
* "_schema": "submission",
|
|
46
|
+
* "description": "Submission created via API",
|
|
47
|
+
* "contact_first_name": "First",
|
|
48
|
+
* "contact_last_name": "Last",
|
|
49
|
+
* "contact_email": "example@submission.com",
|
|
50
|
+
* "request": "I would like to know more about electric vehicles",
|
|
51
|
+
* "files": [
|
|
52
|
+
* {
|
|
53
|
+
* "s3ref": {
|
|
54
|
+
* "bucket": "epilot-user-content",
|
|
55
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
56
|
+
* },
|
|
57
|
+
* "filename": "document.pdf"
|
|
58
|
+
* }
|
|
59
|
+
* ]
|
|
60
|
+
* }
|
|
61
|
+
*/
|
|
62
|
+
export interface SubmissionEntity {
|
|
63
|
+
[name: string]: any;
|
|
64
|
+
_schema: "submission";
|
|
65
|
+
/**
|
|
66
|
+
* Readable description of the submission. Will be used as the title if passed
|
|
67
|
+
*/
|
|
68
|
+
description?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Files to attach to Submission Entity as a relation (s3refs from File API)
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
files?: {
|
|
74
|
+
[name: string]: any;
|
|
75
|
+
s3ref: /* S3 Reference from File API */ S3Reference;
|
|
76
|
+
/**
|
|
77
|
+
* Override the file name
|
|
78
|
+
*/
|
|
79
|
+
filename?: string;
|
|
80
|
+
/**
|
|
81
|
+
* List of tags for File entities
|
|
82
|
+
*/
|
|
83
|
+
_tags?: string[];
|
|
84
|
+
/**
|
|
85
|
+
* List of relation labels for File attachments
|
|
86
|
+
*/
|
|
87
|
+
relation_tags?: string[];
|
|
88
|
+
}[];
|
|
89
|
+
}
|
|
90
|
+
export interface SubmissionNonce {
|
|
91
|
+
nonce: string;
|
|
92
|
+
submission_id: string;
|
|
93
|
+
organization_id: string;
|
|
94
|
+
ttl?: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Holds content and meta information
|
|
98
|
+
*/
|
|
99
|
+
export interface SubmissionPayload {
|
|
100
|
+
/**
|
|
101
|
+
* organization id – defaults to token value
|
|
102
|
+
* example:
|
|
103
|
+
* 123
|
|
104
|
+
*/
|
|
105
|
+
organization_id?: string;
|
|
106
|
+
/**
|
|
107
|
+
* journey submit uid
|
|
108
|
+
* example:
|
|
109
|
+
* 123
|
|
110
|
+
*/
|
|
111
|
+
journey_submit_id?: string;
|
|
112
|
+
/**
|
|
113
|
+
* type of source, e.g. journey or frontend
|
|
114
|
+
* example:
|
|
115
|
+
* journey
|
|
116
|
+
*/
|
|
117
|
+
source_type: string;
|
|
118
|
+
/**
|
|
119
|
+
* identifier for source e.g. journey ID or frontend ID
|
|
120
|
+
* example:
|
|
121
|
+
* ce99875f-fba9-4fe2-a8f9-afaf52059051
|
|
122
|
+
*/
|
|
123
|
+
source_id: string;
|
|
124
|
+
/**
|
|
125
|
+
* Opt-ins to create from submission
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
opt_ins?: [
|
|
129
|
+
OptIn?,
|
|
130
|
+
OptIn?,
|
|
131
|
+
OptIn?,
|
|
132
|
+
OptIn?,
|
|
133
|
+
OptIn?,
|
|
134
|
+
OptIn?,
|
|
135
|
+
OptIn?,
|
|
136
|
+
OptIn?,
|
|
137
|
+
OptIn?,
|
|
138
|
+
OptIn?
|
|
139
|
+
];
|
|
140
|
+
/**
|
|
141
|
+
* Entities to create from submission
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
entities: [
|
|
145
|
+
/**
|
|
146
|
+
* The submission entity to create
|
|
147
|
+
* example:
|
|
148
|
+
* {
|
|
149
|
+
* "_schema": "submission",
|
|
150
|
+
* "description": "Submission created via API",
|
|
151
|
+
* "contact_first_name": "First",
|
|
152
|
+
* "contact_last_name": "Last",
|
|
153
|
+
* "contact_email": "example@submission.com",
|
|
154
|
+
* "request": "I would like to know more about electric vehicles",
|
|
155
|
+
* "files": [
|
|
156
|
+
* {
|
|
157
|
+
* "s3ref": {
|
|
158
|
+
* "bucket": "epilot-user-content",
|
|
159
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
160
|
+
* },
|
|
161
|
+
* "filename": "document.pdf"
|
|
162
|
+
* }
|
|
163
|
+
* ]
|
|
164
|
+
* }
|
|
165
|
+
*/
|
|
166
|
+
SubmissionEntity,
|
|
167
|
+
/**
|
|
168
|
+
* The submission entity to create
|
|
169
|
+
* example:
|
|
170
|
+
* {
|
|
171
|
+
* "_schema": "submission",
|
|
172
|
+
* "description": "Submission created via API",
|
|
173
|
+
* "contact_first_name": "First",
|
|
174
|
+
* "contact_last_name": "Last",
|
|
175
|
+
* "contact_email": "example@submission.com",
|
|
176
|
+
* "request": "I would like to know more about electric vehicles",
|
|
177
|
+
* "files": [
|
|
178
|
+
* {
|
|
179
|
+
* "s3ref": {
|
|
180
|
+
* "bucket": "epilot-user-content",
|
|
181
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
182
|
+
* },
|
|
183
|
+
* "filename": "document.pdf"
|
|
184
|
+
* }
|
|
185
|
+
* ]
|
|
186
|
+
* }
|
|
187
|
+
*/
|
|
188
|
+
SubmissionEntity?,
|
|
189
|
+
/**
|
|
190
|
+
* The submission entity to create
|
|
191
|
+
* example:
|
|
192
|
+
* {
|
|
193
|
+
* "_schema": "submission",
|
|
194
|
+
* "description": "Submission created via API",
|
|
195
|
+
* "contact_first_name": "First",
|
|
196
|
+
* "contact_last_name": "Last",
|
|
197
|
+
* "contact_email": "example@submission.com",
|
|
198
|
+
* "request": "I would like to know more about electric vehicles",
|
|
199
|
+
* "files": [
|
|
200
|
+
* {
|
|
201
|
+
* "s3ref": {
|
|
202
|
+
* "bucket": "epilot-user-content",
|
|
203
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
204
|
+
* },
|
|
205
|
+
* "filename": "document.pdf"
|
|
206
|
+
* }
|
|
207
|
+
* ]
|
|
208
|
+
* }
|
|
209
|
+
*/
|
|
210
|
+
SubmissionEntity?,
|
|
211
|
+
/**
|
|
212
|
+
* The submission entity to create
|
|
213
|
+
* example:
|
|
214
|
+
* {
|
|
215
|
+
* "_schema": "submission",
|
|
216
|
+
* "description": "Submission created via API",
|
|
217
|
+
* "contact_first_name": "First",
|
|
218
|
+
* "contact_last_name": "Last",
|
|
219
|
+
* "contact_email": "example@submission.com",
|
|
220
|
+
* "request": "I would like to know more about electric vehicles",
|
|
221
|
+
* "files": [
|
|
222
|
+
* {
|
|
223
|
+
* "s3ref": {
|
|
224
|
+
* "bucket": "epilot-user-content",
|
|
225
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
226
|
+
* },
|
|
227
|
+
* "filename": "document.pdf"
|
|
228
|
+
* }
|
|
229
|
+
* ]
|
|
230
|
+
* }
|
|
231
|
+
*/
|
|
232
|
+
SubmissionEntity?,
|
|
233
|
+
/**
|
|
234
|
+
* The submission entity to create
|
|
235
|
+
* example:
|
|
236
|
+
* {
|
|
237
|
+
* "_schema": "submission",
|
|
238
|
+
* "description": "Submission created via API",
|
|
239
|
+
* "contact_first_name": "First",
|
|
240
|
+
* "contact_last_name": "Last",
|
|
241
|
+
* "contact_email": "example@submission.com",
|
|
242
|
+
* "request": "I would like to know more about electric vehicles",
|
|
243
|
+
* "files": [
|
|
244
|
+
* {
|
|
245
|
+
* "s3ref": {
|
|
246
|
+
* "bucket": "epilot-user-content",
|
|
247
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
248
|
+
* },
|
|
249
|
+
* "filename": "document.pdf"
|
|
250
|
+
* }
|
|
251
|
+
* ]
|
|
252
|
+
* }
|
|
253
|
+
*/
|
|
254
|
+
SubmissionEntity?,
|
|
255
|
+
/**
|
|
256
|
+
* The submission entity to create
|
|
257
|
+
* example:
|
|
258
|
+
* {
|
|
259
|
+
* "_schema": "submission",
|
|
260
|
+
* "description": "Submission created via API",
|
|
261
|
+
* "contact_first_name": "First",
|
|
262
|
+
* "contact_last_name": "Last",
|
|
263
|
+
* "contact_email": "example@submission.com",
|
|
264
|
+
* "request": "I would like to know more about electric vehicles",
|
|
265
|
+
* "files": [
|
|
266
|
+
* {
|
|
267
|
+
* "s3ref": {
|
|
268
|
+
* "bucket": "epilot-user-content",
|
|
269
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
270
|
+
* },
|
|
271
|
+
* "filename": "document.pdf"
|
|
272
|
+
* }
|
|
273
|
+
* ]
|
|
274
|
+
* }
|
|
275
|
+
*/
|
|
276
|
+
SubmissionEntity?,
|
|
277
|
+
/**
|
|
278
|
+
* The submission entity to create
|
|
279
|
+
* example:
|
|
280
|
+
* {
|
|
281
|
+
* "_schema": "submission",
|
|
282
|
+
* "description": "Submission created via API",
|
|
283
|
+
* "contact_first_name": "First",
|
|
284
|
+
* "contact_last_name": "Last",
|
|
285
|
+
* "contact_email": "example@submission.com",
|
|
286
|
+
* "request": "I would like to know more about electric vehicles",
|
|
287
|
+
* "files": [
|
|
288
|
+
* {
|
|
289
|
+
* "s3ref": {
|
|
290
|
+
* "bucket": "epilot-user-content",
|
|
291
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
292
|
+
* },
|
|
293
|
+
* "filename": "document.pdf"
|
|
294
|
+
* }
|
|
295
|
+
* ]
|
|
296
|
+
* }
|
|
297
|
+
*/
|
|
298
|
+
SubmissionEntity?,
|
|
299
|
+
/**
|
|
300
|
+
* The submission entity to create
|
|
301
|
+
* example:
|
|
302
|
+
* {
|
|
303
|
+
* "_schema": "submission",
|
|
304
|
+
* "description": "Submission created via API",
|
|
305
|
+
* "contact_first_name": "First",
|
|
306
|
+
* "contact_last_name": "Last",
|
|
307
|
+
* "contact_email": "example@submission.com",
|
|
308
|
+
* "request": "I would like to know more about electric vehicles",
|
|
309
|
+
* "files": [
|
|
310
|
+
* {
|
|
311
|
+
* "s3ref": {
|
|
312
|
+
* "bucket": "epilot-user-content",
|
|
313
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
314
|
+
* },
|
|
315
|
+
* "filename": "document.pdf"
|
|
316
|
+
* }
|
|
317
|
+
* ]
|
|
318
|
+
* }
|
|
319
|
+
*/
|
|
320
|
+
SubmissionEntity?,
|
|
321
|
+
/**
|
|
322
|
+
* The submission entity to create
|
|
323
|
+
* example:
|
|
324
|
+
* {
|
|
325
|
+
* "_schema": "submission",
|
|
326
|
+
* "description": "Submission created via API",
|
|
327
|
+
* "contact_first_name": "First",
|
|
328
|
+
* "contact_last_name": "Last",
|
|
329
|
+
* "contact_email": "example@submission.com",
|
|
330
|
+
* "request": "I would like to know more about electric vehicles",
|
|
331
|
+
* "files": [
|
|
332
|
+
* {
|
|
333
|
+
* "s3ref": {
|
|
334
|
+
* "bucket": "epilot-user-content",
|
|
335
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
336
|
+
* },
|
|
337
|
+
* "filename": "document.pdf"
|
|
338
|
+
* }
|
|
339
|
+
* ]
|
|
340
|
+
* }
|
|
341
|
+
*/
|
|
342
|
+
SubmissionEntity?,
|
|
343
|
+
/**
|
|
344
|
+
* The submission entity to create
|
|
345
|
+
* example:
|
|
346
|
+
* {
|
|
347
|
+
* "_schema": "submission",
|
|
348
|
+
* "description": "Submission created via API",
|
|
349
|
+
* "contact_first_name": "First",
|
|
350
|
+
* "contact_last_name": "Last",
|
|
351
|
+
* "contact_email": "example@submission.com",
|
|
352
|
+
* "request": "I would like to know more about electric vehicles",
|
|
353
|
+
* "files": [
|
|
354
|
+
* {
|
|
355
|
+
* "s3ref": {
|
|
356
|
+
* "bucket": "epilot-user-content",
|
|
357
|
+
* "key": "temp/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
|
|
358
|
+
* },
|
|
359
|
+
* "filename": "document.pdf"
|
|
360
|
+
* }
|
|
361
|
+
* ]
|
|
362
|
+
* }
|
|
363
|
+
*/
|
|
364
|
+
SubmissionEntity?
|
|
365
|
+
];
|
|
366
|
+
/**
|
|
367
|
+
* Related Ivy Opportunity Ids
|
|
368
|
+
*/
|
|
369
|
+
_ivy_opportunity_ids?: [
|
|
370
|
+
string,
|
|
371
|
+
...string[]
|
|
372
|
+
];
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
declare namespace Paths {
|
|
377
|
+
namespace CreateSubmission {
|
|
378
|
+
export type RequestBody = /* Holds content and meta information */ Components.Schemas.SubmissionPayload;
|
|
379
|
+
namespace Responses {
|
|
380
|
+
export interface $201 {
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
namespace GetNonce {
|
|
385
|
+
namespace Parameters {
|
|
386
|
+
export type NonceId = string;
|
|
387
|
+
}
|
|
388
|
+
export interface PathParameters {
|
|
389
|
+
nonce_id: Parameters.NonceId;
|
|
390
|
+
}
|
|
391
|
+
namespace Responses {
|
|
392
|
+
export interface $200 {
|
|
393
|
+
nonce: string;
|
|
394
|
+
submission_id: string;
|
|
395
|
+
organization_id: string;
|
|
396
|
+
ttl?: number;
|
|
397
|
+
/**
|
|
398
|
+
* example:
|
|
399
|
+
* true
|
|
400
|
+
*/
|
|
401
|
+
exists?: boolean;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
interface OperationMethods {
|
|
409
|
+
/**
|
|
410
|
+
* createSubmission - createSubmission
|
|
411
|
+
*
|
|
412
|
+
* Creates a submission from a public facing Journey
|
|
413
|
+
*
|
|
414
|
+
*/
|
|
415
|
+
'createSubmission'(
|
|
416
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
417
|
+
data?: Paths.CreateSubmission.RequestBody,
|
|
418
|
+
config?: AxiosRequestConfig
|
|
419
|
+
): OperationResponse<Paths.CreateSubmission.Responses.$201>
|
|
420
|
+
/**
|
|
421
|
+
* getNonce - Check if a nonce was already used (aka exists in storage)
|
|
422
|
+
*
|
|
423
|
+
* Returns { exists: boolean } along some meta data
|
|
424
|
+
*/
|
|
425
|
+
'getNonce'(
|
|
426
|
+
parameters?: Parameters<Paths.GetNonce.PathParameters> | null,
|
|
427
|
+
data?: any,
|
|
428
|
+
config?: AxiosRequestConfig
|
|
429
|
+
): OperationResponse<Paths.GetNonce.Responses.$200>
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
interface PathsDictionary {
|
|
433
|
+
['/v1/submission/submissions']: {
|
|
434
|
+
/**
|
|
435
|
+
* createSubmission - createSubmission
|
|
436
|
+
*
|
|
437
|
+
* Creates a submission from a public facing Journey
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
'post'(
|
|
441
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
442
|
+
data?: Paths.CreateSubmission.RequestBody,
|
|
443
|
+
config?: AxiosRequestConfig
|
|
444
|
+
): OperationResponse<Paths.CreateSubmission.Responses.$201>
|
|
445
|
+
}
|
|
446
|
+
['/v1/submission/nonce/{nonce_id}']: {
|
|
447
|
+
/**
|
|
448
|
+
* getNonce - Check if a nonce was already used (aka exists in storage)
|
|
449
|
+
*
|
|
450
|
+
* Returns { exists: boolean } along some meta data
|
|
451
|
+
*/
|
|
452
|
+
'get'(
|
|
453
|
+
parameters?: Parameters<Paths.GetNonce.PathParameters> | null,
|
|
454
|
+
data?: any,
|
|
455
|
+
config?: AxiosRequestConfig
|
|
456
|
+
): OperationResponse<Paths.GetNonce.Responses.$200>
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
type OptIn = Components.Schemas.OptIn;
|
|
464
|
+
type S3Reference = Components.Schemas.S3Reference;
|
|
465
|
+
type SubmissionEntity = Components.Schemas.SubmissionEntity;
|
|
466
|
+
type SubmissionNonce = Components.Schemas.SubmissionNonce;
|
|
467
|
+
type SubmissionPayload = Components.Schemas.SubmissionPayload;
|
|
468
|
+
|
|
469
|
+
export { type Client as C, type OperationMethods as O, Paths as P, type S3Reference as S, Components as a, type PathsDictionary as b, type OptIn as c, type SubmissionEntity as d, type SubmissionNonce as e, type SubmissionPayload as f };
|