@epilot/sdk 2.20.58 → 2.20.60
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/app.json +203 -5
- package/definitions/external-values.json +50 -6
- package/definitions/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +183 -1
- 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.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- 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 +6 -6
- package/dist/apis/external-values.d.cts +2 -2
- package/dist/apis/external-values.d.ts +2 -2
- package/dist/apis/external-values.js +1 -1
- 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 +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- 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/phone-integration.cjs +6 -6
- package/dist/apis/phone-integration.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/app-R2RDF74T.js +7 -0
- package/dist/app-YIP3MOGW.cjs +7 -0
- package/dist/{app.d-CqXqNLxq.d.cts → app.d-DbOr4uIC.d.cts} +34 -6
- package/dist/{app.d-CqXqNLxq.d.ts → app.d-DbOr4uIC.d.ts} +34 -6
- package/dist/{chunk-VAC7N66U.js → chunk-4MDOL6ZZ.js} +4 -4
- package/dist/{chunk-6JWMDS4Z.js → chunk-MBWCGRCK.js} +1 -1
- package/dist/{chunk-S5K3TLPQ.cjs → chunk-RBSTI4X4.cjs} +4 -4
- package/dist/{chunk-EPZ3JT2W.cjs → chunk-Y7KWK5H2.cjs} +1 -1
- package/dist/external-values-7BS76RVR.js +7 -0
- package/dist/external-values-R2XB2ALG.cjs +7 -0
- package/dist/{external-values.d-DjP9C_-r.d.cts → external-values.d-23q55J5P.d.cts} +74 -20
- package/dist/{external-values.d-DjP9C_-r.d.ts → external-values.d-23q55J5P.d.ts} +74 -20
- 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/integration-toolkit-AB3GZDWM.cjs +7 -0
- package/dist/integration-toolkit-L745CJ5G.js +7 -0
- package/dist/{integration-toolkit-runtime-FT2J5NFV.js → integration-toolkit-runtime-3LKW4ORQ.js} +1 -1
- package/dist/{integration-toolkit-runtime-GDJVWSKC.cjs → integration-toolkit-runtime-3PM3MBEF.cjs} +2 -2
- package/dist/{integration-toolkit.d-DWslwG3c.d.cts → integration-toolkit.d-oORkWs_H.d.cts} +150 -1
- package/dist/{integration-toolkit.d-DWslwG3c.d.ts → integration-toolkit.d-oORkWs_H.d.ts} +150 -1
- package/docs/app.md +35 -1
- package/docs/external-values.md +57 -10
- package/docs/integration-toolkit.md +138 -3
- package/package.json +1 -1
- package/dist/app-B3TAEVS4.js +0 -7
- package/dist/app-C5H6RLZ5.cjs +0 -7
- package/dist/external-values-DALDMPMB.js +0 -7
- package/dist/external-values-XG5LFKZQ.cjs +0 -7
- package/dist/integration-toolkit-3J7KVCK7.cjs +0 -7
- package/dist/integration-toolkit-CV2AU2R7.js +0 -7
package/dist/{integration-toolkit-runtime-GDJVWSKC.cjs → integration-toolkit-runtime-3PM3MBEF.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkY7KWK5H2cjs = require('./chunk-Y7KWK5H2.cjs');
|
|
4
4
|
require('./chunk-NJK5F5TF.cjs');
|
|
5
|
-
exports. default =
|
|
5
|
+
exports. default = _chunkY7KWK5H2cjs.require_integration_toolkit_runtime.call(void 0, );
|
|
@@ -3145,6 +3145,10 @@ declare namespace Components {
|
|
|
3145
3145
|
* Rows in the file. Known only once a phase has read to EOF; the execute phase has it from the start, because validate recorded it first.
|
|
3146
3146
|
*/
|
|
3147
3147
|
total_rows?: number;
|
|
3148
|
+
/**
|
|
3149
|
+
* Events handed to the platform so far — the denominator for "has everything this run dispatched finished processing?", answered per event by `getMonitoringRunCompletionV2` under the job's `correlation_id`. Equals `processed_rows` on the flat path; smaller on the grouped path, where rows sharing a variant-version collapse into one event. Execute phase only, and absent on jobs written before this field existed.
|
|
3150
|
+
*/
|
|
3151
|
+
events_published?: number;
|
|
3148
3152
|
}
|
|
3149
3153
|
export interface ErpImportUseCaseSuggestion {
|
|
3150
3154
|
integration_id: string;
|
|
@@ -4080,6 +4084,12 @@ declare namespace Components {
|
|
|
4080
4084
|
};
|
|
4081
4085
|
warnings?: string[];
|
|
4082
4086
|
}
|
|
4087
|
+
export interface GetMonitoringRunCompletionV2Request {
|
|
4088
|
+
/**
|
|
4089
|
+
* The runs to report on — an import's `import_id` is its `correlation_id`. At least one; a history page's worth (tens, not thousands) is the intended batch.
|
|
4090
|
+
*/
|
|
4091
|
+
correlation_ids: string[];
|
|
4092
|
+
}
|
|
4083
4093
|
export interface GetMonitoringStatsRequest {
|
|
4084
4094
|
/**
|
|
4085
4095
|
* Start date for statistics period (inclusive)
|
|
@@ -5899,6 +5909,61 @@ declare namespace Components {
|
|
|
5899
5909
|
*/
|
|
5900
5910
|
created_at: string; // date-time
|
|
5901
5911
|
}
|
|
5912
|
+
/**
|
|
5913
|
+
* Per-event completion of one run. Every count is in EVENTS (distinct `event_id`), never rows: `seen = in_flight + success + warning + error + info`.
|
|
5914
|
+
*/
|
|
5915
|
+
export interface MonitoringRunCompletionV2 {
|
|
5916
|
+
correlation_id: string;
|
|
5917
|
+
/**
|
|
5918
|
+
* Distinct events that have reported at least one row under this run.
|
|
5919
|
+
*/
|
|
5920
|
+
seen: number;
|
|
5921
|
+
/**
|
|
5922
|
+
* Events that have reported something but no final outcome yet: only mapping or relation caveats so far (the success row comes last, from the final stage), or a failed attempt the queue will retry. An event stuck here with an old `last_activity_at` was most likely lost on its final attempt (processor crash) — a stall, not a slow run.
|
|
5923
|
+
*/
|
|
5924
|
+
in_flight: number;
|
|
5925
|
+
/**
|
|
5926
|
+
* The subset of `in_flight` whose latest row is a retry marker — the queue will deliver them again after a temporary failure.
|
|
5927
|
+
*/
|
|
5928
|
+
retrying: number;
|
|
5929
|
+
/**
|
|
5930
|
+
* Settled events whose terminal rows were all successes.
|
|
5931
|
+
*/
|
|
5932
|
+
success: number;
|
|
5933
|
+
/**
|
|
5934
|
+
* Settled events processed with a caveat (unique-id matched several entities, attribute type mismatch, …) and no terminal error. Retry markers are not caveats and are never counted here.
|
|
5935
|
+
*/
|
|
5936
|
+
warning: number;
|
|
5937
|
+
/**
|
|
5938
|
+
* Settled events with at least one terminal error row (retries exhausted, or non-retryable).
|
|
5939
|
+
*/
|
|
5940
|
+
error: number;
|
|
5941
|
+
/**
|
|
5942
|
+
* Settled events whose rows were all informational — deduplicated or skipped, nothing to apply.
|
|
5943
|
+
*/
|
|
5944
|
+
info: number;
|
|
5945
|
+
entries: /* The run's monitoring rows counted by level, retry markers included — the same rows its trace lists. Unlike the event counts above, one event can contribute many rows (one per entity written, plus every caveat and retry). */ MonitoringRunEntriesV2;
|
|
5946
|
+
/**
|
|
5947
|
+
* Newest row of any level under this run; null when nothing has reported yet.
|
|
5948
|
+
*/
|
|
5949
|
+
last_activity_at: string | null; // date-time
|
|
5950
|
+
}
|
|
5951
|
+
export interface MonitoringRunCompletionV2Response {
|
|
5952
|
+
/**
|
|
5953
|
+
* One entry per requested `correlation_id`, in request order.
|
|
5954
|
+
*/
|
|
5955
|
+
runs: /* Per-event completion of one run. Every count is in EVENTS (distinct `event_id`), never rows: `seen = in_flight + success + warning + error + info`. */ MonitoringRunCompletionV2[];
|
|
5956
|
+
}
|
|
5957
|
+
/**
|
|
5958
|
+
* The run's monitoring rows counted by level, retry markers included — the same rows its trace lists. Unlike the event counts above, one event can contribute many rows (one per entity written, plus every caveat and retry).
|
|
5959
|
+
*/
|
|
5960
|
+
export interface MonitoringRunEntriesV2 {
|
|
5961
|
+
total: number;
|
|
5962
|
+
error: number;
|
|
5963
|
+
warning: number;
|
|
5964
|
+
success: number;
|
|
5965
|
+
info: number;
|
|
5966
|
+
}
|
|
5902
5967
|
export interface MonitoringStats {
|
|
5903
5968
|
/**
|
|
5904
5969
|
* Statistics for inbound (ERP sync) events
|
|
@@ -9087,6 +9152,22 @@ declare namespace Paths {
|
|
|
9087
9152
|
export type $500 = Components.Responses.InternalServerError;
|
|
9088
9153
|
}
|
|
9089
9154
|
}
|
|
9155
|
+
namespace GetMonitoringRunCompletionV2 {
|
|
9156
|
+
namespace Parameters {
|
|
9157
|
+
export type IntegrationId = string; // uuid
|
|
9158
|
+
}
|
|
9159
|
+
export interface PathParameters {
|
|
9160
|
+
integrationId: Parameters.IntegrationId /* uuid */;
|
|
9161
|
+
}
|
|
9162
|
+
export type RequestBody = Components.Schemas.GetMonitoringRunCompletionV2Request;
|
|
9163
|
+
namespace Responses {
|
|
9164
|
+
export type $200 = Components.Schemas.MonitoringRunCompletionV2Response;
|
|
9165
|
+
export type $400 = Components.Responses.BadRequest;
|
|
9166
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
9167
|
+
export type $403 = Components.Responses.Forbidden;
|
|
9168
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
9169
|
+
}
|
|
9170
|
+
}
|
|
9090
9171
|
namespace GetMonitoringStats {
|
|
9091
9172
|
namespace Parameters {
|
|
9092
9173
|
export type IntegrationId = string; // uuid
|
|
@@ -10751,6 +10832,37 @@ interface OperationMethods {
|
|
|
10751
10832
|
data?: any,
|
|
10752
10833
|
config?: AxiosRequestConfig
|
|
10753
10834
|
): OperationResponse<Paths.GetMonitoringTraceByCorrelation.Responses.$200>
|
|
10835
|
+
/**
|
|
10836
|
+
* getMonitoringRunCompletionV2 - getMonitoringRunCompletionV2
|
|
10837
|
+
*
|
|
10838
|
+
* Per-event completion of one or more runs (every monitoring event sharing a
|
|
10839
|
+
* `correlation_id`), each reduced to "how many events have reached a final
|
|
10840
|
+
* outcome, and how many are still going". Unlike `getMonitoringStatsV2`, which
|
|
10841
|
+
* counts rows, this groups `erp_monitoring_v2` by `event_id` first: an event
|
|
10842
|
+
* retried twice and then processed counts once, as a success.
|
|
10843
|
+
*
|
|
10844
|
+
* Per event: it is **settled** once it has a `success` row, a terminal `error`
|
|
10845
|
+
* row (a non-retryable failure, retries exhausted, or the dead-letter closure),
|
|
10846
|
+
* or nothing but informational rows (deduplicated, skipped). A `warning` never
|
|
10847
|
+
* settles an event on its own: mapping and relation caveats are written BEFORE
|
|
10848
|
+
* the final stage's success row, and a retry marker (`warning` with
|
|
10849
|
+
* `will_retry: true`) means the queue will deliver it again. Everything else is
|
|
10850
|
+
* **in flight**. A settled event's outcome is its worst terminal row — `error`
|
|
10851
|
+
* beats `warning` beats `success`.
|
|
10852
|
+
*
|
|
10853
|
+
* Batched so a history page costs one request: pass every run on the page. A run
|
|
10854
|
+
* that has reported nothing yet comes back with `seen: 0`, never omitted.
|
|
10855
|
+
*
|
|
10856
|
+
* The denominator is NOT here: the producer owns it. For an ERP file import it is
|
|
10857
|
+
* `ErpImportProgress.events_published`; `seen` is how many of those have reported
|
|
10858
|
+
* anything yet. Freshness is near-real-time (ClickHouse ingestion lag).
|
|
10859
|
+
*
|
|
10860
|
+
*/
|
|
10861
|
+
'getMonitoringRunCompletionV2'(
|
|
10862
|
+
parameters?: Parameters<Paths.GetMonitoringRunCompletionV2.PathParameters> | null,
|
|
10863
|
+
data?: Paths.GetMonitoringRunCompletionV2.RequestBody,
|
|
10864
|
+
config?: AxiosRequestConfig
|
|
10865
|
+
): OperationResponse<Paths.GetMonitoringRunCompletionV2.Responses.$200>
|
|
10754
10866
|
/**
|
|
10755
10867
|
* listSecureProxies - listSecureProxies
|
|
10756
10868
|
*
|
|
@@ -11821,6 +11933,39 @@ interface PathsDictionary {
|
|
|
11821
11933
|
config?: AxiosRequestConfig
|
|
11822
11934
|
): OperationResponse<Paths.GetMonitoringTraceByCorrelation.Responses.$200>
|
|
11823
11935
|
}
|
|
11936
|
+
['/v2/integrations/{integrationId}/monitoring/runs/completion']: {
|
|
11937
|
+
/**
|
|
11938
|
+
* getMonitoringRunCompletionV2 - getMonitoringRunCompletionV2
|
|
11939
|
+
*
|
|
11940
|
+
* Per-event completion of one or more runs (every monitoring event sharing a
|
|
11941
|
+
* `correlation_id`), each reduced to "how many events have reached a final
|
|
11942
|
+
* outcome, and how many are still going". Unlike `getMonitoringStatsV2`, which
|
|
11943
|
+
* counts rows, this groups `erp_monitoring_v2` by `event_id` first: an event
|
|
11944
|
+
* retried twice and then processed counts once, as a success.
|
|
11945
|
+
*
|
|
11946
|
+
* Per event: it is **settled** once it has a `success` row, a terminal `error`
|
|
11947
|
+
* row (a non-retryable failure, retries exhausted, or the dead-letter closure),
|
|
11948
|
+
* or nothing but informational rows (deduplicated, skipped). A `warning` never
|
|
11949
|
+
* settles an event on its own: mapping and relation caveats are written BEFORE
|
|
11950
|
+
* the final stage's success row, and a retry marker (`warning` with
|
|
11951
|
+
* `will_retry: true`) means the queue will deliver it again. Everything else is
|
|
11952
|
+
* **in flight**. A settled event's outcome is its worst terminal row — `error`
|
|
11953
|
+
* beats `warning` beats `success`.
|
|
11954
|
+
*
|
|
11955
|
+
* Batched so a history page costs one request: pass every run on the page. A run
|
|
11956
|
+
* that has reported nothing yet comes back with `seen: 0`, never omitted.
|
|
11957
|
+
*
|
|
11958
|
+
* The denominator is NOT here: the producer owns it. For an ERP file import it is
|
|
11959
|
+
* `ErpImportProgress.events_published`; `seen` is how many of those have reported
|
|
11960
|
+
* anything yet. Freshness is near-real-time (ClickHouse ingestion lag).
|
|
11961
|
+
*
|
|
11962
|
+
*/
|
|
11963
|
+
'post'(
|
|
11964
|
+
parameters?: Parameters<Paths.GetMonitoringRunCompletionV2.PathParameters> | null,
|
|
11965
|
+
data?: Paths.GetMonitoringRunCompletionV2.RequestBody,
|
|
11966
|
+
config?: AxiosRequestConfig
|
|
11967
|
+
): OperationResponse<Paths.GetMonitoringRunCompletionV2.Responses.$200>
|
|
11968
|
+
}
|
|
11824
11969
|
['/v1/integrations/secure-proxies']: {
|
|
11825
11970
|
/**
|
|
11826
11971
|
* listSecureProxies - listSecureProxies
|
|
@@ -12116,6 +12261,7 @@ type FileProxyUseCaseHistoryEntry = Components.Schemas.FileProxyUseCaseHistoryEn
|
|
|
12116
12261
|
type GenerateTypesPreviewResponse = Components.Schemas.GenerateTypesPreviewResponse;
|
|
12117
12262
|
type GenerateTypesRequest = Components.Schemas.GenerateTypesRequest;
|
|
12118
12263
|
type GenerateTypesResponse = Components.Schemas.GenerateTypesResponse;
|
|
12264
|
+
type GetMonitoringRunCompletionV2Request = Components.Schemas.GetMonitoringRunCompletionV2Request;
|
|
12119
12265
|
type GetMonitoringStatsRequest = Components.Schemas.GetMonitoringStatsRequest;
|
|
12120
12266
|
type GetMonitoringStatsV2Request = Components.Schemas.GetMonitoringStatsV2Request;
|
|
12121
12267
|
type GetMonitoringTimeSeriesRequest = Components.Schemas.GetMonitoringTimeSeriesRequest;
|
|
@@ -12161,6 +12307,9 @@ type MeterReadingUpdate = Components.Schemas.MeterReadingUpdate;
|
|
|
12161
12307
|
type MeterUniqueIdsConfig = Components.Schemas.MeterUniqueIdsConfig;
|
|
12162
12308
|
type MonitoringCode = Components.Schemas.MonitoringCode;
|
|
12163
12309
|
type MonitoringEventV2 = Components.Schemas.MonitoringEventV2;
|
|
12310
|
+
type MonitoringRunCompletionV2 = Components.Schemas.MonitoringRunCompletionV2;
|
|
12311
|
+
type MonitoringRunCompletionV2Response = Components.Schemas.MonitoringRunCompletionV2Response;
|
|
12312
|
+
type MonitoringRunEntriesV2 = Components.Schemas.MonitoringRunEntriesV2;
|
|
12164
12313
|
type MonitoringStats = Components.Schemas.MonitoringStats;
|
|
12165
12314
|
type MonitoringStatsV2 = Components.Schemas.MonitoringStatsV2;
|
|
12166
12315
|
type MonitoringTraceResponse = Components.Schemas.MonitoringTraceResponse;
|
|
@@ -12255,4 +12404,4 @@ type ValidateErpImportRequest = Components.Schemas.ValidateErpImportRequest;
|
|
|
12255
12404
|
type WebhookDeliveryConfig = Components.Schemas.WebhookDeliveryConfig;
|
|
12256
12405
|
type WebhookStatus = Components.Schemas.WebhookStatus;
|
|
12257
12406
|
|
|
12258
|
-
export { type ErpImportEntityDetail as $, type AccessLogEntry as A, type DirectRelationValue as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type DirectSimulationError as E, type DirectSimulationRequest as F, type DirectSimulationResponse as G, type DocumentationPage as H, type DocumentationPageSummary as I, type EmbeddedFileProxyUseCaseRequest as J, type EmbeddedInboundUseCaseRequest as K, type EmbeddedManagedCallUseCaseRequest as L, type EmbeddedOutboundUseCaseRequest as M, type EmbeddedSecureProxyUseCaseRequest as N, type OperationMethods as O, Paths as P, type EmbeddedUseCaseRequest as Q, type EmbeddedUseCaseRequestBase as R, type EntityPruneScopeUpdate as S, type EntitySyncState as T, type EntitySyncStatusResponse as U, type EntityUpdate as V, type EnvVarRefConfig as W, type EnvironmentFieldConfig as X, type ErpEvent as Y, type ErpEventV3 as Z, type ErpImportDownload as _, Components as a, type
|
|
12407
|
+
export { type ErpImportEntityDetail as $, type AccessLogEntry as A, type DirectRelationValue as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type DirectSimulationError as E, type DirectSimulationRequest as F, type DirectSimulationResponse as G, type DocumentationPage as H, type DocumentationPageSummary as I, type EmbeddedFileProxyUseCaseRequest as J, type EmbeddedInboundUseCaseRequest as K, type EmbeddedManagedCallUseCaseRequest as L, type EmbeddedOutboundUseCaseRequest as M, type EmbeddedSecureProxyUseCaseRequest as N, type OperationMethods as O, Paths as P, type EmbeddedUseCaseRequest as Q, type EmbeddedUseCaseRequestBase as R, type EntityPruneScopeUpdate as S, type EntitySyncState as T, type EntitySyncStatusResponse as U, type EntityUpdate as V, type EnvVarRefConfig as W, type EnvironmentFieldConfig as X, type ErpEvent as Y, type ErpEventV3 as Z, type ErpImportDownload as _, Components as a, type ManagedCallUseCase as a$, type ErpImportError as a0, type ErpImportFilePreview as a1, type ErpImportIssue as a2, type ErpImportJob as a3, type ErpImportList as a4, type ErpImportProgress as a5, type ErpImportUseCaseSuggestion as a6, type ErpImportValidation as a7, type ErpUpdatesEventsV2Request as a8, type ErpUpdatesEventsV3Request as a9, type InboundMonitoringEvent as aA, type InboundUseCase as aB, type InboundUseCaseHistoryEntry as aC, type IngestExternalMonitoringEventsRequest as aD, type IngestExternalMonitoringEventsResponse as aE, type Integration as aF, type IntegrationAppMapping as aG, type IntegrationConfigurationV1 as aH, type IntegrationConfigurationV2 as aI, type IntegrationEditableFields as aJ, type IntegrationEntity as aK, type IntegrationEntityConditional as aL, type IntegrationEntityField as aM, type IntegrationEntityFromRows as aN, type IntegrationFieldV1 as aO, type IntegrationMap as aP, type IntegrationMeterReading as aQ, type IntegrationNotificationConfig as aR, type IntegrationObjectV1 as aS, type IntegrationSettings as aT, type IntegrationWithUseCases as aU, type ManagedCallAuth as aV, type ManagedCallErrorResponse as aW, type ManagedCallExecuteRequest as aX, type ManagedCallExecuteResponse as aY, type ManagedCallOperation as aZ, type ManagedCallOperationConfig as a_, type ErrorResponseBase as aa, type ExecuteErpImportRequest as ab, type ExternalMonitoringSpan as ac, type FileProxyAuth as ad, type FileProxyDeliveryConfig as ae, type FileProxyFanOutConfig as af, type FileProxyParam as ag, type FileProxyResponseConfig as ah, type FileProxySecureProxyAttachment as ai, type FileProxyStep as aj, type FileProxyUploadConfig as ak, type FileProxyUrlConfig as al, type FileProxyUrlParam as am, type FileProxyUrlParams as an, type FileProxyUseCase as ao, type FileProxyUseCaseConfiguration as ap, type FileProxyUseCaseHistoryEntry as aq, type GenerateTypesPreviewResponse as ar, type GenerateTypesRequest as as, type GenerateTypesResponse as at, type GetMonitoringRunCompletionV2Request as au, type GetMonitoringStatsRequest as av, type GetMonitoringStatsV2Request as aw, type GetMonitoringTimeSeriesRequest as ax, type GetMonitoringTimeSeriesV2Request as ay, type InboundIntegrationEventConfiguration as az, type PathsDictionary as b, type RuleBaselineBucket as b$, type ManagedCallUseCaseHistoryEntry as b0, type MappedFieldValue as b1, type MappingSimulationRequest as b2, type MappingSimulationResponse as b3, type MappingSimulationV2Request as b4, type MappingSimulationWarning as b5, type MeterReadingPruneScopeConfig as b6, type MeterReadingPruneScopeUpdate as b7, type MeterReadingUpdate as b8, type MeterUniqueIdsConfig as b9, type OutboundStatusResponse as bA, type OutboundUseCase as bB, type OutboundUseCaseHistoryEntry as bC, type OutboundUseCaseStatus as bD, type PollDeliveryConfig as bE, type PollOutboundMessagesRequest as bF, type PollOutboundMessagesResponse as bG, type PortalOrigin as bH, type PortalRefConfig as bI, type PortalRefFilter as bJ, type PruneScopeConfig as bK, type QueryAccessLogsRequest as bL, type QueryEventsRequest as bM, type QueryInboundMonitoringEventsRequest as bN, type QueryMonitoringEventsV2Request as bO, type QueryOutboundMonitoringEventsRequest as bP, type RedriveOutboundDlqRequest as bQ, type RedriveOutboundDlqResponse as bR, type RedriveOutboundDlqResult as bS, type RelationConfig as bT, type RelationItemConfig as bU, type RelationRefItemConfig as bV, type RelationRefValueConfig as bW, type RelationRefsConfig as bX, type RelationUniqueIdField as bY, type RepeatableFieldType as bZ, type ReplayEventsRequest as b_, type MonitoringCode as ba, type MonitoringEventV2 as bb, type MonitoringRunCompletionV2 as bc, type MonitoringRunCompletionV2Response as bd, type MonitoringRunEntriesV2 as be, type MonitoringStats as bf, type MonitoringStatsV2 as bg, type MonitoringTraceResponse as bh, type NotificationChannelSet as bi, type NotificationDigestConfig as bj, type NotificationHistoryItem as bk, type NotificationHistoryResponse as bl, type NotificationRecipient as bm, type NotificationRule as bn, type NotificationRuleStatus as bo, type NotificationStatusResponse as bp, type OutboundConflict as bq, type OutboundDlqListResponse as br, type OutboundDlqMessage as bs, type OutboundFileProxyTargetStatus as bt, type OutboundIntegrationEventConfiguration as bu, type OutboundMapping as bv, type OutboundMappingSimulationError as bw, type OutboundMessage as bx, type OutboundMonitoringEvent as by, type OutboundPollStatus as bz, type AckOutboundMessagesRequest as c, type RuleBaselineStatus as c0, type S3Reference as c1, type SecureProxyRequest as c2, type SecureProxyResponse as c3, type SecureProxySummary as c4, type SecureProxyUpstreamError as c5, type SecureProxyUseCase as c6, type SecureProxyUseCaseConfiguration as c7, type SecureProxyUseCaseHistoryEntry as c8, type SecureProxyWhitelist as c9, type UseCase as cA, type UseCaseBase as cB, type UseCaseHistoryEntry as cC, type UseCaseHistoryEntryBase as cD, type UseCaseTypePreview as cE, type ValidateErpImportRequest as cF, type WebhookDeliveryConfig as cG, type WebhookStatus as cH, type SecureProxyWhitelistUpdate as ca, type SetIntegrationAppMappingRequest as cb, type SimulateOutboundMappingRequest as cc, type SimulateOutboundMappingResponse as cd, type SuggestErpImportUseCasesResponse as ce, type TestNotificationRequest as cf, type TestNotificationResponse as cg, type TimeSeriesBreakdownItemV2 as ch, type TimeSeriesBucket as ci, type TimeSeriesBucketV2 as cj, type TriggerErpActionRequest as ck, type TriggerWebhookResp as cl, type TypeAnnotations as cm, type TypeDescriptor as cn, type UnblockOutboundStreamRequest as co, type UnblockOutboundStreamResponse as cp, type UpdateFileProxyUseCaseRequest as cq, type UpdateInboundUseCaseRequest as cr, type UpdateIntegrationRequest as cs, type UpdateManagedCallUseCaseRequest as ct, type UpdateOutboundUseCaseRequest as cu, type UpdateSecureProxyUseCaseRequest as cv, type UpdateUseCaseRequest as cw, type UpdateUseCaseRequestBase as cx, type UpsertDocumentationPageRequest as cy, type UpsertIntegrationWithUseCasesRequest as cz, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateErpImportRequest as j, type CreateErpImportResponse as k, type CreateFileProxyUseCaseRequest as l, type CreateInboundUseCaseRequest as m, type CreateIntegrationRequest as n, type CreateManagedCallUseCaseRequest as o, type CreateOutboundUseCaseRequest as p, type CreateSecureProxyUseCaseRequest as q, type CreateUseCaseRequest as r, type CreateUseCaseRequestBase as s, type DeliveryConfig as t, type DirectEntityOperation as u, type DirectMeterReadingOperation as v, type DirectPayload as w, type DirectRelationItem as x, type DirectRelationRefItem as y, type DirectRelationRefValue as z };
|
|
@@ -3145,6 +3145,10 @@ declare namespace Components {
|
|
|
3145
3145
|
* Rows in the file. Known only once a phase has read to EOF; the execute phase has it from the start, because validate recorded it first.
|
|
3146
3146
|
*/
|
|
3147
3147
|
total_rows?: number;
|
|
3148
|
+
/**
|
|
3149
|
+
* Events handed to the platform so far — the denominator for "has everything this run dispatched finished processing?", answered per event by `getMonitoringRunCompletionV2` under the job's `correlation_id`. Equals `processed_rows` on the flat path; smaller on the grouped path, where rows sharing a variant-version collapse into one event. Execute phase only, and absent on jobs written before this field existed.
|
|
3150
|
+
*/
|
|
3151
|
+
events_published?: number;
|
|
3148
3152
|
}
|
|
3149
3153
|
export interface ErpImportUseCaseSuggestion {
|
|
3150
3154
|
integration_id: string;
|
|
@@ -4080,6 +4084,12 @@ declare namespace Components {
|
|
|
4080
4084
|
};
|
|
4081
4085
|
warnings?: string[];
|
|
4082
4086
|
}
|
|
4087
|
+
export interface GetMonitoringRunCompletionV2Request {
|
|
4088
|
+
/**
|
|
4089
|
+
* The runs to report on — an import's `import_id` is its `correlation_id`. At least one; a history page's worth (tens, not thousands) is the intended batch.
|
|
4090
|
+
*/
|
|
4091
|
+
correlation_ids: string[];
|
|
4092
|
+
}
|
|
4083
4093
|
export interface GetMonitoringStatsRequest {
|
|
4084
4094
|
/**
|
|
4085
4095
|
* Start date for statistics period (inclusive)
|
|
@@ -5899,6 +5909,61 @@ declare namespace Components {
|
|
|
5899
5909
|
*/
|
|
5900
5910
|
created_at: string; // date-time
|
|
5901
5911
|
}
|
|
5912
|
+
/**
|
|
5913
|
+
* Per-event completion of one run. Every count is in EVENTS (distinct `event_id`), never rows: `seen = in_flight + success + warning + error + info`.
|
|
5914
|
+
*/
|
|
5915
|
+
export interface MonitoringRunCompletionV2 {
|
|
5916
|
+
correlation_id: string;
|
|
5917
|
+
/**
|
|
5918
|
+
* Distinct events that have reported at least one row under this run.
|
|
5919
|
+
*/
|
|
5920
|
+
seen: number;
|
|
5921
|
+
/**
|
|
5922
|
+
* Events that have reported something but no final outcome yet: only mapping or relation caveats so far (the success row comes last, from the final stage), or a failed attempt the queue will retry. An event stuck here with an old `last_activity_at` was most likely lost on its final attempt (processor crash) — a stall, not a slow run.
|
|
5923
|
+
*/
|
|
5924
|
+
in_flight: number;
|
|
5925
|
+
/**
|
|
5926
|
+
* The subset of `in_flight` whose latest row is a retry marker — the queue will deliver them again after a temporary failure.
|
|
5927
|
+
*/
|
|
5928
|
+
retrying: number;
|
|
5929
|
+
/**
|
|
5930
|
+
* Settled events whose terminal rows were all successes.
|
|
5931
|
+
*/
|
|
5932
|
+
success: number;
|
|
5933
|
+
/**
|
|
5934
|
+
* Settled events processed with a caveat (unique-id matched several entities, attribute type mismatch, …) and no terminal error. Retry markers are not caveats and are never counted here.
|
|
5935
|
+
*/
|
|
5936
|
+
warning: number;
|
|
5937
|
+
/**
|
|
5938
|
+
* Settled events with at least one terminal error row (retries exhausted, or non-retryable).
|
|
5939
|
+
*/
|
|
5940
|
+
error: number;
|
|
5941
|
+
/**
|
|
5942
|
+
* Settled events whose rows were all informational — deduplicated or skipped, nothing to apply.
|
|
5943
|
+
*/
|
|
5944
|
+
info: number;
|
|
5945
|
+
entries: /* The run's monitoring rows counted by level, retry markers included — the same rows its trace lists. Unlike the event counts above, one event can contribute many rows (one per entity written, plus every caveat and retry). */ MonitoringRunEntriesV2;
|
|
5946
|
+
/**
|
|
5947
|
+
* Newest row of any level under this run; null when nothing has reported yet.
|
|
5948
|
+
*/
|
|
5949
|
+
last_activity_at: string | null; // date-time
|
|
5950
|
+
}
|
|
5951
|
+
export interface MonitoringRunCompletionV2Response {
|
|
5952
|
+
/**
|
|
5953
|
+
* One entry per requested `correlation_id`, in request order.
|
|
5954
|
+
*/
|
|
5955
|
+
runs: /* Per-event completion of one run. Every count is in EVENTS (distinct `event_id`), never rows: `seen = in_flight + success + warning + error + info`. */ MonitoringRunCompletionV2[];
|
|
5956
|
+
}
|
|
5957
|
+
/**
|
|
5958
|
+
* The run's monitoring rows counted by level, retry markers included — the same rows its trace lists. Unlike the event counts above, one event can contribute many rows (one per entity written, plus every caveat and retry).
|
|
5959
|
+
*/
|
|
5960
|
+
export interface MonitoringRunEntriesV2 {
|
|
5961
|
+
total: number;
|
|
5962
|
+
error: number;
|
|
5963
|
+
warning: number;
|
|
5964
|
+
success: number;
|
|
5965
|
+
info: number;
|
|
5966
|
+
}
|
|
5902
5967
|
export interface MonitoringStats {
|
|
5903
5968
|
/**
|
|
5904
5969
|
* Statistics for inbound (ERP sync) events
|
|
@@ -9087,6 +9152,22 @@ declare namespace Paths {
|
|
|
9087
9152
|
export type $500 = Components.Responses.InternalServerError;
|
|
9088
9153
|
}
|
|
9089
9154
|
}
|
|
9155
|
+
namespace GetMonitoringRunCompletionV2 {
|
|
9156
|
+
namespace Parameters {
|
|
9157
|
+
export type IntegrationId = string; // uuid
|
|
9158
|
+
}
|
|
9159
|
+
export interface PathParameters {
|
|
9160
|
+
integrationId: Parameters.IntegrationId /* uuid */;
|
|
9161
|
+
}
|
|
9162
|
+
export type RequestBody = Components.Schemas.GetMonitoringRunCompletionV2Request;
|
|
9163
|
+
namespace Responses {
|
|
9164
|
+
export type $200 = Components.Schemas.MonitoringRunCompletionV2Response;
|
|
9165
|
+
export type $400 = Components.Responses.BadRequest;
|
|
9166
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
9167
|
+
export type $403 = Components.Responses.Forbidden;
|
|
9168
|
+
export type $500 = Components.Responses.InternalServerError;
|
|
9169
|
+
}
|
|
9170
|
+
}
|
|
9090
9171
|
namespace GetMonitoringStats {
|
|
9091
9172
|
namespace Parameters {
|
|
9092
9173
|
export type IntegrationId = string; // uuid
|
|
@@ -10751,6 +10832,37 @@ interface OperationMethods {
|
|
|
10751
10832
|
data?: any,
|
|
10752
10833
|
config?: AxiosRequestConfig
|
|
10753
10834
|
): OperationResponse<Paths.GetMonitoringTraceByCorrelation.Responses.$200>
|
|
10835
|
+
/**
|
|
10836
|
+
* getMonitoringRunCompletionV2 - getMonitoringRunCompletionV2
|
|
10837
|
+
*
|
|
10838
|
+
* Per-event completion of one or more runs (every monitoring event sharing a
|
|
10839
|
+
* `correlation_id`), each reduced to "how many events have reached a final
|
|
10840
|
+
* outcome, and how many are still going". Unlike `getMonitoringStatsV2`, which
|
|
10841
|
+
* counts rows, this groups `erp_monitoring_v2` by `event_id` first: an event
|
|
10842
|
+
* retried twice and then processed counts once, as a success.
|
|
10843
|
+
*
|
|
10844
|
+
* Per event: it is **settled** once it has a `success` row, a terminal `error`
|
|
10845
|
+
* row (a non-retryable failure, retries exhausted, or the dead-letter closure),
|
|
10846
|
+
* or nothing but informational rows (deduplicated, skipped). A `warning` never
|
|
10847
|
+
* settles an event on its own: mapping and relation caveats are written BEFORE
|
|
10848
|
+
* the final stage's success row, and a retry marker (`warning` with
|
|
10849
|
+
* `will_retry: true`) means the queue will deliver it again. Everything else is
|
|
10850
|
+
* **in flight**. A settled event's outcome is its worst terminal row — `error`
|
|
10851
|
+
* beats `warning` beats `success`.
|
|
10852
|
+
*
|
|
10853
|
+
* Batched so a history page costs one request: pass every run on the page. A run
|
|
10854
|
+
* that has reported nothing yet comes back with `seen: 0`, never omitted.
|
|
10855
|
+
*
|
|
10856
|
+
* The denominator is NOT here: the producer owns it. For an ERP file import it is
|
|
10857
|
+
* `ErpImportProgress.events_published`; `seen` is how many of those have reported
|
|
10858
|
+
* anything yet. Freshness is near-real-time (ClickHouse ingestion lag).
|
|
10859
|
+
*
|
|
10860
|
+
*/
|
|
10861
|
+
'getMonitoringRunCompletionV2'(
|
|
10862
|
+
parameters?: Parameters<Paths.GetMonitoringRunCompletionV2.PathParameters> | null,
|
|
10863
|
+
data?: Paths.GetMonitoringRunCompletionV2.RequestBody,
|
|
10864
|
+
config?: AxiosRequestConfig
|
|
10865
|
+
): OperationResponse<Paths.GetMonitoringRunCompletionV2.Responses.$200>
|
|
10754
10866
|
/**
|
|
10755
10867
|
* listSecureProxies - listSecureProxies
|
|
10756
10868
|
*
|
|
@@ -11821,6 +11933,39 @@ interface PathsDictionary {
|
|
|
11821
11933
|
config?: AxiosRequestConfig
|
|
11822
11934
|
): OperationResponse<Paths.GetMonitoringTraceByCorrelation.Responses.$200>
|
|
11823
11935
|
}
|
|
11936
|
+
['/v2/integrations/{integrationId}/monitoring/runs/completion']: {
|
|
11937
|
+
/**
|
|
11938
|
+
* getMonitoringRunCompletionV2 - getMonitoringRunCompletionV2
|
|
11939
|
+
*
|
|
11940
|
+
* Per-event completion of one or more runs (every monitoring event sharing a
|
|
11941
|
+
* `correlation_id`), each reduced to "how many events have reached a final
|
|
11942
|
+
* outcome, and how many are still going". Unlike `getMonitoringStatsV2`, which
|
|
11943
|
+
* counts rows, this groups `erp_monitoring_v2` by `event_id` first: an event
|
|
11944
|
+
* retried twice and then processed counts once, as a success.
|
|
11945
|
+
*
|
|
11946
|
+
* Per event: it is **settled** once it has a `success` row, a terminal `error`
|
|
11947
|
+
* row (a non-retryable failure, retries exhausted, or the dead-letter closure),
|
|
11948
|
+
* or nothing but informational rows (deduplicated, skipped). A `warning` never
|
|
11949
|
+
* settles an event on its own: mapping and relation caveats are written BEFORE
|
|
11950
|
+
* the final stage's success row, and a retry marker (`warning` with
|
|
11951
|
+
* `will_retry: true`) means the queue will deliver it again. Everything else is
|
|
11952
|
+
* **in flight**. A settled event's outcome is its worst terminal row — `error`
|
|
11953
|
+
* beats `warning` beats `success`.
|
|
11954
|
+
*
|
|
11955
|
+
* Batched so a history page costs one request: pass every run on the page. A run
|
|
11956
|
+
* that has reported nothing yet comes back with `seen: 0`, never omitted.
|
|
11957
|
+
*
|
|
11958
|
+
* The denominator is NOT here: the producer owns it. For an ERP file import it is
|
|
11959
|
+
* `ErpImportProgress.events_published`; `seen` is how many of those have reported
|
|
11960
|
+
* anything yet. Freshness is near-real-time (ClickHouse ingestion lag).
|
|
11961
|
+
*
|
|
11962
|
+
*/
|
|
11963
|
+
'post'(
|
|
11964
|
+
parameters?: Parameters<Paths.GetMonitoringRunCompletionV2.PathParameters> | null,
|
|
11965
|
+
data?: Paths.GetMonitoringRunCompletionV2.RequestBody,
|
|
11966
|
+
config?: AxiosRequestConfig
|
|
11967
|
+
): OperationResponse<Paths.GetMonitoringRunCompletionV2.Responses.$200>
|
|
11968
|
+
}
|
|
11824
11969
|
['/v1/integrations/secure-proxies']: {
|
|
11825
11970
|
/**
|
|
11826
11971
|
* listSecureProxies - listSecureProxies
|
|
@@ -12116,6 +12261,7 @@ type FileProxyUseCaseHistoryEntry = Components.Schemas.FileProxyUseCaseHistoryEn
|
|
|
12116
12261
|
type GenerateTypesPreviewResponse = Components.Schemas.GenerateTypesPreviewResponse;
|
|
12117
12262
|
type GenerateTypesRequest = Components.Schemas.GenerateTypesRequest;
|
|
12118
12263
|
type GenerateTypesResponse = Components.Schemas.GenerateTypesResponse;
|
|
12264
|
+
type GetMonitoringRunCompletionV2Request = Components.Schemas.GetMonitoringRunCompletionV2Request;
|
|
12119
12265
|
type GetMonitoringStatsRequest = Components.Schemas.GetMonitoringStatsRequest;
|
|
12120
12266
|
type GetMonitoringStatsV2Request = Components.Schemas.GetMonitoringStatsV2Request;
|
|
12121
12267
|
type GetMonitoringTimeSeriesRequest = Components.Schemas.GetMonitoringTimeSeriesRequest;
|
|
@@ -12161,6 +12307,9 @@ type MeterReadingUpdate = Components.Schemas.MeterReadingUpdate;
|
|
|
12161
12307
|
type MeterUniqueIdsConfig = Components.Schemas.MeterUniqueIdsConfig;
|
|
12162
12308
|
type MonitoringCode = Components.Schemas.MonitoringCode;
|
|
12163
12309
|
type MonitoringEventV2 = Components.Schemas.MonitoringEventV2;
|
|
12310
|
+
type MonitoringRunCompletionV2 = Components.Schemas.MonitoringRunCompletionV2;
|
|
12311
|
+
type MonitoringRunCompletionV2Response = Components.Schemas.MonitoringRunCompletionV2Response;
|
|
12312
|
+
type MonitoringRunEntriesV2 = Components.Schemas.MonitoringRunEntriesV2;
|
|
12164
12313
|
type MonitoringStats = Components.Schemas.MonitoringStats;
|
|
12165
12314
|
type MonitoringStatsV2 = Components.Schemas.MonitoringStatsV2;
|
|
12166
12315
|
type MonitoringTraceResponse = Components.Schemas.MonitoringTraceResponse;
|
|
@@ -12255,4 +12404,4 @@ type ValidateErpImportRequest = Components.Schemas.ValidateErpImportRequest;
|
|
|
12255
12404
|
type WebhookDeliveryConfig = Components.Schemas.WebhookDeliveryConfig;
|
|
12256
12405
|
type WebhookStatus = Components.Schemas.WebhookStatus;
|
|
12257
12406
|
|
|
12258
|
-
export { type ErpImportEntityDetail as $, type AccessLogEntry as A, type DirectRelationValue as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type DirectSimulationError as E, type DirectSimulationRequest as F, type DirectSimulationResponse as G, type DocumentationPage as H, type DocumentationPageSummary as I, type EmbeddedFileProxyUseCaseRequest as J, type EmbeddedInboundUseCaseRequest as K, type EmbeddedManagedCallUseCaseRequest as L, type EmbeddedOutboundUseCaseRequest as M, type EmbeddedSecureProxyUseCaseRequest as N, type OperationMethods as O, Paths as P, type EmbeddedUseCaseRequest as Q, type EmbeddedUseCaseRequestBase as R, type EntityPruneScopeUpdate as S, type EntitySyncState as T, type EntitySyncStatusResponse as U, type EntityUpdate as V, type EnvVarRefConfig as W, type EnvironmentFieldConfig as X, type ErpEvent as Y, type ErpEventV3 as Z, type ErpImportDownload as _, Components as a, type
|
|
12407
|
+
export { type ErpImportEntityDetail as $, type AccessLogEntry as A, type DirectRelationValue as B, type Client as C, type DeleteIntegrationAppMappingRequest as D, type DirectSimulationError as E, type DirectSimulationRequest as F, type DirectSimulationResponse as G, type DocumentationPage as H, type DocumentationPageSummary as I, type EmbeddedFileProxyUseCaseRequest as J, type EmbeddedInboundUseCaseRequest as K, type EmbeddedManagedCallUseCaseRequest as L, type EmbeddedOutboundUseCaseRequest as M, type EmbeddedSecureProxyUseCaseRequest as N, type OperationMethods as O, Paths as P, type EmbeddedUseCaseRequest as Q, type EmbeddedUseCaseRequestBase as R, type EntityPruneScopeUpdate as S, type EntitySyncState as T, type EntitySyncStatusResponse as U, type EntityUpdate as V, type EnvVarRefConfig as W, type EnvironmentFieldConfig as X, type ErpEvent as Y, type ErpEventV3 as Z, type ErpImportDownload as _, Components as a, type ManagedCallUseCase as a$, type ErpImportError as a0, type ErpImportFilePreview as a1, type ErpImportIssue as a2, type ErpImportJob as a3, type ErpImportList as a4, type ErpImportProgress as a5, type ErpImportUseCaseSuggestion as a6, type ErpImportValidation as a7, type ErpUpdatesEventsV2Request as a8, type ErpUpdatesEventsV3Request as a9, type InboundMonitoringEvent as aA, type InboundUseCase as aB, type InboundUseCaseHistoryEntry as aC, type IngestExternalMonitoringEventsRequest as aD, type IngestExternalMonitoringEventsResponse as aE, type Integration as aF, type IntegrationAppMapping as aG, type IntegrationConfigurationV1 as aH, type IntegrationConfigurationV2 as aI, type IntegrationEditableFields as aJ, type IntegrationEntity as aK, type IntegrationEntityConditional as aL, type IntegrationEntityField as aM, type IntegrationEntityFromRows as aN, type IntegrationFieldV1 as aO, type IntegrationMap as aP, type IntegrationMeterReading as aQ, type IntegrationNotificationConfig as aR, type IntegrationObjectV1 as aS, type IntegrationSettings as aT, type IntegrationWithUseCases as aU, type ManagedCallAuth as aV, type ManagedCallErrorResponse as aW, type ManagedCallExecuteRequest as aX, type ManagedCallExecuteResponse as aY, type ManagedCallOperation as aZ, type ManagedCallOperationConfig as a_, type ErrorResponseBase as aa, type ExecuteErpImportRequest as ab, type ExternalMonitoringSpan as ac, type FileProxyAuth as ad, type FileProxyDeliveryConfig as ae, type FileProxyFanOutConfig as af, type FileProxyParam as ag, type FileProxyResponseConfig as ah, type FileProxySecureProxyAttachment as ai, type FileProxyStep as aj, type FileProxyUploadConfig as ak, type FileProxyUrlConfig as al, type FileProxyUrlParam as am, type FileProxyUrlParams as an, type FileProxyUseCase as ao, type FileProxyUseCaseConfiguration as ap, type FileProxyUseCaseHistoryEntry as aq, type GenerateTypesPreviewResponse as ar, type GenerateTypesRequest as as, type GenerateTypesResponse as at, type GetMonitoringRunCompletionV2Request as au, type GetMonitoringStatsRequest as av, type GetMonitoringStatsV2Request as aw, type GetMonitoringTimeSeriesRequest as ax, type GetMonitoringTimeSeriesV2Request as ay, type InboundIntegrationEventConfiguration as az, type PathsDictionary as b, type RuleBaselineBucket as b$, type ManagedCallUseCaseHistoryEntry as b0, type MappedFieldValue as b1, type MappingSimulationRequest as b2, type MappingSimulationResponse as b3, type MappingSimulationV2Request as b4, type MappingSimulationWarning as b5, type MeterReadingPruneScopeConfig as b6, type MeterReadingPruneScopeUpdate as b7, type MeterReadingUpdate as b8, type MeterUniqueIdsConfig as b9, type OutboundStatusResponse as bA, type OutboundUseCase as bB, type OutboundUseCaseHistoryEntry as bC, type OutboundUseCaseStatus as bD, type PollDeliveryConfig as bE, type PollOutboundMessagesRequest as bF, type PollOutboundMessagesResponse as bG, type PortalOrigin as bH, type PortalRefConfig as bI, type PortalRefFilter as bJ, type PruneScopeConfig as bK, type QueryAccessLogsRequest as bL, type QueryEventsRequest as bM, type QueryInboundMonitoringEventsRequest as bN, type QueryMonitoringEventsV2Request as bO, type QueryOutboundMonitoringEventsRequest as bP, type RedriveOutboundDlqRequest as bQ, type RedriveOutboundDlqResponse as bR, type RedriveOutboundDlqResult as bS, type RelationConfig as bT, type RelationItemConfig as bU, type RelationRefItemConfig as bV, type RelationRefValueConfig as bW, type RelationRefsConfig as bX, type RelationUniqueIdField as bY, type RepeatableFieldType as bZ, type ReplayEventsRequest as b_, type MonitoringCode as ba, type MonitoringEventV2 as bb, type MonitoringRunCompletionV2 as bc, type MonitoringRunCompletionV2Response as bd, type MonitoringRunEntriesV2 as be, type MonitoringStats as bf, type MonitoringStatsV2 as bg, type MonitoringTraceResponse as bh, type NotificationChannelSet as bi, type NotificationDigestConfig as bj, type NotificationHistoryItem as bk, type NotificationHistoryResponse as bl, type NotificationRecipient as bm, type NotificationRule as bn, type NotificationRuleStatus as bo, type NotificationStatusResponse as bp, type OutboundConflict as bq, type OutboundDlqListResponse as br, type OutboundDlqMessage as bs, type OutboundFileProxyTargetStatus as bt, type OutboundIntegrationEventConfiguration as bu, type OutboundMapping as bv, type OutboundMappingSimulationError as bw, type OutboundMessage as bx, type OutboundMonitoringEvent as by, type OutboundPollStatus as bz, type AckOutboundMessagesRequest as c, type RuleBaselineStatus as c0, type S3Reference as c1, type SecureProxyRequest as c2, type SecureProxyResponse as c3, type SecureProxySummary as c4, type SecureProxyUpstreamError as c5, type SecureProxyUseCase as c6, type SecureProxyUseCaseConfiguration as c7, type SecureProxyUseCaseHistoryEntry as c8, type SecureProxyWhitelist as c9, type UseCase as cA, type UseCaseBase as cB, type UseCaseHistoryEntry as cC, type UseCaseHistoryEntryBase as cD, type UseCaseTypePreview as cE, type ValidateErpImportRequest as cF, type WebhookDeliveryConfig as cG, type WebhookStatus as cH, type SecureProxyWhitelistUpdate as ca, type SetIntegrationAppMappingRequest as cb, type SimulateOutboundMappingRequest as cc, type SimulateOutboundMappingResponse as cd, type SuggestErpImportUseCasesResponse as ce, type TestNotificationRequest as cf, type TestNotificationResponse as cg, type TimeSeriesBreakdownItemV2 as ch, type TimeSeriesBucket as ci, type TimeSeriesBucketV2 as cj, type TriggerErpActionRequest as ck, type TriggerWebhookResp as cl, type TypeAnnotations as cm, type TypeDescriptor as cn, type UnblockOutboundStreamRequest as co, type UnblockOutboundStreamResponse as cp, type UpdateFileProxyUseCaseRequest as cq, type UpdateInboundUseCaseRequest as cr, type UpdateIntegrationRequest as cs, type UpdateManagedCallUseCaseRequest as ct, type UpdateOutboundUseCaseRequest as cu, type UpdateSecureProxyUseCaseRequest as cv, type UpdateUseCaseRequest as cw, type UpdateUseCaseRequestBase as cx, type UpsertDocumentationPageRequest as cy, type UpsertIntegrationWithUseCasesRequest as cz, type AckOutboundMessagesResponse as d, type AckResult as e, type AutoRefreshSettings as f, type CommitTypesRequest as g, type CommitTypesResponse as h, type ConnectorConfig as i, type CreateErpImportRequest as j, type CreateErpImportResponse as k, type CreateFileProxyUseCaseRequest as l, type CreateInboundUseCaseRequest as m, type CreateIntegrationRequest as n, type CreateManagedCallUseCaseRequest as o, type CreateOutboundUseCaseRequest as p, type CreateSecureProxyUseCaseRequest as q, type CreateUseCaseRequest as r, type CreateUseCaseRequestBase as s, type DeliveryConfig as t, type DirectEntityOperation as u, type DirectMeterReadingOperation as v, type DirectPayload as w, type DirectRelationItem as x, type DirectRelationRefItem as y, type DirectRelationRefValue as z };
|
package/docs/app.md
CHANGED
|
@@ -136,6 +136,8 @@ const { data } = await appClient.getPublicFacingComponent(...)
|
|
|
136
136
|
- [`ApiProxyConfig`](#apiproxyconfig)
|
|
137
137
|
- [`ExternalValuesConfig`](#externalvaluesconfig)
|
|
138
138
|
- [`ExternalValuesHook`](#externalvalueshook)
|
|
139
|
+
- [`ContextRequirement`](#contextrequirement)
|
|
140
|
+
- [`EntityContextRequirement`](#entitycontextrequirement)
|
|
139
141
|
- [`ExternalValuesResult`](#externalvaluesresult)
|
|
140
142
|
- [`Grants`](#grants)
|
|
141
143
|
- [`BlueprintRef`](#blueprintref)
|
|
@@ -2268,6 +2270,7 @@ type ExternalValuesComponent = {
|
|
|
2268
2270
|
result: { ... }
|
|
2269
2271
|
timeout_ms?: { ... }
|
|
2270
2272
|
on_unavailable?: { ... }
|
|
2273
|
+
contexts?: { ... }
|
|
2271
2274
|
cache?: { ... }
|
|
2272
2275
|
secure_proxy?: { ... }
|
|
2273
2276
|
}>
|
|
@@ -3793,6 +3796,10 @@ type ExternalValuesConfig = {
|
|
|
3793
3796
|
}>
|
|
3794
3797
|
timeout_ms?: number
|
|
3795
3798
|
on_unavailable?: "skip" | "block"
|
|
3799
|
+
contexts?: Array<{
|
|
3800
|
+
type: { ... }
|
|
3801
|
+
schema: { ... }
|
|
3802
|
+
}>
|
|
3796
3803
|
cache?: {
|
|
3797
3804
|
ttl_seconds: { ... }
|
|
3798
3805
|
key?: { ... }
|
|
@@ -3807,8 +3814,9 @@ type ExternalValuesConfig = {
|
|
|
3807
3814
|
|
|
3808
3815
|
### `ExternalValuesHook`
|
|
3809
3816
|
|
|
3810
|
-
One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `
|
|
3817
|
+
One external call that returns one or more typed results. Interpolated templates (Liquid) have access to `Context`, `Consumer`, `Options`, `Env` and — for `result` templates — `Response` and `AuthResponse` (each is also available snake_case, e.g. `{{ context.contract }}`).
|
|
3811
3818
|
|
|
3819
|
+
`Context` is the name → v
|
|
3812
3820
|
|
|
3813
3821
|
```ts
|
|
3814
3822
|
type ExternalValuesHook = {
|
|
@@ -3855,6 +3863,10 @@ type ExternalValuesHook = {
|
|
|
3855
3863
|
}>
|
|
3856
3864
|
timeout_ms?: number
|
|
3857
3865
|
on_unavailable?: "skip" | "block"
|
|
3866
|
+
contexts?: Array<{
|
|
3867
|
+
type: "entity"
|
|
3868
|
+
schema: string
|
|
3869
|
+
}>
|
|
3858
3870
|
cache?: {
|
|
3859
3871
|
ttl_seconds: number
|
|
3860
3872
|
key?: string
|
|
@@ -3866,6 +3878,28 @@ type ExternalValuesHook = {
|
|
|
3866
3878
|
}
|
|
3867
3879
|
```
|
|
3868
3880
|
|
|
3881
|
+
### `ContextRequirement`
|
|
3882
|
+
|
|
3883
|
+
A requirement a hook reads from `Context`, discriminated by `type`. More types will be added later; consumers must ignore types they do not know.
|
|
3884
|
+
|
|
3885
|
+
```ts
|
|
3886
|
+
type ContextRequirement = {
|
|
3887
|
+
type: "entity"
|
|
3888
|
+
schema: string
|
|
3889
|
+
}
|
|
3890
|
+
```
|
|
3891
|
+
|
|
3892
|
+
### `EntityContextRequirement`
|
|
3893
|
+
|
|
3894
|
+
The consumer supplies the bound entities of `schema` under `Context.`<schema>``.
|
|
3895
|
+
|
|
3896
|
+
```ts
|
|
3897
|
+
type EntityContextRequirement = {
|
|
3898
|
+
type: "entity"
|
|
3899
|
+
schema: string
|
|
3900
|
+
}
|
|
3901
|
+
```
|
|
3902
|
+
|
|
3869
3903
|
### `ExternalValuesResult`
|
|
3870
3904
|
|
|
3871
3905
|
A single typed value extracted from the hook response. Exactly one of `template`, `path` or `jsonata` must be set.
|