@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 };
|
package/dist/index.cjs
CHANGED
|
@@ -21,6 +21,9 @@ var _chunkADX7IYB3cjs = require('./chunk-ADX7IYB3.cjs');
|
|
|
21
21
|
var _chunkPM25LLETcjs = require('./chunk-PM25LLET.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
var _chunkN5NFJW7Ycjs = require('./chunk-N5NFJW7Y.cjs');
|
|
25
|
+
|
|
26
|
+
|
|
24
27
|
var _chunkBU5DVOFFcjs = require('./chunk-BU5DVOFF.cjs');
|
|
25
28
|
|
|
26
29
|
|
|
@@ -42,6 +45,9 @@ var _chunkVDMPIKANcjs = require('./chunk-VDMPIKAN.cjs');
|
|
|
42
45
|
var _chunkWWOAKRNGcjs = require('./chunk-WWOAKRNG.cjs');
|
|
43
46
|
|
|
44
47
|
|
|
48
|
+
var _chunkG3VDRMOHcjs = require('./chunk-G3VDRMOH.cjs');
|
|
49
|
+
|
|
50
|
+
|
|
45
51
|
var _chunkEHLNSFCUcjs = require('./chunk-EHLNSFCU.cjs');
|
|
46
52
|
|
|
47
53
|
|
|
@@ -63,15 +69,15 @@ var _chunkBFUNXZRXcjs = require('./chunk-BFUNXZRX.cjs');
|
|
|
63
69
|
var _chunkWTMV77T2cjs = require('./chunk-WTMV77T2.cjs');
|
|
64
70
|
|
|
65
71
|
|
|
66
|
-
var _chunkN5NFJW7Ycjs = require('./chunk-N5NFJW7Y.cjs');
|
|
67
|
-
|
|
68
|
-
|
|
69
72
|
var _chunkI6DG26UJcjs = require('./chunk-I6DG26UJ.cjs');
|
|
70
73
|
|
|
71
74
|
|
|
72
75
|
var _chunkULV6ZQQRcjs = require('./chunk-ULV6ZQQR.cjs');
|
|
73
76
|
|
|
74
77
|
|
|
78
|
+
var _chunkNC33X2WLcjs = require('./chunk-NC33X2WL.cjs');
|
|
79
|
+
|
|
80
|
+
|
|
75
81
|
var _chunk424JLS5Gcjs = require('./chunk-424JLS5G.cjs');
|
|
76
82
|
|
|
77
83
|
|
|
@@ -87,9 +93,6 @@ var _chunkEPZ3JT2Wcjs = require('./chunk-EPZ3JT2W.cjs');
|
|
|
87
93
|
var _chunkQYHNZLHScjs = require('./chunk-QYHNZLHS.cjs');
|
|
88
94
|
|
|
89
95
|
|
|
90
|
-
var _chunkG3VDRMOHcjs = require('./chunk-G3VDRMOH.cjs');
|
|
91
|
-
|
|
92
|
-
|
|
93
96
|
var _chunkZL6KDJFTcjs = require('./chunk-ZL6KDJFT.cjs');
|
|
94
97
|
|
|
95
98
|
|
|
@@ -164,7 +167,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
|
|
|
164
167
|
|
|
165
168
|
|
|
166
169
|
|
|
167
|
-
var
|
|
170
|
+
var _chunkUVYQFUAOcjs = require('./chunk-UVYQFUAO.cjs');
|
|
168
171
|
|
|
169
172
|
|
|
170
173
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -231,7 +234,7 @@ var resolveClient = (params) => {
|
|
|
231
234
|
}
|
|
232
235
|
if (!entry.instance) {
|
|
233
236
|
const definition = entry.loader();
|
|
234
|
-
entry.instance =
|
|
237
|
+
entry.instance = _chunkUVYQFUAOcjs.createApiClient.call(void 0, {
|
|
235
238
|
definition,
|
|
236
239
|
token: state.token,
|
|
237
240
|
headers: state.globalHeaders,
|
|
@@ -264,7 +267,7 @@ var resetAllClients = (registry) => {
|
|
|
264
267
|
};
|
|
265
268
|
|
|
266
269
|
// src/apis/_registry.ts
|
|
267
|
-
var expandDef = (mod) =>
|
|
270
|
+
var expandDef = (mod) => _chunkUVYQFUAOcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
268
271
|
var registerBuiltinApis = (registry) => {
|
|
269
272
|
registerApi({
|
|
270
273
|
registry,
|
|
@@ -391,6 +394,11 @@ var registerBuiltinApis = (registry) => {
|
|
|
391
394
|
name: "eventCatalog",
|
|
392
395
|
loader: () => expandDef(_chunkULV6ZQQRcjs.require_event_catalog_runtime.call(void 0, ))
|
|
393
396
|
});
|
|
397
|
+
registerApi({
|
|
398
|
+
registry,
|
|
399
|
+
name: "externalValues",
|
|
400
|
+
loader: () => expandDef(_chunkNC33X2WLcjs.require_external_values_runtime.call(void 0, ))
|
|
401
|
+
});
|
|
394
402
|
registerApi({
|
|
395
403
|
registry,
|
|
396
404
|
name: "file",
|
|
@@ -617,9 +625,9 @@ var createSDK = () => {
|
|
|
617
625
|
const available = [...registry.keys()].join(", ");
|
|
618
626
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
619
627
|
}
|
|
620
|
-
return
|
|
628
|
+
return _chunkUVYQFUAOcjs.createApiHandle.call(void 0, {
|
|
621
629
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
622
|
-
createClient: () =>
|
|
630
|
+
createClient: () => _chunkUVYQFUAOcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
623
631
|
apiName: name
|
|
624
632
|
});
|
|
625
633
|
};
|
|
@@ -667,9 +675,9 @@ var createSDK = () => {
|
|
|
667
675
|
return interceptorUse;
|
|
668
676
|
}
|
|
669
677
|
case "help":
|
|
670
|
-
return (apiName) =>
|
|
678
|
+
return (apiName) => _chunkUVYQFUAOcjs.help.call(void 0, apiName);
|
|
671
679
|
case "openapi":
|
|
672
|
-
return (apiName) =>
|
|
680
|
+
return (apiName) => _chunkUVYQFUAOcjs.openapi.call(void 0, apiName);
|
|
673
681
|
case "then":
|
|
674
682
|
case "catch":
|
|
675
683
|
case "finally":
|
|
@@ -699,4 +707,4 @@ var epilot = createSDK();
|
|
|
699
707
|
|
|
700
708
|
|
|
701
709
|
|
|
702
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
710
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkUVYQFUAOcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkUVYQFUAOcjs.help; exports.openapi = _chunkUVYQFUAOcjs.openapi;
|
package/dist/index.d.cts
CHANGED
|
@@ -28,34 +28,35 @@ import { C as Client$l } from './entity.d-BwsBk0Po.cjs';
|
|
|
28
28
|
import { C as Client$m } from './entity-mapping.d-8MtWa2_L.cjs';
|
|
29
29
|
import { C as Client$n } from './environments.d-qL1urwAq.cjs';
|
|
30
30
|
import { C as Client$o } from './event-catalog.d-BrAxYS9D.cjs';
|
|
31
|
-
import { C as Client$p } from './
|
|
32
|
-
import { C as Client$q } from './
|
|
33
|
-
import { C as Client$r } from './
|
|
34
|
-
import { C as Client$s } from './
|
|
35
|
-
import { C as Client$t } from './
|
|
36
|
-
import { C as Client$u } from './
|
|
37
|
-
import { C as Client$v } from './
|
|
38
|
-
import { C as Client$w } from './
|
|
39
|
-
import { C as Client$x } from './
|
|
40
|
-
import { C as Client$y } from './
|
|
41
|
-
import { C as Client$z } from './
|
|
42
|
-
import { C as Client$A } from './
|
|
43
|
-
import { C as Client$B } from './
|
|
44
|
-
import { C as Client$C } from './
|
|
45
|
-
import { C as Client$D } from './pricing
|
|
46
|
-
import { C as Client$E } from './
|
|
47
|
-
import { C as Client$F } from './
|
|
48
|
-
import { C as Client$G } from './
|
|
49
|
-
import { C as Client$H } from './
|
|
50
|
-
import { C as Client$I } from './
|
|
51
|
-
import { C as Client$J } from './
|
|
52
|
-
import { C as Client$K } from './
|
|
53
|
-
import { C as Client$L } from './
|
|
54
|
-
import { C as Client$M } from './
|
|
55
|
-
import { C as Client$N } from './
|
|
56
|
-
import { C as Client$O } from './
|
|
57
|
-
import { C as Client$P } from './
|
|
58
|
-
import { C as Client$Q } from './workflow
|
|
31
|
+
import { C as Client$p } from './external-values.d-DjP9C_-r.cjs';
|
|
32
|
+
import { C as Client$q } from './file.d-DELNV63w.cjs';
|
|
33
|
+
import { C as Client$r } from './iban.d-BwdiGbxi.cjs';
|
|
34
|
+
import { C as Client$s } from './identity.d-BBL0NI_O.cjs';
|
|
35
|
+
import { C as Client$t } from './integration-toolkit.d-CLlaZx6b.cjs';
|
|
36
|
+
import { C as Client$u } from './journey.d-CMtM6U3Y.cjs';
|
|
37
|
+
import { C as Client$v } from './kanban.d-BHnSRCYW.cjs';
|
|
38
|
+
import { C as Client$w } from './message.d-DwnqO-Us.cjs';
|
|
39
|
+
import { C as Client$x } from './metering.d-BP04w-gR.cjs';
|
|
40
|
+
import { C as Client$y } from './notes.d-rbcyHfiB.cjs';
|
|
41
|
+
import { C as Client$z } from './notification.d-r89Jec85.cjs';
|
|
42
|
+
import { C as Client$A } from './organization.d-DqwnNxMg.cjs';
|
|
43
|
+
import { C as Client$B } from './partner-directory.d-BCIjHoGs.cjs';
|
|
44
|
+
import { C as Client$C } from './permissions.d-BKoyMhU7.cjs';
|
|
45
|
+
import { C as Client$D } from './pricing.d-BMV5QoZ7.cjs';
|
|
46
|
+
import { C as Client$E } from './pricing-tier.d-Cg0jl6n_.cjs';
|
|
47
|
+
import { C as Client$F } from './purpose.d-CbIYfTua.cjs';
|
|
48
|
+
import { C as Client$G } from './query.d-Cmp78IhZ.cjs';
|
|
49
|
+
import { C as Client$H } from './sandbox.d-BdbOFzDu.cjs';
|
|
50
|
+
import { C as Client$I } from './sharing.d-sOXq-gtz.cjs';
|
|
51
|
+
import { C as Client$J } from './snapshot.d-DT0zg2CS.cjs';
|
|
52
|
+
import { C as Client$K } from './submission.d-BamwfhXw.cjs';
|
|
53
|
+
import { C as Client$L } from './targeting.d-BYVSahmV.cjs';
|
|
54
|
+
import { C as Client$M } from './template-variables.d-Ble9TSBa.cjs';
|
|
55
|
+
import { C as Client$N } from './user.d-rqYtwsCz.cjs';
|
|
56
|
+
import { C as Client$O } from './validation-rules.d-Bbo90IYn.cjs';
|
|
57
|
+
import { C as Client$P } from './webhooks.d-DqOEzFsp.cjs';
|
|
58
|
+
import { C as Client$Q } from './workflow.d-5cyNJgVQ.cjs';
|
|
59
|
+
import { C as Client$R } from './workflow-definition.d-CweGhhBU.cjs';
|
|
59
60
|
|
|
60
61
|
type SDKClientMap = {
|
|
61
62
|
accessToken: Client;
|
|
@@ -83,34 +84,35 @@ type SDKClientMap = {
|
|
|
83
84
|
entityMapping: Client$m;
|
|
84
85
|
environments: Client$n;
|
|
85
86
|
eventCatalog: Client$o;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
87
|
+
externalValues: Client$p;
|
|
88
|
+
file: Client$q;
|
|
89
|
+
iban: Client$r;
|
|
90
|
+
identity: Client$s;
|
|
91
|
+
integrationToolkit: Client$t;
|
|
92
|
+
journey: Client$u;
|
|
93
|
+
kanban: Client$v;
|
|
94
|
+
message: Client$w;
|
|
95
|
+
metering: Client$x;
|
|
96
|
+
notes: Client$y;
|
|
97
|
+
notification: Client$z;
|
|
98
|
+
organization: Client$A;
|
|
99
|
+
partnerDirectory: Client$B;
|
|
100
|
+
permissions: Client$C;
|
|
101
|
+
pricing: Client$D;
|
|
102
|
+
pricingTier: Client$E;
|
|
103
|
+
purpose: Client$F;
|
|
104
|
+
query: Client$G;
|
|
105
|
+
sandbox: Client$H;
|
|
106
|
+
sharing: Client$I;
|
|
107
|
+
snapshot: Client$J;
|
|
108
|
+
submission: Client$K;
|
|
109
|
+
targeting: Client$L;
|
|
110
|
+
templateVariables: Client$M;
|
|
111
|
+
user: Client$N;
|
|
112
|
+
validationRules: Client$O;
|
|
113
|
+
webhooks: Client$P;
|
|
114
|
+
workflow: Client$Q;
|
|
115
|
+
workflowDefinition: Client$R;
|
|
114
116
|
};
|
|
115
117
|
|
|
116
118
|
type LargeResponseConfig = {
|