@epilot/sdk 2.20.34 → 2.20.35
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/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +259 -13
- 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/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 +19 -15
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +13 -9
- 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-4DTTVPUM.cjs → chunk-4M4Z7BKK.cjs} +1 -1
- package/dist/{chunk-WE4C7GER.js → chunk-4OBXBYLK.js} +1 -1
- package/dist/{chunk-RJVNG46W.js → chunk-OXXS3O7X.js} +2 -2
- package/dist/{chunk-XFBOYWIP.cjs → chunk-RE2KDGKQ.cjs} +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/integration-toolkit-4ADZMNTB.cjs +7 -0
- package/dist/integration-toolkit-BCRYMKLW.js +7 -0
- package/dist/{integration-toolkit-runtime-TNDJH6HK.js → integration-toolkit-runtime-ABL4FFLI.js} +1 -1
- package/dist/{integration-toolkit-runtime-57I2O6DI.cjs → integration-toolkit-runtime-SU7VKZJB.cjs} +2 -2
- package/dist/{integration-toolkit.d-CEY26qJu.d.cts → integration-toolkit.d-BQ0Fj-48.d.cts} +274 -25
- package/dist/{integration-toolkit.d-CEY26qJu.d.ts → integration-toolkit.d-BQ0Fj-48.d.ts} +274 -25
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/docs/integration-toolkit.md +113 -8
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/integration-toolkit-FM53LFD7.cjs +0 -7
- package/dist/integration-toolkit-PUA7B6YT.js +0 -7
|
@@ -70,6 +70,7 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
|
|
|
70
70
|
- [`listOutboundDlqMessages`](#listoutbounddlqmessages)
|
|
71
71
|
- [`redriveOutboundDlqMessages`](#redriveoutbounddlqmessages)
|
|
72
72
|
- [`unblockOutboundStream`](#unblockoutboundstream)
|
|
73
|
+
- [`simulateOutboundMapping`](#simulateoutboundmapping)
|
|
73
74
|
- [`listSecureProxies`](#listsecureproxies)
|
|
74
75
|
- [`generateTypesPreview`](#generatetypespreview)
|
|
75
76
|
- [`generateTypes`](#generatetypes)
|
|
@@ -284,6 +285,9 @@ const { data } = await integrationToolkitClient.acknowledgeTracking(...)
|
|
|
284
285
|
- [`RedriveOutboundDlqResponse`](#redriveoutbounddlqresponse)
|
|
285
286
|
- [`UnblockOutboundStreamRequest`](#unblockoutboundstreamrequest)
|
|
286
287
|
- [`UnblockOutboundStreamResponse`](#unblockoutboundstreamresponse)
|
|
288
|
+
- [`SimulateOutboundMappingRequest`](#simulateoutboundmappingrequest)
|
|
289
|
+
- [`OutboundMappingSimulationError`](#outboundmappingsimulationerror)
|
|
290
|
+
- [`SimulateOutboundMappingResponse`](#simulateoutboundmappingresponse)
|
|
287
291
|
- [`RelationConfig`](#relationconfig)
|
|
288
292
|
- [`RelationItemConfig`](#relationitemconfig)
|
|
289
293
|
- [`RelationUniqueIdField`](#relationuniqueidfield)
|
|
@@ -2815,7 +2819,9 @@ const { data } = await client.pollOutboundMessages(
|
|
|
2815
2819
|
"event_name": "string",
|
|
2816
2820
|
"event_id": "string",
|
|
2817
2821
|
"group": "string",
|
|
2822
|
+
"org_id": "string",
|
|
2818
2823
|
"payload": {},
|
|
2824
|
+
"mapping_version": "3f2a9c1b7d4e8f60",
|
|
2819
2825
|
"enqueued_at": "1970-01-01T00:00:00.000Z"
|
|
2820
2826
|
}
|
|
2821
2827
|
],
|
|
@@ -2903,6 +2909,8 @@ const { data } = await client.listOutboundDlqMessages({
|
|
|
2903
2909
|
"dead_lettered_at": "1970-01-01T00:00:00.000Z",
|
|
2904
2910
|
"delivery_attempts": 0,
|
|
2905
2911
|
"reason": "string",
|
|
2912
|
+
"mapping_error": "string",
|
|
2913
|
+
"mapping_version": "string",
|
|
2906
2914
|
"expires_at": "1970-01-01T00:00:00.000Z"
|
|
2907
2915
|
}
|
|
2908
2916
|
],
|
|
@@ -2929,7 +2937,8 @@ const { data } = await client.redriveOutboundDlqMessages(
|
|
|
2929
2937
|
integrationId: 'example',
|
|
2930
2938
|
},
|
|
2931
2939
|
{
|
|
2932
|
-
ids: ['string']
|
|
2940
|
+
ids: ['string'],
|
|
2941
|
+
reapply_mapping: false
|
|
2933
2942
|
},
|
|
2934
2943
|
)
|
|
2935
2944
|
```
|
|
@@ -2942,7 +2951,8 @@ const { data } = await client.redriveOutboundDlqMessages(
|
|
|
2942
2951
|
"results": [
|
|
2943
2952
|
{
|
|
2944
2953
|
"id": "string",
|
|
2945
|
-
"status": "redriven"
|
|
2954
|
+
"status": "redriven",
|
|
2955
|
+
"mapping_error": "string"
|
|
2946
2956
|
}
|
|
2947
2957
|
]
|
|
2948
2958
|
}
|
|
@@ -2986,6 +2996,49 @@ const { data } = await client.unblockOutboundStream(
|
|
|
2986
2996
|
|
|
2987
2997
|
---
|
|
2988
2998
|
|
|
2999
|
+
### `simulateOutboundMapping`
|
|
3000
|
+
|
|
3001
|
+
Preview a poll delivery's `jsonata_expression` without saving or
|
|
3002
|
+
enqueueing anything. The expression is checked and evaluated exactly
|
|
3003
|
+
as at enqueue time: the same length, syntax and binding checks, th
|
|
3004
|
+
|
|
3005
|
+
`POST /v1/integrations/{integrationId}/outbound/mapping-simulation`
|
|
3006
|
+
|
|
3007
|
+
```ts
|
|
3008
|
+
const { data } = await client.simulateOutboundMapping(
|
|
3009
|
+
{
|
|
3010
|
+
integrationId: 'example',
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
jsonata_expression: '{ "contract_number": contract.contract_number, "status": $mapValue($env.erp.statuses, contract.status) }',
|
|
3014
|
+
payload: {},
|
|
3015
|
+
event_id: 'string',
|
|
3016
|
+
event_catalog_event: 'contract.updated'
|
|
3017
|
+
},
|
|
3018
|
+
)
|
|
3019
|
+
```
|
|
3020
|
+
|
|
3021
|
+
<details>
|
|
3022
|
+
<summary>Response</summary>
|
|
3023
|
+
|
|
3024
|
+
```json
|
|
3025
|
+
{
|
|
3026
|
+
"valid": true,
|
|
3027
|
+
"output": {},
|
|
3028
|
+
"error": {
|
|
3029
|
+
"code": "syntax_error",
|
|
3030
|
+
"message": "string",
|
|
3031
|
+
"position": 0
|
|
3032
|
+
},
|
|
3033
|
+
"mapping_version": "3f2a9c1b7d4e8f60",
|
|
3034
|
+
"input": {}
|
|
3035
|
+
}
|
|
3036
|
+
```
|
|
3037
|
+
|
|
3038
|
+
</details>
|
|
3039
|
+
|
|
3040
|
+
---
|
|
3041
|
+
|
|
2989
3042
|
### `queryAccessLogs`
|
|
2990
3043
|
|
|
2991
3044
|
Query API access logs for a specific integration's organization.
|
|
@@ -8532,7 +8585,7 @@ type IntegrationConfigurationV2 = {
|
|
|
8532
8585
|
|
|
8533
8586
|
### `OutboundMapping`
|
|
8534
8587
|
|
|
8535
|
-
A mapping that delivers an event to an external system by one of three mechanisms — pushed to a webhook (with a JSONata payload transformation), made available on the pull-based poll queue (raw event payload,
|
|
8588
|
+
A mapping that delivers an event to an external system by one of three mechanisms — pushed to a webhook (with a JSONata payload transformation), made available on the pull-based poll queue (the raw event payload, or its JSONata transformation when the mapping carries one), or handed to a file_proxy
|
|
8536
8589
|
|
|
8537
8590
|
```ts
|
|
8538
8591
|
type OutboundMapping = {
|
|
@@ -8561,7 +8614,7 @@ type OutboundMapping = {
|
|
|
8561
8614
|
|
|
8562
8615
|
### `DeliveryConfig`
|
|
8563
8616
|
|
|
8564
|
-
Configuration for how the event should be delivered. webhook = push delivery via svc-webhooks (JSONata-transformed payload); poll = pull-based queue delivery where the consumer fetches items via the poll API (raw event payload
|
|
8617
|
+
Configuration for how the event should be delivered. webhook = push delivery via svc-webhooks (JSONata-transformed payload); poll = pull-based queue delivery where the consumer fetches items via the poll API (raw event payload, or its JSONata transformation when the mapping carries a jsonata_express
|
|
8565
8618
|
|
|
8566
8619
|
```ts
|
|
8567
8620
|
type DeliveryConfig = {
|
|
@@ -8595,7 +8648,7 @@ type WebhookDeliveryConfig = {
|
|
|
8595
8648
|
|
|
8596
8649
|
### `PollDeliveryConfig`
|
|
8597
8650
|
|
|
8598
|
-
Pull-based queue delivery.
|
|
8651
|
+
Pull-based queue delivery. Consumers fetch and acknowledge items via the poll API. When the mapping carries a `jsonata_expression`, it is evaluated once at enqueue time against the standardized event-catalog event (with `$env`/`$mapValue`/`$mapKey` bindings) and its output — a JSON object — is the d
|
|
8599
8652
|
|
|
8600
8653
|
```ts
|
|
8601
8654
|
type PollDeliveryConfig = {
|
|
@@ -8824,7 +8877,9 @@ type OutboundMessage = {
|
|
|
8824
8877
|
event_name: string
|
|
8825
8878
|
event_id: string
|
|
8826
8879
|
group: string
|
|
8880
|
+
org_id?: string
|
|
8827
8881
|
payload: Record<string, unknown>
|
|
8882
|
+
mapping_version?: string
|
|
8828
8883
|
enqueued_at: string // date-time
|
|
8829
8884
|
}
|
|
8830
8885
|
```
|
|
@@ -8840,7 +8895,9 @@ type PollOutboundMessagesResponse = {
|
|
|
8840
8895
|
event_name: string
|
|
8841
8896
|
event_id: string
|
|
8842
8897
|
group: string
|
|
8898
|
+
org_id?: string
|
|
8843
8899
|
payload: Record<string, unknown>
|
|
8900
|
+
mapping_version?: string
|
|
8844
8901
|
enqueued_at: string // date-time
|
|
8845
8902
|
}>
|
|
8846
8903
|
visibility_timeout_seconds: number
|
|
@@ -8893,6 +8950,8 @@ type OutboundDlqMessage = {
|
|
|
8893
8950
|
dead_lettered_at: string // date-time
|
|
8894
8951
|
delivery_attempts: number
|
|
8895
8952
|
reason?: string
|
|
8953
|
+
mapping_error?: string
|
|
8954
|
+
mapping_version?: string
|
|
8896
8955
|
expires_at?: string // date-time
|
|
8897
8956
|
}
|
|
8898
8957
|
```
|
|
@@ -8910,6 +8969,8 @@ type OutboundDlqListResponse = {
|
|
|
8910
8969
|
dead_lettered_at: string // date-time
|
|
8911
8970
|
delivery_attempts: number
|
|
8912
8971
|
reason?: string
|
|
8972
|
+
mapping_error?: string
|
|
8973
|
+
mapping_version?: string
|
|
8913
8974
|
expires_at?: string // date-time
|
|
8914
8975
|
}>
|
|
8915
8976
|
next_token?: string
|
|
@@ -8921,6 +8982,7 @@ type OutboundDlqListResponse = {
|
|
|
8921
8982
|
```ts
|
|
8922
8983
|
type RedriveOutboundDlqRequest = {
|
|
8923
8984
|
ids: string[]
|
|
8985
|
+
reapply_mapping?: boolean
|
|
8924
8986
|
}
|
|
8925
8987
|
```
|
|
8926
8988
|
|
|
@@ -8929,7 +8991,8 @@ type RedriveOutboundDlqRequest = {
|
|
|
8929
8991
|
```ts
|
|
8930
8992
|
type RedriveOutboundDlqResult = {
|
|
8931
8993
|
id: string
|
|
8932
|
-
status: "redriven" | "not_found"
|
|
8994
|
+
status: "redriven" | "not_found" | "mapping_failed"
|
|
8995
|
+
mapping_error?: string
|
|
8933
8996
|
}
|
|
8934
8997
|
```
|
|
8935
8998
|
|
|
@@ -8939,7 +9002,8 @@ type RedriveOutboundDlqResult = {
|
|
|
8939
9002
|
type RedriveOutboundDlqResponse = {
|
|
8940
9003
|
results: Array<{
|
|
8941
9004
|
id: string
|
|
8942
|
-
status: "redriven" | "not_found"
|
|
9005
|
+
status: "redriven" | "not_found" | "mapping_failed"
|
|
9006
|
+
mapping_error?: string
|
|
8943
9007
|
}>
|
|
8944
9008
|
}
|
|
8945
9009
|
```
|
|
@@ -8961,6 +9025,47 @@ type UnblockOutboundStreamResponse = {
|
|
|
8961
9025
|
}
|
|
8962
9026
|
```
|
|
8963
9027
|
|
|
9028
|
+
### `SimulateOutboundMappingRequest`
|
|
9029
|
+
|
|
9030
|
+
Exactly one of `payload` or `event_id` is required. `event_id` needs
|
|
9031
|
+
`event_catalog_event` to name the event it belongs to.
|
|
9032
|
+
|
|
9033
|
+
|
|
9034
|
+
```ts
|
|
9035
|
+
type SimulateOutboundMappingRequest = {
|
|
9036
|
+
jsonata_expression: string
|
|
9037
|
+
payload?: Record<string, unknown>
|
|
9038
|
+
event_id?: string
|
|
9039
|
+
event_catalog_event?: string
|
|
9040
|
+
}
|
|
9041
|
+
```
|
|
9042
|
+
|
|
9043
|
+
### `OutboundMappingSimulationError`
|
|
9044
|
+
|
|
9045
|
+
```ts
|
|
9046
|
+
type OutboundMappingSimulationError = {
|
|
9047
|
+
code: "syntax_error" | "unknown_binding" | "evaluation_error" | "timeout" | "invalid_output" | "expression_too_long"
|
|
9048
|
+
message: string
|
|
9049
|
+
position?: number
|
|
9050
|
+
}
|
|
9051
|
+
```
|
|
9052
|
+
|
|
9053
|
+
### `SimulateOutboundMappingResponse`
|
|
9054
|
+
|
|
9055
|
+
```ts
|
|
9056
|
+
type SimulateOutboundMappingResponse = {
|
|
9057
|
+
valid: boolean
|
|
9058
|
+
output?: Record<string, unknown>
|
|
9059
|
+
error?: {
|
|
9060
|
+
code: "syntax_error" | "unknown_binding" | "evaluation_error" | "timeout" | "invalid_output" | "expression_too_long"
|
|
9061
|
+
message: string
|
|
9062
|
+
position?: number
|
|
9063
|
+
}
|
|
9064
|
+
mapping_version: string
|
|
9065
|
+
input?: Record<string, unknown>
|
|
9066
|
+
}
|
|
9067
|
+
```
|
|
9068
|
+
|
|
8964
9069
|
### `RelationConfig`
|
|
8965
9070
|
|
|
8966
9071
|
```ts
|
|
@@ -9409,7 +9514,7 @@ This schema exists so consumers can import the union as a type. It is
|
|
|
9409
9514
|
deliberately
|
|
9410
9515
|
|
|
9411
9516
|
```ts
|
|
9412
|
-
type MonitoringCode = "ACK_CONFIRMED" | "ACK_PENDING" | "ACK_TIMEOUT" | "ATTACHMENT_NOT_FOUND" | "ATTRIBUTE_TYPE_MISMATCH" | "CONDITIONAL_VARIANTS_WRITTEN" | "CONDITIONAL_VARIANT_WRITE_FAILED" | "CONDITIONAL_VARIANT_WRITE_WARNING" | "DEPRECATED_ENDPOINT" | "DIRECT_ENTITY_NOT_ALLOWED" | "DIRECT_PAYLOAD_INVALID" | "DIRECT_VERSION_UNSUPPORTED" | "DUPLICATE_EVENT" | "ENTITY_CREATED" | "ENTITY_DELETED" | "ENTITY_NO_OP" | "ENTITY_REFERENCE_NOT_FOUND" | "ENTITY_UPDATED" | "EVENT_NOT_CONFIGURED" | "EXTERNAL_API_ERROR" | "EXTERNAL_ERROR" | "EXTERNAL_INFO" | "EXTERNAL_SUCCESS" | "EXTERNAL_WARNING" | "FAN_OUT_EMPTY" | "FAN_OUT_INVALID_RESULT" | "FILE_EXTRACTION_FAILED" | "FILE_FETCH_FAILED" | "FILE_PROXY_OK" | "FILE_PROXY_UPLOADED" | "FILE_PROXY_UPLOAD_ENQUEUED" | "FILE_PROXY_UPLOAD_FAILED" | "FILE_PROXY_UPLOAD_RETRYING" | "FILE_TOO_LARGE" | "INTEGRATION_NOT_FOUND" | "INVALID_METER_READING_ATTRIBUTES" | "LOOKUP_UNMAPPED" | "MALFORMED_PAYLOAD" | "MAPPING_EXPRESSION_FAILED" | "METERING_API_ERROR" | "METER_READING_DELETED" | "METER_READING_GROUP_FAILED" | "METER_READING_GROUP_RETRYING" | "METER_READING_UPSERTED" | "MISSING_REQUIRED_PARAM" | "MISSING_UNIQUE_IDENTIFIERS" | "MSG_ACKED" | "MSG_DEAD_LETTERED" | "MSG_ENQUEUED" | "MSG_EXPIRED_UNPOLLED" | "MSG_HEAD_BLOCKED" | "OAUTH2_TOKEN_FAILURE" | "PAYLOAD_TOO_LARGE" | "PRUNE_SCOPE_COMPLETED" | "PRUNE_SCOPE_PARTIAL_FAILURE" | "RECURSION_DEPTH_EXCEEDED" | "RELATION_REF_ITEM_NOT_FOUND" | "RELATION_REF_VALUE_UNDEFINED" | "REQUIRED_PARAM_MISSING" | "SECURE_PROXY_DISABLED" | "SECURE_PROXY_DOMAIN_BLOCKED" | "SECURE_PROXY_DOMAIN_NOT_ALLOWED" | "SECURE_PROXY_ERROR" | "SECURE_PROXY_INVALID_CONFIG" | "SECURE_PROXY_INVALID_TYPE" | "SECURE_PROXY_INVALID_URL" | "SECURE_PROXY_IP_BLOCKED" | "SECURE_PROXY_IP_NOT_ALLOWED" | "SECURE_PROXY_NOT_FOUND" | "SECURE_PROXY_UNAVAILABLE" | "SIGNATURE_VERIFICATION_FAILED" | "SIGNATURE_VERIFICATION_UNAVAILABLE" | "SOFT_DELETED_ENTITY_MATCHED" | "STEP_DISABLED" | "TIMEOUT" | "UNIQUE_ID_MULTIPLE_MATCHES" | "UNIQUE_ID_NOT_IN_SCHEMA" | "UNKNOWN_ERROR" | "USE_CASE_DISABLED" | "USE_CASE_INVALID_TYPE" | "USE_CASE_MISSING_CONFIG" | "USE_CASE_NOT_FOUND" | "WEBHOOK_DELIVERED"
|
|
9517
|
+
type MonitoringCode = "ACK_CONFIRMED" | "ACK_PENDING" | "ACK_TIMEOUT" | "ATTACHMENT_NOT_FOUND" | "ATTRIBUTE_TYPE_MISMATCH" | "CONDITIONAL_VARIANTS_WRITTEN" | "CONDITIONAL_VARIANT_WRITE_FAILED" | "CONDITIONAL_VARIANT_WRITE_WARNING" | "DEPRECATED_ENDPOINT" | "DIRECT_ENTITY_NOT_ALLOWED" | "DIRECT_PAYLOAD_INVALID" | "DIRECT_VERSION_UNSUPPORTED" | "DUPLICATE_EVENT" | "ENTITY_CREATED" | "ENTITY_DELETED" | "ENTITY_NO_OP" | "ENTITY_REFERENCE_NOT_FOUND" | "ENTITY_UPDATED" | "EVENT_NOT_CONFIGURED" | "EXTERNAL_API_ERROR" | "EXTERNAL_ERROR" | "EXTERNAL_INFO" | "EXTERNAL_SUCCESS" | "EXTERNAL_WARNING" | "FAN_OUT_EMPTY" | "FAN_OUT_INVALID_RESULT" | "FILE_EXTRACTION_FAILED" | "FILE_FETCH_FAILED" | "FILE_PROXY_OK" | "FILE_PROXY_UPLOADED" | "FILE_PROXY_UPLOAD_ENQUEUED" | "FILE_PROXY_UPLOAD_FAILED" | "FILE_PROXY_UPLOAD_RETRYING" | "FILE_TOO_LARGE" | "INTEGRATION_NOT_FOUND" | "INVALID_METER_READING_ATTRIBUTES" | "LOOKUP_UNMAPPED" | "MALFORMED_PAYLOAD" | "MAPPING_EXPRESSION_FAILED" | "METERING_API_ERROR" | "METER_READING_DELETED" | "METER_READING_GROUP_FAILED" | "METER_READING_GROUP_RETRYING" | "METER_READING_UPSERTED" | "MISSING_REQUIRED_PARAM" | "MISSING_UNIQUE_IDENTIFIERS" | "MSG_ACKED" | "MSG_DEAD_LETTERED" | "MSG_ENQUEUED" | "MSG_EXPIRED_UNPOLLED" | "MSG_HEAD_BLOCKED" | "MSG_LATE_ARRIVAL" | "OAUTH2_TOKEN_FAILURE" | "PAYLOAD_TOO_LARGE" | "PRUNE_SCOPE_COMPLETED" | "PRUNE_SCOPE_PARTIAL_FAILURE" | "RECURSION_DEPTH_EXCEEDED" | "RELATION_REF_ITEM_NOT_FOUND" | "RELATION_REF_VALUE_UNDEFINED" | "REQUIRED_PARAM_MISSING" | "SECURE_PROXY_DISABLED" | "SECURE_PROXY_DOMAIN_BLOCKED" | "SECURE_PROXY_DOMAIN_NOT_ALLOWED" | "SECURE_PROXY_ERROR" | "SECURE_PROXY_INVALID_CONFIG" | "SECURE_PROXY_INVALID_TYPE" | "SECURE_PROXY_INVALID_URL" | "SECURE_PROXY_IP_BLOCKED" | "SECURE_PROXY_IP_NOT_ALLOWED" | "SECURE_PROXY_NOT_FOUND" | "SECURE_PROXY_UNAVAILABLE" | "SIGNATURE_VERIFICATION_FAILED" | "SIGNATURE_VERIFICATION_UNAVAILABLE" | "SOFT_DELETED_ENTITY_MATCHED" | "STEP_DISABLED" | "TIMEOUT" | "UNIQUE_ID_MULTIPLE_MATCHES" | "UNIQUE_ID_NOT_IN_SCHEMA" | "UNKNOWN_ERROR" | "USE_CASE_DISABLED" | "USE_CASE_INVALID_TYPE" | "USE_CASE_MISSING_CONFIG" | "USE_CASE_NOT_FOUND" | "WEBHOOK_DELIVERED"
|
|
9413
9518
|
```
|
|
9414
9519
|
|
|
9415
9520
|
### `MonitoringEventV2`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/sdk",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.35",
|
|
4
4
|
"description": "JavaScript/TypeScript SDK for epilot APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -328,16 +328,6 @@
|
|
|
328
328
|
},
|
|
329
329
|
"./workflow-definition/openapi.json": "./definitions/workflow-definition.json"
|
|
330
330
|
},
|
|
331
|
-
"scripts": {
|
|
332
|
-
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
333
|
-
"build": "tsup",
|
|
334
|
-
"build:watch": "tsup --watch",
|
|
335
|
-
"test": "vitest run",
|
|
336
|
-
"test:watch": "vitest",
|
|
337
|
-
"lint": "biome check src",
|
|
338
|
-
"lint:fix": "biome check src --fix",
|
|
339
|
-
"prepublishOnly": "npm run build"
|
|
340
|
-
},
|
|
341
331
|
"keywords": [
|
|
342
332
|
"epilot",
|
|
343
333
|
"sdk",
|
|
@@ -534,5 +524,14 @@
|
|
|
534
524
|
"./dist/apis/workflow-definition.d.ts"
|
|
535
525
|
]
|
|
536
526
|
}
|
|
527
|
+
},
|
|
528
|
+
"scripts": {
|
|
529
|
+
"generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
|
|
530
|
+
"build": "tsup",
|
|
531
|
+
"build:watch": "tsup --watch",
|
|
532
|
+
"test": "vitest run",
|
|
533
|
+
"test:watch": "vitest",
|
|
534
|
+
"lint": "biome check src",
|
|
535
|
+
"lint:fix": "biome check src --fix"
|
|
537
536
|
}
|
|
538
|
-
}
|
|
537
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"s":"https://focus-pocus.dev.sls.epilot.io","o":[["getHealth","get","/v1/health"],["listAchievements","get","/v1/achievements"],["getAchievement","get","/v1/achievements/{id}",[["AchievementOrChallengeId"]]],["getSuggestedChallenge","get","/v1/challenges/suggest",[["route","q"],["entity_type","q"],["category_hint","q"]]],["acceptChallenge","post","/v1/challenges/{id}/accept",[["ChallengeId"]]],["dismissChallenge","post","/v1/challenges/{id}/dismiss",[["ChallengeId"]]],["listActiveChallenges","get","/v1/challenges/active"],["postEvent","post","/v1/events",null,1]],"v":"3.0.3","cp":{"AchievementId":["id","p",true],"AchievementOrChallengeId":["id","p",true],"ChallengeId":["id","p",true],"Cursor":["cursor","q"],"Size":["size","q"]}}
|