@epilot/sdk 2.20.50 → 2.20.51
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/README.md +1 -0
- package/definitions/external-values-runtime.json +1 -0
- package/definitions/external-values.json +450 -0
- package/dist/README-B6X6BXAW.cjs +7 -0
- package/dist/README-LE2VBY2Y.js +7 -0
- package/dist/{_index-UWRY3DNX.cjs → _index-DEYTKG4Z.cjs} +4 -1
- package/dist/{_index-UBUNWMRP.js → _index-HL3HOTXB.js} +3 -0
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +38 -0
- package/dist/apis/external-values.d.cts +18 -0
- package/dist/apis/external-values.d.ts +18 -0
- package/dist/apis/external-values.js +38 -0
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +6 -6
- package/dist/apis/identity.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-VMA2UKDS.js → chunk-3FRPGY3C.js} +4 -2
- package/dist/chunk-CMEMMJ3T.js +14 -0
- package/dist/chunk-NC33X2WL.cjs +14 -0
- package/dist/{chunk-TF4SGSFP.cjs → chunk-UVYQFUAO.cjs} +4 -2
- package/dist/external-values-DALDMPMB.js +7 -0
- package/dist/external-values-XG5LFKZQ.cjs +7 -0
- package/dist/external-values-runtime-BPR3H6RL.cjs +5 -0
- package/dist/external-values-runtime-VXZRGQCT.js +5 -0
- package/dist/external-values.d-DjP9C_-r.d.cts +391 -0
- package/dist/external-values.d-DjP9C_-r.d.ts +391 -0
- package/dist/index.cjs +22 -14
- package/dist/index.d.cts +58 -56
- package/dist/index.d.ts +58 -56
- package/dist/index.js +15 -7
- package/docs/external-values.md +330 -0
- package/package.json +10 -1
- package/dist/README-OSHX3IVR.cjs +0 -7
- package/dist/README-ZSJDIPZZ.js +0 -7
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* Auto-copied from external-values-client */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
declare namespace Components {
|
|
7
|
+
namespace Parameters {
|
|
8
|
+
export type AppId = string;
|
|
9
|
+
export type HookId = string; // ^[a-zA-Z0-9_-]{1,100}$
|
|
10
|
+
}
|
|
11
|
+
export interface PathParameters {
|
|
12
|
+
AppId?: Parameters.AppId;
|
|
13
|
+
HookId?: Parameters.HookId /* ^[a-zA-Z0-9_-]{1,100}$ */;
|
|
14
|
+
}
|
|
15
|
+
namespace Schemas {
|
|
16
|
+
export interface ExternalValueError {
|
|
17
|
+
/**
|
|
18
|
+
* Set for per-result errors; absent for hook-level failures
|
|
19
|
+
*/
|
|
20
|
+
result_id?: string;
|
|
21
|
+
code: /**
|
|
22
|
+
* - `timeout`: the third-party call exceeded `timeout_ms`
|
|
23
|
+
* - `upstream_error`: the third-party call failed or returned a non-2xx status
|
|
24
|
+
* - `auth_failed`: the `auth` pre-call failed
|
|
25
|
+
* - `extraction_failed`: template/path/jsonata threw or yielded null / empty
|
|
26
|
+
* - `coercion_failed`: the extracted value could not be coerced to the result type
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
ExternalValueErrorCode;
|
|
30
|
+
message: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* - `timeout`: the third-party call exceeded `timeout_ms`
|
|
34
|
+
* - `upstream_error`: the third-party call failed or returned a non-2xx status
|
|
35
|
+
* - `auth_failed`: the `auth` pre-call failed
|
|
36
|
+
* - `extraction_failed`: template/path/jsonata threw or yielded null / empty
|
|
37
|
+
* - `coercion_failed`: the extracted value could not be coerced to the result type
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export type ExternalValueErrorCode = "timeout" | "upstream_error" | "auth_failed" | "extraction_failed" | "coercion_failed";
|
|
41
|
+
export interface ExternalValueHookList {
|
|
42
|
+
hooks: ExternalValueHookSummary[];
|
|
43
|
+
}
|
|
44
|
+
export interface ExternalValueHookSummary {
|
|
45
|
+
app_id: string;
|
|
46
|
+
app_name: string;
|
|
47
|
+
hook_id: string;
|
|
48
|
+
name: TranslatedString;
|
|
49
|
+
description?: TranslatedString;
|
|
50
|
+
results: ExternalValueResultSummary[];
|
|
51
|
+
}
|
|
52
|
+
export interface ExternalValueResultSummary {
|
|
53
|
+
id: string;
|
|
54
|
+
type: ExternalValueType;
|
|
55
|
+
name: TranslatedString;
|
|
56
|
+
}
|
|
57
|
+
export type ExternalValueType = "number" | "text" | "date" | "boolean";
|
|
58
|
+
/**
|
|
59
|
+
* example:
|
|
60
|
+
* {
|
|
61
|
+
* "context": {
|
|
62
|
+
* "input": "123,45",
|
|
63
|
+
* "contract": {
|
|
64
|
+
* "_id": "8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a",
|
|
65
|
+
* "installment_amount": 110
|
|
66
|
+
* }
|
|
67
|
+
* },
|
|
68
|
+
* "consumer": {
|
|
69
|
+
* "type": "validation_rule",
|
|
70
|
+
* "rule_id": "6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b"
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
export interface ResolveExternalValueRequest {
|
|
75
|
+
/**
|
|
76
|
+
* Everything the consumer supplies for interpolation, as one name → value map.
|
|
77
|
+
* Exposed to the hook's Liquid templates as `Context` / `context`, e.g.
|
|
78
|
+
* `{{ context.input }}`, `{{ context.contract.installment_amount }}`.
|
|
79
|
+
*
|
|
80
|
+
* The names are up to the consumer; this API does not interpret them. By
|
|
81
|
+
* convention the journey runtime passes the validated value of a validation
|
|
82
|
+
* rule as `input` and every configured context binding under its own name.
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
context: {
|
|
86
|
+
[name: string]: any;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Who is resolving the value. Forwarded to the hook as `Consumer`.
|
|
90
|
+
*/
|
|
91
|
+
consumer?: {
|
|
92
|
+
[name: string]: any;
|
|
93
|
+
/**
|
|
94
|
+
* example:
|
|
95
|
+
* validation_rule
|
|
96
|
+
*/
|
|
97
|
+
type?: string;
|
|
98
|
+
rule_id?: string;
|
|
99
|
+
journey_id?: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* example:
|
|
104
|
+
* {
|
|
105
|
+
* "values": {
|
|
106
|
+
* "predicted": 132
|
|
107
|
+
* },
|
|
108
|
+
* "errors": [
|
|
109
|
+
* {
|
|
110
|
+
* "result_id": "limit",
|
|
111
|
+
* "code": "coercion_failed",
|
|
112
|
+
* "message": "Cannot coerce \"n/a\" to number"
|
|
113
|
+
* }
|
|
114
|
+
* ],
|
|
115
|
+
* "policy": {
|
|
116
|
+
* "on_unavailable": "skip"
|
|
117
|
+
* }
|
|
118
|
+
* }
|
|
119
|
+
*/
|
|
120
|
+
export interface ResolveExternalValueResponse {
|
|
121
|
+
/**
|
|
122
|
+
* Successfully extracted and coerced results, keyed by result id
|
|
123
|
+
*/
|
|
124
|
+
values: {
|
|
125
|
+
[name: string]: number | string | boolean;
|
|
126
|
+
};
|
|
127
|
+
errors: ExternalValueError[];
|
|
128
|
+
policy: {
|
|
129
|
+
/**
|
|
130
|
+
* What the consumer should do when the values are unavailable
|
|
131
|
+
*/
|
|
132
|
+
on_unavailable: "skip" | "block";
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* True when `values` were served from the hook's result cache
|
|
136
|
+
*/
|
|
137
|
+
cached?: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface TranslatedString {
|
|
140
|
+
/**
|
|
141
|
+
* German translation
|
|
142
|
+
*/
|
|
143
|
+
de: string;
|
|
144
|
+
/**
|
|
145
|
+
* English translation
|
|
146
|
+
*/
|
|
147
|
+
en?: string | null;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
declare namespace Paths {
|
|
152
|
+
namespace ListExternalValues {
|
|
153
|
+
namespace Responses {
|
|
154
|
+
export type $200 = Components.Schemas.ExternalValueHookList;
|
|
155
|
+
export interface $401 {
|
|
156
|
+
}
|
|
157
|
+
export interface $403 {
|
|
158
|
+
}
|
|
159
|
+
export interface $500 {
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
namespace ResolveExternalValue {
|
|
164
|
+
export type RequestBody = /**
|
|
165
|
+
* example:
|
|
166
|
+
* {
|
|
167
|
+
* "context": {
|
|
168
|
+
* "input": "123,45",
|
|
169
|
+
* "contract": {
|
|
170
|
+
* "_id": "8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a",
|
|
171
|
+
* "installment_amount": 110
|
|
172
|
+
* }
|
|
173
|
+
* },
|
|
174
|
+
* "consumer": {
|
|
175
|
+
* "type": "validation_rule",
|
|
176
|
+
* "rule_id": "6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b"
|
|
177
|
+
* }
|
|
178
|
+
* }
|
|
179
|
+
*/
|
|
180
|
+
Components.Schemas.ResolveExternalValueRequest;
|
|
181
|
+
namespace Responses {
|
|
182
|
+
export type $200 = /**
|
|
183
|
+
* example:
|
|
184
|
+
* {
|
|
185
|
+
* "values": {
|
|
186
|
+
* "predicted": 132
|
|
187
|
+
* },
|
|
188
|
+
* "errors": [
|
|
189
|
+
* {
|
|
190
|
+
* "result_id": "limit",
|
|
191
|
+
* "code": "coercion_failed",
|
|
192
|
+
* "message": "Cannot coerce \"n/a\" to number"
|
|
193
|
+
* }
|
|
194
|
+
* ],
|
|
195
|
+
* "policy": {
|
|
196
|
+
* "on_unavailable": "skip"
|
|
197
|
+
* }
|
|
198
|
+
* }
|
|
199
|
+
*/
|
|
200
|
+
Components.Schemas.ResolveExternalValueResponse;
|
|
201
|
+
export interface $400 {
|
|
202
|
+
}
|
|
203
|
+
export interface $401 {
|
|
204
|
+
}
|
|
205
|
+
export interface $403 {
|
|
206
|
+
}
|
|
207
|
+
export interface $404 {
|
|
208
|
+
}
|
|
209
|
+
export interface $422 {
|
|
210
|
+
}
|
|
211
|
+
export interface $500 {
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
namespace ResolvePortalExternalValue {
|
|
216
|
+
export type RequestBody = /**
|
|
217
|
+
* example:
|
|
218
|
+
* {
|
|
219
|
+
* "context": {
|
|
220
|
+
* "input": "123,45",
|
|
221
|
+
* "contract": {
|
|
222
|
+
* "_id": "8a7e3f5e-9c0c-4c74-8d4a-1a1a1a1a1a1a",
|
|
223
|
+
* "installment_amount": 110
|
|
224
|
+
* }
|
|
225
|
+
* },
|
|
226
|
+
* "consumer": {
|
|
227
|
+
* "type": "validation_rule",
|
|
228
|
+
* "rule_id": "6c0a9e1e-2f4b-4e6a-8f8e-2b2b2b2b2b2b"
|
|
229
|
+
* }
|
|
230
|
+
* }
|
|
231
|
+
*/
|
|
232
|
+
Components.Schemas.ResolveExternalValueRequest;
|
|
233
|
+
namespace Responses {
|
|
234
|
+
export type $200 = /**
|
|
235
|
+
* example:
|
|
236
|
+
* {
|
|
237
|
+
* "values": {
|
|
238
|
+
* "predicted": 132
|
|
239
|
+
* },
|
|
240
|
+
* "errors": [
|
|
241
|
+
* {
|
|
242
|
+
* "result_id": "limit",
|
|
243
|
+
* "code": "coercion_failed",
|
|
244
|
+
* "message": "Cannot coerce \"n/a\" to number"
|
|
245
|
+
* }
|
|
246
|
+
* ],
|
|
247
|
+
* "policy": {
|
|
248
|
+
* "on_unavailable": "skip"
|
|
249
|
+
* }
|
|
250
|
+
* }
|
|
251
|
+
*/
|
|
252
|
+
Components.Schemas.ResolveExternalValueResponse;
|
|
253
|
+
export interface $400 {
|
|
254
|
+
}
|
|
255
|
+
export interface $401 {
|
|
256
|
+
}
|
|
257
|
+
export interface $403 {
|
|
258
|
+
}
|
|
259
|
+
export interface $404 {
|
|
260
|
+
}
|
|
261
|
+
export interface $422 {
|
|
262
|
+
}
|
|
263
|
+
export interface $500 {
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
namespace V1ExternalValues$AppIdHooks$HookIdResolve {
|
|
268
|
+
namespace Parameters {
|
|
269
|
+
export type $0 = Components.Parameters.AppId;
|
|
270
|
+
export type $1 = Components.Parameters.HookId /* ^[a-zA-Z0-9_-]{1,100}$ */;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
namespace V1PortalExternalValues$AppIdHooks$HookIdResolve {
|
|
274
|
+
namespace Parameters {
|
|
275
|
+
export type $0 = Components.Parameters.AppId;
|
|
276
|
+
export type $1 = Components.Parameters.HookId /* ^[a-zA-Z0-9_-]{1,100}$ */;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
interface OperationMethods {
|
|
283
|
+
/**
|
|
284
|
+
* listExternalValues - listExternalValues
|
|
285
|
+
*
|
|
286
|
+
* List hooks and their results of all enabled installed apps that declare an
|
|
287
|
+
* `EXTERNAL_VALUES` component. Intended for pickers (e.g. the validation-rules builder).
|
|
288
|
+
*
|
|
289
|
+
*/
|
|
290
|
+
'listExternalValues'(
|
|
291
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
292
|
+
data?: any,
|
|
293
|
+
config?: AxiosRequestConfig
|
|
294
|
+
): OperationResponse<Paths.ListExternalValues.Responses.$200>
|
|
295
|
+
/**
|
|
296
|
+
* resolveExternalValue - resolveExternalValue
|
|
297
|
+
*
|
|
298
|
+
* Resolve an external value hook for an epilot 360 user (builder preview, entity-attribute
|
|
299
|
+
* rules). The organization is taken from the caller's token.
|
|
300
|
+
*
|
|
301
|
+
* Returns HTTP 200 whenever the hook configuration was found and executed — including
|
|
302
|
+
* upstream failures, which are reported in `errors` so clients can apply `policy`.
|
|
303
|
+
*
|
|
304
|
+
*/
|
|
305
|
+
'resolveExternalValue'(
|
|
306
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
307
|
+
data?: Paths.ResolveExternalValue.RequestBody,
|
|
308
|
+
config?: AxiosRequestConfig
|
|
309
|
+
): OperationResponse<Paths.ResolveExternalValue.Responses.$200>
|
|
310
|
+
/**
|
|
311
|
+
* resolvePortalExternalValue - resolvePortalExternalValue
|
|
312
|
+
*
|
|
313
|
+
* Resolve an external value hook for a portal end customer (private journeys, portal).
|
|
314
|
+
* The organization is taken from the portal token claims.
|
|
315
|
+
*
|
|
316
|
+
* Returns HTTP 200 whenever the hook configuration was found and executed — including
|
|
317
|
+
* upstream failures, which are reported in `errors` so clients can apply `policy`.
|
|
318
|
+
*
|
|
319
|
+
*/
|
|
320
|
+
'resolvePortalExternalValue'(
|
|
321
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
322
|
+
data?: Paths.ResolvePortalExternalValue.RequestBody,
|
|
323
|
+
config?: AxiosRequestConfig
|
|
324
|
+
): OperationResponse<Paths.ResolvePortalExternalValue.Responses.$200>
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
interface PathsDictionary {
|
|
328
|
+
['/v1/external-values']: {
|
|
329
|
+
/**
|
|
330
|
+
* listExternalValues - listExternalValues
|
|
331
|
+
*
|
|
332
|
+
* List hooks and their results of all enabled installed apps that declare an
|
|
333
|
+
* `EXTERNAL_VALUES` component. Intended for pickers (e.g. the validation-rules builder).
|
|
334
|
+
*
|
|
335
|
+
*/
|
|
336
|
+
'get'(
|
|
337
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
338
|
+
data?: any,
|
|
339
|
+
config?: AxiosRequestConfig
|
|
340
|
+
): OperationResponse<Paths.ListExternalValues.Responses.$200>
|
|
341
|
+
}
|
|
342
|
+
['/v1/external-values/{app_id}/hooks/{hook_id}:resolve']: {
|
|
343
|
+
/**
|
|
344
|
+
* resolveExternalValue - resolveExternalValue
|
|
345
|
+
*
|
|
346
|
+
* Resolve an external value hook for an epilot 360 user (builder preview, entity-attribute
|
|
347
|
+
* rules). The organization is taken from the caller's token.
|
|
348
|
+
*
|
|
349
|
+
* Returns HTTP 200 whenever the hook configuration was found and executed — including
|
|
350
|
+
* upstream failures, which are reported in `errors` so clients can apply `policy`.
|
|
351
|
+
*
|
|
352
|
+
*/
|
|
353
|
+
'post'(
|
|
354
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
355
|
+
data?: Paths.ResolveExternalValue.RequestBody,
|
|
356
|
+
config?: AxiosRequestConfig
|
|
357
|
+
): OperationResponse<Paths.ResolveExternalValue.Responses.$200>
|
|
358
|
+
}
|
|
359
|
+
['/v1/portal/external-values/{app_id}/hooks/{hook_id}:resolve']: {
|
|
360
|
+
/**
|
|
361
|
+
* resolvePortalExternalValue - resolvePortalExternalValue
|
|
362
|
+
*
|
|
363
|
+
* Resolve an external value hook for a portal end customer (private journeys, portal).
|
|
364
|
+
* The organization is taken from the portal token claims.
|
|
365
|
+
*
|
|
366
|
+
* Returns HTTP 200 whenever the hook configuration was found and executed — including
|
|
367
|
+
* upstream failures, which are reported in `errors` so clients can apply `policy`.
|
|
368
|
+
*
|
|
369
|
+
*/
|
|
370
|
+
'post'(
|
|
371
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
372
|
+
data?: Paths.ResolvePortalExternalValue.RequestBody,
|
|
373
|
+
config?: AxiosRequestConfig
|
|
374
|
+
): OperationResponse<Paths.ResolvePortalExternalValue.Responses.$200>
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
type ExternalValueError = Components.Schemas.ExternalValueError;
|
|
382
|
+
type ExternalValueErrorCode = Components.Schemas.ExternalValueErrorCode;
|
|
383
|
+
type ExternalValueHookList = Components.Schemas.ExternalValueHookList;
|
|
384
|
+
type ExternalValueHookSummary = Components.Schemas.ExternalValueHookSummary;
|
|
385
|
+
type ExternalValueResultSummary = Components.Schemas.ExternalValueResultSummary;
|
|
386
|
+
type ExternalValueType = Components.Schemas.ExternalValueType;
|
|
387
|
+
type ResolveExternalValueRequest = Components.Schemas.ResolveExternalValueRequest;
|
|
388
|
+
type ResolveExternalValueResponse = Components.Schemas.ResolveExternalValueResponse;
|
|
389
|
+
type TranslatedString = Components.Schemas.TranslatedString;
|
|
390
|
+
|
|
391
|
+
export { type Client as C, type ExternalValueError as E, type OperationMethods as O, Paths as P, type ResolveExternalValueRequest as R, type TranslatedString as T, Components as a, type PathsDictionary as b, type ExternalValueErrorCode as c, type ExternalValueHookList as d, type ExternalValueHookSummary as e, type ExternalValueResultSummary as f, type ExternalValueType as g, type ResolveExternalValueResponse as h };
|