@epilot/sdk 2.20.32 → 2.20.34
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/automation.json +228 -7
- package/definitions/event-catalog-runtime.json +1 -1
- package/definitions/event-catalog.json +310 -1
- package/definitions/focus-pocus-runtime.json +1 -0
- package/definitions/focus-pocus.json +757 -0
- package/definitions/integration-toolkit.json +272 -1
- package/definitions/metering.json +19 -8
- 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.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- 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 +8 -8
- package/dist/apis/event-catalog.d.cts +2 -2
- package/dist/apis/event-catalog.d.ts +2 -2
- package/dist/apis/event-catalog.js +2 -2
- 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/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.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- 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/automation-G2CKAQNB.cjs +7 -0
- package/dist/automation-UPTNUOYO.js +7 -0
- package/dist/{automation.d-2biAmiMc.d.cts → automation.d-B8g3nYp-.d.cts} +175 -7
- package/dist/{automation.d-2biAmiMc.d.ts → automation.d-B8g3nYp-.d.ts} +175 -7
- package/dist/chunk-M6G3GHCU.js +14 -0
- package/dist/{chunk-E7DJRTMC.js → chunk-RJVNG46W.js} +4 -4
- package/dist/chunk-ULV6ZQQR.cjs +14 -0
- package/dist/{chunk-A6FO6QAZ.cjs → chunk-XFBOYWIP.cjs} +4 -4
- package/dist/event-catalog-5HHAS7NI.js +7 -0
- package/dist/event-catalog-SAH4ZEOO.cjs +7 -0
- package/dist/{event-catalog-runtime-XWSYNUGQ.cjs → event-catalog-runtime-2ACQMB22.cjs} +2 -2
- package/dist/{event-catalog-runtime-Z6OMHQBD.js → event-catalog-runtime-5IXAZVIB.js} +1 -1
- package/dist/{event-catalog.d-CCE1qmBN.d.cts → event-catalog.d-BQqG_LGF.d.cts} +248 -1
- package/dist/{event-catalog.d-CCE1qmBN.d.ts → event-catalog.d-BQqG_LGF.d.ts} +248 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/{metering-COO4BTOC.js → metering-SHNCUA4O.js} +1 -1
- package/dist/{metering-FJI2AU7Q.cjs → metering-WAVFLJZD.cjs} +1 -1
- package/dist/{metering.d-DomHYl06.d.ts → metering.d-BP04w-gR.d.cts} +24 -15
- package/dist/{metering.d-DomHYl06.d.cts → metering.d-BP04w-gR.d.ts} +24 -15
- package/docs/automation.md +200 -3
- package/docs/event-catalog.md +439 -0
- package/docs/metering.md +4 -4
- package/package.json +12 -11
- package/dist/automation-CDMOEYVP.cjs +0 -7
- package/dist/automation-XFMSH7Y3.js +0 -7
- package/dist/chunk-2Q6CNXJ2.cjs +0 -14
- package/dist/chunk-LTCN52JS.js +0 -14
- package/dist/event-catalog-S4OYTDIB.js +0 -7
- package/dist/event-catalog-Z6BO4L2G.cjs +0 -7
|
@@ -850,7 +850,9 @@ declare namespace Components {
|
|
|
850
850
|
*/
|
|
851
851
|
counter_id?: EntityId /* uuid */;
|
|
852
852
|
/**
|
|
853
|
-
* The direction of the reading
|
|
853
|
+
* The direction of the reading. Optional, but **strongly recommended**: readings are keyed by direction in storage, so every reading is stored with one.
|
|
854
|
+
* Resolution order: the value sent here, else the `direction` of the reading's counter, else a value derived from the counter's `obis_number` — `2.x.x` on an electricity counter is `feed-in`, and everything else (including heat, gas and water, which have no meaningful direction) is `feed-out`.
|
|
855
|
+
* Relying on the derived fallback is fine for single-flow media. For electricity, set `direction` on the reading or on the counter: an electricity export counter that carries neither, and whose OBIS code does not say `2.x.x`, will be stored as `feed-out`.
|
|
854
856
|
*/
|
|
855
857
|
direction?: Direction;
|
|
856
858
|
/**
|
|
@@ -1836,6 +1838,7 @@ declare namespace Paths {
|
|
|
1836
1838
|
export type $400 = Components.Responses.InvalidRequest;
|
|
1837
1839
|
export type $401 = Components.Responses.Unauthorized;
|
|
1838
1840
|
export type $403 = Components.Responses.Forbidden;
|
|
1841
|
+
export type $413 = Components.Schemas.ErrorResp;
|
|
1839
1842
|
export type $500 = Components.Responses.InternalServerError;
|
|
1840
1843
|
}
|
|
1841
1844
|
}
|
|
@@ -2150,7 +2153,10 @@ interface OperationMethods {
|
|
|
2150
2153
|
config?: AxiosRequestConfig
|
|
2151
2154
|
): OperationResponse<Paths.DeleteMeterReading.Responses.$200>
|
|
2152
2155
|
/**
|
|
2153
|
-
* getReadingChangesets -
|
|
2156
|
+
* getReadingChangesets - getReadingChangesets
|
|
2157
|
+
*
|
|
2158
|
+
* Lists the pending reading changesets for a counter.
|
|
2159
|
+
*
|
|
2154
2160
|
*/
|
|
2155
2161
|
'getReadingChangesets'(
|
|
2156
2162
|
parameters?: Parameters<Paths.GetReadingChangesets.PathParameters> | null,
|
|
@@ -2158,9 +2164,9 @@ interface OperationMethods {
|
|
|
2158
2164
|
config?: AxiosRequestConfig
|
|
2159
2165
|
): OperationResponse<Paths.GetReadingChangesets.Responses.$200>
|
|
2160
2166
|
/**
|
|
2161
|
-
* applyReadingChangeset -
|
|
2167
|
+
* applyReadingChangeset - applyReadingChangeset
|
|
2162
2168
|
*
|
|
2163
|
-
* Applies the proposed reading value to ClickHouse and
|
|
2169
|
+
* Applies (approves) a pending reading changeset: the proposed reading value is written to ClickHouse and the pending changeset is removed.
|
|
2164
2170
|
*
|
|
2165
2171
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2166
2172
|
*
|
|
@@ -2171,9 +2177,9 @@ interface OperationMethods {
|
|
|
2171
2177
|
config?: AxiosRequestConfig
|
|
2172
2178
|
): OperationResponse<Paths.ApplyReadingChangeset.Responses.$200>
|
|
2173
2179
|
/**
|
|
2174
|
-
* dismissReadingChangeset -
|
|
2180
|
+
* dismissReadingChangeset - dismissReadingChangeset
|
|
2175
2181
|
*
|
|
2176
|
-
*
|
|
2182
|
+
* Dismisses (rejects) a pending reading changeset: the changeset is removed without being applied. The reading value remains unchanged.
|
|
2177
2183
|
*
|
|
2178
2184
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2179
2185
|
*
|
|
@@ -2184,9 +2190,9 @@ interface OperationMethods {
|
|
|
2184
2190
|
config?: AxiosRequestConfig
|
|
2185
2191
|
): OperationResponse<Paths.DismissReadingChangeset.Responses.$200>
|
|
2186
2192
|
/**
|
|
2187
|
-
* updateReadingChangeset -
|
|
2193
|
+
* updateReadingChangeset - updateReadingChangeset
|
|
2188
2194
|
*
|
|
2189
|
-
*
|
|
2195
|
+
* Edits a pending reading changeset by updating its proposed value, without going through the normal write path.
|
|
2190
2196
|
*
|
|
2191
2197
|
*/
|
|
2192
2198
|
'updateReadingChangeset'(
|
|
@@ -2459,7 +2465,10 @@ interface PathsDictionary {
|
|
|
2459
2465
|
}
|
|
2460
2466
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets']: {
|
|
2461
2467
|
/**
|
|
2462
|
-
* getReadingChangesets -
|
|
2468
|
+
* getReadingChangesets - getReadingChangesets
|
|
2469
|
+
*
|
|
2470
|
+
* Lists the pending reading changesets for a counter.
|
|
2471
|
+
*
|
|
2463
2472
|
*/
|
|
2464
2473
|
'get'(
|
|
2465
2474
|
parameters?: Parameters<Paths.GetReadingChangesets.PathParameters> | null,
|
|
@@ -2469,9 +2478,9 @@ interface PathsDictionary {
|
|
|
2469
2478
|
}
|
|
2470
2479
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:apply']: {
|
|
2471
2480
|
/**
|
|
2472
|
-
* applyReadingChangeset -
|
|
2481
|
+
* applyReadingChangeset - applyReadingChangeset
|
|
2473
2482
|
*
|
|
2474
|
-
* Applies the proposed reading value to ClickHouse and
|
|
2483
|
+
* Applies (approves) a pending reading changeset: the proposed reading value is written to ClickHouse and the pending changeset is removed.
|
|
2475
2484
|
*
|
|
2476
2485
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2477
2486
|
*
|
|
@@ -2484,9 +2493,9 @@ interface PathsDictionary {
|
|
|
2484
2493
|
}
|
|
2485
2494
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:dismiss']: {
|
|
2486
2495
|
/**
|
|
2487
|
-
* dismissReadingChangeset -
|
|
2496
|
+
* dismissReadingChangeset - dismissReadingChangeset
|
|
2488
2497
|
*
|
|
2489
|
-
*
|
|
2498
|
+
* Dismisses (rejects) a pending reading changeset: the changeset is removed without being applied. The reading value remains unchanged.
|
|
2490
2499
|
*
|
|
2491
2500
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2492
2501
|
*
|
|
@@ -2499,9 +2508,9 @@ interface PathsDictionary {
|
|
|
2499
2508
|
}
|
|
2500
2509
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}']: {
|
|
2501
2510
|
/**
|
|
2502
|
-
* updateReadingChangeset -
|
|
2511
|
+
* updateReadingChangeset - updateReadingChangeset
|
|
2503
2512
|
*
|
|
2504
|
-
*
|
|
2513
|
+
* Edits a pending reading changeset by updating its proposed value, without going through the normal write path.
|
|
2505
2514
|
*
|
|
2506
2515
|
*/
|
|
2507
2516
|
'patch'(
|
|
@@ -850,7 +850,9 @@ declare namespace Components {
|
|
|
850
850
|
*/
|
|
851
851
|
counter_id?: EntityId /* uuid */;
|
|
852
852
|
/**
|
|
853
|
-
* The direction of the reading
|
|
853
|
+
* The direction of the reading. Optional, but **strongly recommended**: readings are keyed by direction in storage, so every reading is stored with one.
|
|
854
|
+
* Resolution order: the value sent here, else the `direction` of the reading's counter, else a value derived from the counter's `obis_number` — `2.x.x` on an electricity counter is `feed-in`, and everything else (including heat, gas and water, which have no meaningful direction) is `feed-out`.
|
|
855
|
+
* Relying on the derived fallback is fine for single-flow media. For electricity, set `direction` on the reading or on the counter: an electricity export counter that carries neither, and whose OBIS code does not say `2.x.x`, will be stored as `feed-out`.
|
|
854
856
|
*/
|
|
855
857
|
direction?: Direction;
|
|
856
858
|
/**
|
|
@@ -1836,6 +1838,7 @@ declare namespace Paths {
|
|
|
1836
1838
|
export type $400 = Components.Responses.InvalidRequest;
|
|
1837
1839
|
export type $401 = Components.Responses.Unauthorized;
|
|
1838
1840
|
export type $403 = Components.Responses.Forbidden;
|
|
1841
|
+
export type $413 = Components.Schemas.ErrorResp;
|
|
1839
1842
|
export type $500 = Components.Responses.InternalServerError;
|
|
1840
1843
|
}
|
|
1841
1844
|
}
|
|
@@ -2150,7 +2153,10 @@ interface OperationMethods {
|
|
|
2150
2153
|
config?: AxiosRequestConfig
|
|
2151
2154
|
): OperationResponse<Paths.DeleteMeterReading.Responses.$200>
|
|
2152
2155
|
/**
|
|
2153
|
-
* getReadingChangesets -
|
|
2156
|
+
* getReadingChangesets - getReadingChangesets
|
|
2157
|
+
*
|
|
2158
|
+
* Lists the pending reading changesets for a counter.
|
|
2159
|
+
*
|
|
2154
2160
|
*/
|
|
2155
2161
|
'getReadingChangesets'(
|
|
2156
2162
|
parameters?: Parameters<Paths.GetReadingChangesets.PathParameters> | null,
|
|
@@ -2158,9 +2164,9 @@ interface OperationMethods {
|
|
|
2158
2164
|
config?: AxiosRequestConfig
|
|
2159
2165
|
): OperationResponse<Paths.GetReadingChangesets.Responses.$200>
|
|
2160
2166
|
/**
|
|
2161
|
-
* applyReadingChangeset -
|
|
2167
|
+
* applyReadingChangeset - applyReadingChangeset
|
|
2162
2168
|
*
|
|
2163
|
-
* Applies the proposed reading value to ClickHouse and
|
|
2169
|
+
* Applies (approves) a pending reading changeset: the proposed reading value is written to ClickHouse and the pending changeset is removed.
|
|
2164
2170
|
*
|
|
2165
2171
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2166
2172
|
*
|
|
@@ -2171,9 +2177,9 @@ interface OperationMethods {
|
|
|
2171
2177
|
config?: AxiosRequestConfig
|
|
2172
2178
|
): OperationResponse<Paths.ApplyReadingChangeset.Responses.$200>
|
|
2173
2179
|
/**
|
|
2174
|
-
* dismissReadingChangeset -
|
|
2180
|
+
* dismissReadingChangeset - dismissReadingChangeset
|
|
2175
2181
|
*
|
|
2176
|
-
*
|
|
2182
|
+
* Dismisses (rejects) a pending reading changeset: the changeset is removed without being applied. The reading value remains unchanged.
|
|
2177
2183
|
*
|
|
2178
2184
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2179
2185
|
*
|
|
@@ -2184,9 +2190,9 @@ interface OperationMethods {
|
|
|
2184
2190
|
config?: AxiosRequestConfig
|
|
2185
2191
|
): OperationResponse<Paths.DismissReadingChangeset.Responses.$200>
|
|
2186
2192
|
/**
|
|
2187
|
-
* updateReadingChangeset -
|
|
2193
|
+
* updateReadingChangeset - updateReadingChangeset
|
|
2188
2194
|
*
|
|
2189
|
-
*
|
|
2195
|
+
* Edits a pending reading changeset by updating its proposed value, without going through the normal write path.
|
|
2190
2196
|
*
|
|
2191
2197
|
*/
|
|
2192
2198
|
'updateReadingChangeset'(
|
|
@@ -2459,7 +2465,10 @@ interface PathsDictionary {
|
|
|
2459
2465
|
}
|
|
2460
2466
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets']: {
|
|
2461
2467
|
/**
|
|
2462
|
-
* getReadingChangesets -
|
|
2468
|
+
* getReadingChangesets - getReadingChangesets
|
|
2469
|
+
*
|
|
2470
|
+
* Lists the pending reading changesets for a counter.
|
|
2471
|
+
*
|
|
2463
2472
|
*/
|
|
2464
2473
|
'get'(
|
|
2465
2474
|
parameters?: Parameters<Paths.GetReadingChangesets.PathParameters> | null,
|
|
@@ -2469,9 +2478,9 @@ interface PathsDictionary {
|
|
|
2469
2478
|
}
|
|
2470
2479
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:apply']: {
|
|
2471
2480
|
/**
|
|
2472
|
-
* applyReadingChangeset -
|
|
2481
|
+
* applyReadingChangeset - applyReadingChangeset
|
|
2473
2482
|
*
|
|
2474
|
-
* Applies the proposed reading value to ClickHouse and
|
|
2483
|
+
* Applies (approves) a pending reading changeset: the proposed reading value is written to ClickHouse and the pending changeset is removed.
|
|
2475
2484
|
*
|
|
2476
2485
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2477
2486
|
*
|
|
@@ -2484,9 +2493,9 @@ interface PathsDictionary {
|
|
|
2484
2493
|
}
|
|
2485
2494
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:dismiss']: {
|
|
2486
2495
|
/**
|
|
2487
|
-
* dismissReadingChangeset -
|
|
2496
|
+
* dismissReadingChangeset - dismissReadingChangeset
|
|
2488
2497
|
*
|
|
2489
|
-
*
|
|
2498
|
+
* Dismisses (rejects) a pending reading changeset: the changeset is removed without being applied. The reading value remains unchanged.
|
|
2490
2499
|
*
|
|
2491
2500
|
* Requires `meter_reading:edit` permission (approval workflow action on the reading's approval state).
|
|
2492
2501
|
*
|
|
@@ -2499,9 +2508,9 @@ interface PathsDictionary {
|
|
|
2499
2508
|
}
|
|
2500
2509
|
['/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}']: {
|
|
2501
2510
|
/**
|
|
2502
|
-
* updateReadingChangeset -
|
|
2511
|
+
* updateReadingChangeset - updateReadingChangeset
|
|
2503
2512
|
*
|
|
2504
|
-
*
|
|
2513
|
+
* Edits a pending reading changeset by updating its proposed value, without going through the normal write path.
|
|
2505
2514
|
*
|
|
2506
2515
|
*/
|
|
2507
2516
|
'patch'(
|
package/docs/automation.md
CHANGED
|
@@ -53,6 +53,9 @@ const { data } = await automationClient.searchFlows(...)
|
|
|
53
53
|
- [`AutomationFlow`](#automationflow)
|
|
54
54
|
- [`WorkflowContextRole`](#workflowcontextrole)
|
|
55
55
|
- [`SearchAutomationsResp`](#searchautomationsresp)
|
|
56
|
+
- [`JourneyContextUsagesReq`](#journeycontextusagesreq)
|
|
57
|
+
- [`JourneyContextUsage`](#journeycontextusage)
|
|
58
|
+
- [`JourneyContextUsagesResp`](#journeycontextusagesresp)
|
|
56
59
|
- [`AnyTrigger`](#anytrigger)
|
|
57
60
|
- [`AnyAction`](#anyaction)
|
|
58
61
|
- [`AnyActionConfig`](#anyactionconfig)
|
|
@@ -154,6 +157,9 @@ const { data } = await automationClient.searchFlows(...)
|
|
|
154
157
|
- [`SearchExecutionsReq`](#searchexecutionsreq)
|
|
155
158
|
- [`SearchExecutionsResp`](#searchexecutionsresp)
|
|
156
159
|
- [`StartExecutionRequest`](#startexecutionrequest)
|
|
160
|
+
- [`ActionInputs`](#actioninputs)
|
|
161
|
+
- [`SendEmailInputs`](#sendemailinputs)
|
|
162
|
+
- [`FlowExecutionCancelInputs`](#flowexecutioncancelinputs)
|
|
157
163
|
- [`PatchBulkJobRequest`](#patchbulkjobrequest)
|
|
158
164
|
- [`BulkTriggerRequest`](#bulktriggerrequest)
|
|
159
165
|
- [`EntityRef`](#entityref)
|
|
@@ -328,6 +334,7 @@ const { data } = await client.getExecutions({
|
|
|
328
334
|
"conditions": [],
|
|
329
335
|
"schedules": [],
|
|
330
336
|
"actions": [],
|
|
337
|
+
"action_inputs": {},
|
|
331
338
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
332
339
|
"trigger_context": {},
|
|
333
340
|
"version": 2,
|
|
@@ -378,7 +385,23 @@ const { data } = await client.startExecution(
|
|
|
378
385
|
trigger_user_id: '10006129'
|
|
379
386
|
},
|
|
380
387
|
flow_execution_id: 'string',
|
|
381
|
-
flow_automation_task_id: 'string'
|
|
388
|
+
flow_automation_task_id: 'string',
|
|
389
|
+
action_inputs: {
|
|
390
|
+
'cancel-flow-execution': {
|
|
391
|
+
selected_reasons: [
|
|
392
|
+
{
|
|
393
|
+
id: '_6kITMwkv_0Uo4i7fO7Ja',
|
|
394
|
+
title: 'Process completed successfully'
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
extra_description: 'string'
|
|
398
|
+
},
|
|
399
|
+
'send-email': {
|
|
400
|
+
subject: 'string',
|
|
401
|
+
body: 'string',
|
|
402
|
+
attachment_entity_ids: ['string']
|
|
403
|
+
}
|
|
404
|
+
}
|
|
382
405
|
},
|
|
383
406
|
)
|
|
384
407
|
```
|
|
@@ -472,6 +495,17 @@ const { data } = await client.startExecution(
|
|
|
472
495
|
"iterations": []
|
|
473
496
|
}
|
|
474
497
|
],
|
|
498
|
+
"action_inputs": {
|
|
499
|
+
"cancel-flow-execution": {
|
|
500
|
+
"selected_reasons": [],
|
|
501
|
+
"extra_description": "string"
|
|
502
|
+
},
|
|
503
|
+
"send-email": {
|
|
504
|
+
"subject": "string",
|
|
505
|
+
"body": "string",
|
|
506
|
+
"attachment_entity_ids": ["string"]
|
|
507
|
+
}
|
|
508
|
+
},
|
|
475
509
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
476
510
|
"trigger_context": {
|
|
477
511
|
"entity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
|
|
@@ -566,6 +600,7 @@ const { data } = await client.searchExecutions(
|
|
|
566
600
|
"conditions": [],
|
|
567
601
|
"schedules": [],
|
|
568
602
|
"actions": [],
|
|
603
|
+
"action_inputs": {},
|
|
569
604
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
570
605
|
"trigger_context": {},
|
|
571
606
|
"version": 2,
|
|
@@ -846,6 +881,17 @@ const { data } = await client.getExecution({
|
|
|
846
881
|
"iterations": []
|
|
847
882
|
}
|
|
848
883
|
],
|
|
884
|
+
"action_inputs": {
|
|
885
|
+
"cancel-flow-execution": {
|
|
886
|
+
"selected_reasons": [],
|
|
887
|
+
"extra_description": "string"
|
|
888
|
+
},
|
|
889
|
+
"send-email": {
|
|
890
|
+
"subject": "string",
|
|
891
|
+
"body": "string",
|
|
892
|
+
"attachment_entity_ids": ["string"]
|
|
893
|
+
}
|
|
894
|
+
},
|
|
849
895
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
850
896
|
"trigger_context": {
|
|
851
897
|
"entity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
|
|
@@ -998,6 +1044,17 @@ const { data } = await client.cancelExecution({
|
|
|
998
1044
|
"iterations": []
|
|
999
1045
|
}
|
|
1000
1046
|
],
|
|
1047
|
+
"action_inputs": {
|
|
1048
|
+
"cancel-flow-execution": {
|
|
1049
|
+
"selected_reasons": [],
|
|
1050
|
+
"extra_description": "string"
|
|
1051
|
+
},
|
|
1052
|
+
"send-email": {
|
|
1053
|
+
"subject": "string",
|
|
1054
|
+
"body": "string",
|
|
1055
|
+
"attachment_entity_ids": ["string"]
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1001
1058
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
1002
1059
|
"trigger_context": {
|
|
1003
1060
|
"entity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
|
|
@@ -1120,6 +1177,10 @@ const { data } = await client.resumeExecutionWithToken(
|
|
|
1120
1177
|
{},
|
|
1121
1178
|
{}
|
|
1122
1179
|
],
|
|
1180
|
+
"action_inputs": {
|
|
1181
|
+
"cancel-flow-execution": {},
|
|
1182
|
+
"send-email": {}
|
|
1183
|
+
},
|
|
1123
1184
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
1124
1185
|
"trigger_context": {
|
|
1125
1186
|
"entity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
|
|
@@ -1472,6 +1533,72 @@ type SearchAutomationsResp = {
|
|
|
1472
1533
|
}
|
|
1473
1534
|
```
|
|
1474
1535
|
|
|
1536
|
+
### `JourneyContextUsagesReq`
|
|
1537
|
+
|
|
1538
|
+
```ts
|
|
1539
|
+
type JourneyContextUsagesReq = {
|
|
1540
|
+
journey_id: string // uuid
|
|
1541
|
+
param_keys: string[]
|
|
1542
|
+
param_ids?: string[]
|
|
1543
|
+
}
|
|
1544
|
+
```
|
|
1545
|
+
|
|
1546
|
+
### `JourneyContextUsage`
|
|
1547
|
+
|
|
1548
|
+
```ts
|
|
1549
|
+
type JourneyContextUsage = {
|
|
1550
|
+
kind: "automation"
|
|
1551
|
+
resource: {
|
|
1552
|
+
type: "automation_flow"
|
|
1553
|
+
id: string
|
|
1554
|
+
name?: string
|
|
1555
|
+
}
|
|
1556
|
+
location?: {
|
|
1557
|
+
action_id?: string
|
|
1558
|
+
action_type?: string
|
|
1559
|
+
}
|
|
1560
|
+
matched_as: {
|
|
1561
|
+
dialect: "name"
|
|
1562
|
+
token: string
|
|
1563
|
+
at: string
|
|
1564
|
+
}
|
|
1565
|
+
link_hint: {
|
|
1566
|
+
route: "automation-flow"
|
|
1567
|
+
params: Record<string, string>
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
```
|
|
1571
|
+
|
|
1572
|
+
### `JourneyContextUsagesResp`
|
|
1573
|
+
|
|
1574
|
+
```ts
|
|
1575
|
+
type JourneyContextUsagesResp = {
|
|
1576
|
+
usages: Array<{
|
|
1577
|
+
kind: "automation"
|
|
1578
|
+
resource: {
|
|
1579
|
+
type: { ... }
|
|
1580
|
+
id: { ... }
|
|
1581
|
+
name?: { ... }
|
|
1582
|
+
}
|
|
1583
|
+
location?: {
|
|
1584
|
+
action_id?: { ... }
|
|
1585
|
+
action_type?: { ... }
|
|
1586
|
+
}
|
|
1587
|
+
matched_as: {
|
|
1588
|
+
dialect: { ... }
|
|
1589
|
+
token: { ... }
|
|
1590
|
+
at: { ... }
|
|
1591
|
+
}
|
|
1592
|
+
link_hint: {
|
|
1593
|
+
route: { ... }
|
|
1594
|
+
params: { ... }
|
|
1595
|
+
}
|
|
1596
|
+
}>
|
|
1597
|
+
status: "ok" | "partial"
|
|
1598
|
+
scanned: number
|
|
1599
|
+
}
|
|
1600
|
+
```
|
|
1601
|
+
|
|
1475
1602
|
### `AnyTrigger`
|
|
1476
1603
|
|
|
1477
1604
|
```ts
|
|
@@ -2840,6 +2967,7 @@ type ForwardEmailActionConfig = {
|
|
|
2840
2967
|
}>
|
|
2841
2968
|
include_attachments?: boolean
|
|
2842
2969
|
subject_prefix?: string
|
|
2970
|
+
language_code?: "de" | "en"
|
|
2843
2971
|
mark_as_done?: boolean
|
|
2844
2972
|
mark_as_read?: boolean
|
|
2845
2973
|
}
|
|
@@ -2868,6 +2996,7 @@ type ForwardEmailAction = {
|
|
|
2868
2996
|
}>
|
|
2869
2997
|
include_attachments?: boolean
|
|
2870
2998
|
subject_prefix?: string
|
|
2999
|
+
language_code?: "de" | "en"
|
|
2871
3000
|
mark_as_done?: boolean
|
|
2872
3001
|
mark_as_read?: boolean
|
|
2873
3002
|
}
|
|
@@ -2884,6 +3013,7 @@ type ForwardEmailConfig = {
|
|
|
2884
3013
|
}>
|
|
2885
3014
|
include_attachments?: boolean
|
|
2886
3015
|
subject_prefix?: string
|
|
3016
|
+
language_code?: "de" | "en"
|
|
2887
3017
|
mark_as_done?: boolean
|
|
2888
3018
|
mark_as_read?: boolean
|
|
2889
3019
|
}
|
|
@@ -2963,6 +3093,8 @@ type SendEmailConfig = {
|
|
|
2963
3093
|
source_filter?: {
|
|
2964
3094
|
limit?: { ... }
|
|
2965
3095
|
filename_regex?: { ... }
|
|
3096
|
+
filename?: { ... }
|
|
3097
|
+
filename_pattern?: { ... }
|
|
2966
3098
|
attribute?: { ... }
|
|
2967
3099
|
relation_tag?: { ... }
|
|
2968
3100
|
tag?: { ... }
|
|
@@ -3391,7 +3523,7 @@ type FlowExecutionCancelAction = {
|
|
|
3391
3523
|
|
|
3392
3524
|
### `FlowExecutionCancelConfig`
|
|
3393
3525
|
|
|
3394
|
-
Configuration for cancelling a flow execution
|
|
3526
|
+
Configuration for cancelling a flow execution. The selected reasons are optional; a semi-automated step lets the person running it choose them when the execution starts.
|
|
3395
3527
|
|
|
3396
3528
|
```ts
|
|
3397
3529
|
type FlowExecutionCancelConfig = {
|
|
@@ -3647,7 +3779,7 @@ type WorkflowExecutionContext = {
|
|
|
3647
3779
|
|
|
3648
3780
|
### `WorkflowWaitContext`
|
|
3649
3781
|
|
|
3650
|
-
Correlation stamped when the triggering submission entity carried workflow wait claims from a journey link
|
|
3782
|
+
Correlation stamped when the triggering submission entity carried workflow wait claims from a journey link. Consumed by svc-workflows to resume a task waiting on this journey submission.
|
|
3651
3783
|
|
|
3652
3784
|
|
|
3653
3785
|
```ts
|
|
@@ -4055,6 +4187,71 @@ type StartExecutionRequest = {
|
|
|
4055
4187
|
}
|
|
4056
4188
|
flow_execution_id?: string
|
|
4057
4189
|
flow_automation_task_id?: string
|
|
4190
|
+
action_inputs?: {
|
|
4191
|
+
cancel-flow-execution?: {
|
|
4192
|
+
selected_reasons: { ... }
|
|
4193
|
+
extra_description?: { ... }
|
|
4194
|
+
}
|
|
4195
|
+
send-email?: {
|
|
4196
|
+
subject?: { ... }
|
|
4197
|
+
body?: { ... }
|
|
4198
|
+
attachment_entity_ids?: { ... }
|
|
4199
|
+
}
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
```
|
|
4203
|
+
|
|
4204
|
+
### `ActionInputs`
|
|
4205
|
+
|
|
4206
|
+
Internal. Run-time inputs for the actions of this execution, keyed by
|
|
4207
|
+
action type. An action reads the entry for its own type and treats it
|
|
4208
|
+
as replacing the matching configured values; an action whose type has
|
|
4209
|
+
no entry runs entirely from its configuration.
|
|
4210
|
+
|
|
4211
|
+
Only the workflows service may set this fi
|
|
4212
|
+
|
|
4213
|
+
```ts
|
|
4214
|
+
type ActionInputs = {
|
|
4215
|
+
cancel-flow-execution?: {
|
|
4216
|
+
selected_reasons: Array<{
|
|
4217
|
+
id: { ... }
|
|
4218
|
+
title: { ... }
|
|
4219
|
+
}>
|
|
4220
|
+
extra_description?: string
|
|
4221
|
+
}
|
|
4222
|
+
send-email?: {
|
|
4223
|
+
subject?: string
|
|
4224
|
+
body?: string
|
|
4225
|
+
attachment_entity_ids?: string[]
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4228
|
+
```
|
|
4229
|
+
|
|
4230
|
+
### `SendEmailInputs`
|
|
4231
|
+
|
|
4232
|
+
Adjustments a person made to an email before sending it, replacing the rendered values the template produced. The template itself is untouched.
|
|
4233
|
+
|
|
4234
|
+
`attachment_entity_ids` is a request, not an instruction: the worker keeps only the ids that are genuinely files of the entity this execution runs on, so a
|
|
4235
|
+
|
|
4236
|
+
```ts
|
|
4237
|
+
type SendEmailInputs = {
|
|
4238
|
+
subject?: string
|
|
4239
|
+
body?: string
|
|
4240
|
+
attachment_entity_ids?: string[]
|
|
4241
|
+
}
|
|
4242
|
+
```
|
|
4243
|
+
|
|
4244
|
+
### `FlowExecutionCancelInputs`
|
|
4245
|
+
|
|
4246
|
+
The cancellation reasons a person chose when running a semi-automated cancel step, replacing `selected_reasons` from the action's configuration.
|
|
4247
|
+
|
|
4248
|
+
```ts
|
|
4249
|
+
type FlowExecutionCancelInputs = {
|
|
4250
|
+
selected_reasons: Array<{
|
|
4251
|
+
id: string
|
|
4252
|
+
title: string
|
|
4253
|
+
}>
|
|
4254
|
+
extra_description?: string
|
|
4058
4255
|
}
|
|
4059
4256
|
```
|
|
4060
4257
|
|