@epilot/sdk 2.13.2 → 2.14.1

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.
Files changed (156) hide show
  1. package/definitions/message-runtime.json +1 -1
  2. package/definitions/message.json +146 -1
  3. package/definitions/targeting-runtime.json +1 -1
  4. package/definitions/targeting.json +291 -0
  5. package/definitions/webhooks.json +8 -7
  6. package/dist/apis/access-token.cjs +6 -6
  7. package/dist/apis/access-token.js +1 -1
  8. package/dist/apis/address-suggestions.cjs +6 -6
  9. package/dist/apis/address-suggestions.js +1 -1
  10. package/dist/apis/address.cjs +6 -6
  11. package/dist/apis/address.js +1 -1
  12. package/dist/apis/ai-agents.cjs +6 -6
  13. package/dist/apis/ai-agents.js +1 -1
  14. package/dist/apis/app.cjs +6 -6
  15. package/dist/apis/app.js +1 -1
  16. package/dist/apis/audit-logs.cjs +6 -6
  17. package/dist/apis/audit-logs.js +1 -1
  18. package/dist/apis/automation.cjs +6 -6
  19. package/dist/apis/automation.js +1 -1
  20. package/dist/apis/billing.cjs +6 -6
  21. package/dist/apis/billing.js +1 -1
  22. package/dist/apis/blueprint-manifest.cjs +6 -6
  23. package/dist/apis/blueprint-manifest.js +1 -1
  24. package/dist/apis/calendar.cjs +6 -6
  25. package/dist/apis/calendar.js +1 -1
  26. package/dist/apis/configuration-hub.cjs +6 -6
  27. package/dist/apis/configuration-hub.js +1 -1
  28. package/dist/apis/consent.cjs +6 -6
  29. package/dist/apis/consent.js +1 -1
  30. package/dist/apis/customer-portal.cjs +6 -6
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.js +1 -1
  60. package/dist/apis/journey.cjs +6 -6
  61. package/dist/apis/journey.js +1 -1
  62. package/dist/apis/kanban.cjs +6 -6
  63. package/dist/apis/kanban.js +1 -1
  64. package/dist/apis/message.cjs +8 -8
  65. package/dist/apis/message.d.cts +2 -2
  66. package/dist/apis/message.d.ts +2 -2
  67. package/dist/apis/message.js +2 -2
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +8 -8
  99. package/dist/apis/targeting.d.cts +2 -2
  100. package/dist/apis/targeting.d.ts +2 -2
  101. package/dist/apis/targeting.js +2 -2
  102. package/dist/apis/template-variables.cjs +6 -6
  103. package/dist/apis/template-variables.js +1 -1
  104. package/dist/apis/user.cjs +6 -6
  105. package/dist/apis/user.js +1 -1
  106. package/dist/apis/validation-rules.cjs +6 -6
  107. package/dist/apis/validation-rules.js +1 -1
  108. package/dist/apis/webhooks.cjs +6 -6
  109. package/dist/apis/webhooks.d.cts +2 -2
  110. package/dist/apis/webhooks.d.ts +2 -2
  111. package/dist/apis/webhooks.js +1 -1
  112. package/dist/apis/workflow-definition.cjs +6 -6
  113. package/dist/apis/workflow-definition.js +1 -1
  114. package/dist/apis/workflow.cjs +6 -6
  115. package/dist/apis/workflow.js +1 -1
  116. package/dist/chunk-2ESIGECW.js +14 -0
  117. package/dist/chunk-JM63KEFZ.cjs +14 -0
  118. package/dist/{chunk-CRUXTTHI.js → chunk-OJLX6U66.js} +5 -5
  119. package/dist/{chunk-GHPSNA2U.cjs → chunk-SNERI3PK.cjs} +5 -5
  120. package/dist/chunk-UH24GU2Z.js +14 -0
  121. package/dist/chunk-W3SPZ6V5.cjs +14 -0
  122. package/dist/index.cjs +12 -12
  123. package/dist/index.d.cts +3 -3
  124. package/dist/index.d.ts +3 -3
  125. package/dist/index.js +3 -3
  126. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  127. package/dist/message-663RPFCZ.js +7 -0
  128. package/dist/message-CEJ6VDZ6.cjs +7 -0
  129. package/dist/{message-runtime-XOQ5EJN6.js → message-runtime-5AUGENW3.js} +1 -1
  130. package/dist/{message-runtime-JSZCNCNU.cjs → message-runtime-5Z3POFZV.cjs} +2 -2
  131. package/dist/{message.d-B5UuSqgw.d.cts → message.d-VMmPsZVq.d.cts} +317 -4
  132. package/dist/{message.d-B5UuSqgw.d.ts → message.d-VMmPsZVq.d.ts} +317 -4
  133. package/dist/targeting-A2X6X7BF.js +7 -0
  134. package/dist/targeting-CSGKITGV.cjs +7 -0
  135. package/dist/{targeting-runtime-X3DQ527N.cjs → targeting-runtime-HWL6PLJF.cjs} +2 -2
  136. package/dist/{targeting-runtime-QI7322HB.js → targeting-runtime-L5RGDNSH.js} +1 -1
  137. package/dist/{targeting.d-Bq3onSes.d.cts → targeting.d-DaK3kwZg.d.cts} +286 -1
  138. package/dist/{targeting.d-Bq3onSes.d.ts → targeting.d-DaK3kwZg.d.ts} +286 -1
  139. package/dist/{webhooks-762WMLN2.cjs → webhooks-PNLMQFE2.cjs} +1 -1
  140. package/dist/{webhooks-5VDXUDDB.js → webhooks-QYVT2NUP.js} +1 -1
  141. package/dist/{webhooks.d-B6v_xmSD.d.ts → webhooks.d-DqOEzFsp.d.cts} +18 -14
  142. package/dist/{webhooks.d-B6v_xmSD.d.cts → webhooks.d-DqOEzFsp.d.ts} +18 -14
  143. package/docs/message.md +97 -9
  144. package/docs/targeting.md +192 -0
  145. package/docs/webhooks.md +10 -7
  146. package/package.json +11 -12
  147. package/definitions/focus-pocus-runtime.json +0 -1
  148. package/definitions/focus-pocus.json +0 -757
  149. package/dist/chunk-7ILTRJDQ.cjs +0 -14
  150. package/dist/chunk-DUHAG5CO.cjs +0 -14
  151. package/dist/chunk-FAZ63FEX.js +0 -14
  152. package/dist/chunk-H3NMCCSA.js +0 -14
  153. package/dist/message-6IFCB7GH.js +0 -7
  154. package/dist/message-7LNAFKKV.cjs +0 -7
  155. package/dist/targeting-4YMBBPDW.cjs +0 -7
  156. package/dist/targeting-VCENULF6.js +0 -7
package/docs/targeting.md CHANGED
@@ -30,6 +30,7 @@ const { data } = await targetingClient.changeCampaignStatus(...)
30
30
  - [`getCampaignPortals`](#getcampaignportals)
31
31
  - [`setupCampaign`](#setupcampaign)
32
32
  - [`matchCampaigns`](#matchcampaigns)
33
+ - [`discoverCampaigns`](#discovercampaigns)
33
34
 
34
35
  **Campaign Delivery**
35
36
  - [`retriggerCampaignAutomations`](#retriggercampaignautomations)
@@ -42,6 +43,7 @@ const { data } = await targetingClient.changeCampaignStatus(...)
42
43
  - [`createRecipient`](#createrecipient)
43
44
  - [`updateRecipient`](#updaterecipient)
44
45
  - [`updateRecipientPortalStatus`](#updaterecipientportalstatus)
46
+ - [`updateRecipientEntityUiStatus`](#updaterecipiententityuistatus)
45
47
  - [`getRecipients`](#getrecipients)
46
48
 
47
49
  **Schemas**
@@ -63,11 +65,15 @@ const { data } = await targetingClient.changeCampaignStatus(...)
63
65
  - [`Campaign`](#campaign)
64
66
  - [`Target`](#target)
65
67
  - [`MatchCampaignParams`](#matchcampaignparams)
68
+ - [`NextBestAction`](#nextbestaction)
69
+ - [`DiscoverCampaignsParams`](#discovercampaignsparams)
66
70
  - [`MatchTargetParams`](#matchtargetparams)
67
71
  - [`GetTargetQueriesParams`](#gettargetqueriesparams)
68
72
  - [`TargetQueryResult`](#targetqueryresult)
69
73
  - [`AutomationStatus`](#automationstatus)
70
74
  - [`PortalStatus`](#portalstatus)
75
+ - [`EntityUiStatus`](#entityuistatus)
76
+ - [`Resolution`](#resolution)
71
77
  - [`Recipient`](#recipient)
72
78
  - [`BaseRecipientPayload`](#baserecipientpayload)
73
79
  - [`AutomationRecipientPayload`](#automationrecipientpayload)
@@ -77,6 +83,7 @@ const { data } = await targetingClient.changeCampaignStatus(...)
77
83
  - [`RetriggerAutomationsRequest`](#retriggerautomationsrequest)
78
84
  - [`RetriggerAutomationsResult`](#retriggerautomationsresult)
79
85
  - [`UpdatePortalStatusRequest`](#updateportalstatusrequest)
86
+ - [`UpdateEntityUiStatusRequest`](#updateentityuistatusrequest)
80
87
  - [`SetupCampaignRequest`](#setupcampaignrequest)
81
88
  - [`SetupTariffChangeCampaignRequest`](#setuptariffchangecampaignrequest)
82
89
  - [`SetupTariffChangeCampaignResponse`](#setuptariffchangecampaignresponse)
@@ -389,6 +396,63 @@ const { data } = await client.matchCampaigns(
389
396
 
390
397
  ---
391
398
 
399
+ ### `discoverCampaigns`
400
+
401
+ Discover Entity-UI Next Best Actions for an entity
402
+
403
+ `POST /v1/campaign:discover`
404
+
405
+ ```ts
406
+ const { data } = await client.discoverCampaigns(
407
+ null,
408
+ {
409
+ entity_id: 'b8c01433-5556-4e2b-aad4-6f5348d1df84',
410
+ entity_schema: 'string'
411
+ },
412
+ )
413
+ ```
414
+
415
+ <details>
416
+ <summary>Response</summary>
417
+
418
+ ```json
419
+ {
420
+ "hits": 0,
421
+ "results": [
422
+ {
423
+ "campaign_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",
424
+ "nba": {
425
+ "category": "string",
426
+ "icon": {
427
+ "name": "string",
428
+ "color": "string"
429
+ },
430
+ "title": "string",
431
+ "body": "string",
432
+ "priority": "medium",
433
+ "is_dismissable": true,
434
+ "cta": {
435
+ "type": "journey",
436
+ "target": "string",
437
+ "label": "string",
438
+ "context_params": [
439
+ {
440
+ "key": "string",
441
+ "value": "string"
442
+ }
443
+ ]
444
+ }
445
+ },
446
+ "status": "seen"
447
+ }
448
+ ]
449
+ }
450
+ ```
451
+
452
+ </details>
453
+
454
+ ---
455
+
392
456
  ### `matchTargets`
393
457
 
394
458
  Match targets
@@ -518,6 +582,9 @@ const { data } = await client.createRecipient(
518
582
  "portal_status": "sent",
519
583
  "portal_status_updated_at": "1970-01-01T00:00:00.000Z",
520
584
  "portal_state": {},
585
+ "entity_ui_status": "seen",
586
+ "entity_ui_status_updated_at": "1970-01-01T00:00:00.000Z",
587
+ "resolution": "accepted",
521
588
  "updated_at": "1970-01-01T00:00:00.000Z"
522
589
  }
523
590
  ```
@@ -560,6 +627,9 @@ const { data } = await client.updateRecipient(
560
627
  "portal_status": "sent",
561
628
  "portal_status_updated_at": "1970-01-01T00:00:00.000Z",
562
629
  "portal_state": {},
630
+ "entity_ui_status": "seen",
631
+ "entity_ui_status_updated_at": "1970-01-01T00:00:00.000Z",
632
+ "resolution": "accepted",
563
633
  "updated_at": "1970-01-01T00:00:00.000Z"
564
634
  }
565
635
  ```
@@ -599,6 +669,52 @@ const { data } = await client.updateRecipientPortalStatus(
599
669
  "portal_status": "sent",
600
670
  "portal_status_updated_at": "1970-01-01T00:00:00.000Z",
601
671
  "portal_state": {},
672
+ "entity_ui_status": "seen",
673
+ "entity_ui_status_updated_at": "1970-01-01T00:00:00.000Z",
674
+ "resolution": "accepted",
675
+ "updated_at": "1970-01-01T00:00:00.000Z"
676
+ }
677
+ ```
678
+
679
+ </details>
680
+
681
+ ---
682
+
683
+ ### `updateRecipientEntityUiStatus`
684
+
685
+ Update Entity-UI (Next Best Action) status for a campaign recipient
686
+
687
+ `PATCH /v1/campaign/{campaign_id}/recipient/{recipient_id}/entity_ui:status`
688
+
689
+ ```ts
690
+ const { data } = await client.updateRecipientEntityUiStatus(
691
+ {
692
+ campaign_id: 'example',
693
+ recipient_id: 'example',
694
+ },
695
+ {
696
+ status: 'seen',
697
+ entity_schema: 'string'
698
+ },
699
+ )
700
+ ```
701
+
702
+ <details>
703
+ <summary>Response</summary>
704
+
705
+ ```json
706
+ {
707
+ "entity_id": "b8c01433-5556-4e2b-aad4-6f5348d1df84",
708
+ "entity_schema": "string",
709
+ "title": "string",
710
+ "automation_status": "pending",
711
+ "automation_execution_id": "string",
712
+ "portal_status": "sent",
713
+ "portal_status_updated_at": "1970-01-01T00:00:00.000Z",
714
+ "portal_state": {},
715
+ "entity_ui_status": "seen",
716
+ "entity_ui_status_updated_at": "1970-01-01T00:00:00.000Z",
717
+ "resolution": "accepted",
602
718
  "updated_at": "1970-01-01T00:00:00.000Z"
603
719
  }
604
720
  ```
@@ -639,6 +755,9 @@ const { data } = await client.getRecipients({
639
755
  "portal_status": "sent",
640
756
  "portal_status_updated_at": "1970-01-01T00:00:00.000Z",
641
757
  "portal_state": {},
758
+ "entity_ui_status": "seen",
759
+ "entity_ui_status_updated_at": "1970-01-01T00:00:00.000Z",
760
+ "resolution": "accepted",
642
761
  "updated_at": "1970-01-01T00:00:00.000Z"
643
762
  }
644
763
  ],
@@ -883,6 +1002,45 @@ type MatchCampaignParams = {
883
1002
  }
884
1003
  ```
885
1004
 
1005
+ ### `NextBestAction`
1006
+
1007
+ A Next Best Action configured on a campaign's Entity-UI channel.
1008
+ This is the canonical NBA contract shared by discovery (this API), authoring, and rendering.
1009
+ NBA content is single-language in v1; text fields may contain `{{placeholders}}` resolved at render time.
1010
+
1011
+
1012
+ ```ts
1013
+ type NextBestAction = {
1014
+ category?: string
1015
+ icon?: {
1016
+ name: string
1017
+ color?: string
1018
+ }
1019
+ title: string
1020
+ body?: string
1021
+ priority?: "low" | "medium" | "high"
1022
+ is_dismissable?: boolean
1023
+ cta: {
1024
+ type: "journey" | "workflow" | "url"
1025
+ target: string
1026
+ label?: string
1027
+ context_params?: Array<{
1028
+ key: { ... }
1029
+ value: { ... }
1030
+ }>
1031
+ }
1032
+ }
1033
+ ```
1034
+
1035
+ ### `DiscoverCampaignsParams`
1036
+
1037
+ ```ts
1038
+ type DiscoverCampaignsParams = {
1039
+ entity_id: string // uuid
1040
+ entity_schema: string
1041
+ }
1042
+ ```
1043
+
886
1044
  ### `MatchTargetParams`
887
1045
 
888
1046
  ```ts
@@ -925,6 +1083,28 @@ type AutomationStatus = "pending" | "in_progress" | "success" | "failed" | "canc
925
1083
  type PortalStatus = "sent" | "seen" | "dismissed" | "clicked"
926
1084
  ```
927
1085
 
1086
+ ### `EntityUiStatus`
1087
+
1088
+ Lifecycle status of a Next Best Action on the Entity-UI channel. Unlike the portal
1089
+ channel there is no `sent` state: an NBA recipient is born at `seen`, the moment the
1090
+ action is first rendered to an agent.
1091
+
1092
+
1093
+ ```ts
1094
+ type EntityUiStatus = "seen" | "dismissed" | "clicked"
1095
+ ```
1096
+
1097
+ ### `Resolution`
1098
+
1099
+ Cross-channel resolution of a campaign for a recipient. Unlike the per-channel `*_status`
1100
+ fields (where `dismissed` is channel-local), a resolution suppresses the campaign on EVERY
1101
+ channel — the 360 Entity-UI card and the portal teaser alike. Server-managed and read-only:
1102
+ never sent by a client. Abs
1103
+
1104
+ ```ts
1105
+ type Resolution = "accepted"
1106
+ ```
1107
+
928
1108
  ### `Recipient`
929
1109
 
930
1110
  ```ts
@@ -937,6 +1117,9 @@ type Recipient = {
937
1117
  portal_status?: "sent" | "seen" | "dismissed" | "clicked"
938
1118
  portal_status_updated_at?: string // date-time
939
1119
  portal_state?: Record<string, unknown>
1120
+ entity_ui_status?: "seen" | "dismissed" | "clicked"
1121
+ entity_ui_status_updated_at?: string // date-time
1122
+ resolution?: "accepted"
940
1123
  updated_at?: string // date-time
941
1124
  }
942
1125
  ```
@@ -1029,6 +1212,15 @@ type UpdatePortalStatusRequest = {
1029
1212
  }
1030
1213
  ```
1031
1214
 
1215
+ ### `UpdateEntityUiStatusRequest`
1216
+
1217
+ ```ts
1218
+ type UpdateEntityUiStatusRequest = {
1219
+ status: "seen" | "dismissed" | "clicked"
1220
+ entity_schema?: string
1221
+ }
1222
+ ```
1223
+
1032
1224
  ### `SetupCampaignRequest`
1033
1225
 
1034
1226
  Discriminated by `type`. Each campaign variant has its own request shape;
package/docs/webhooks.md CHANGED
@@ -734,16 +734,17 @@ type Filter = {
734
734
 
735
735
  ### `WebhookCondition`
736
736
 
737
- A condition that must be met for the webhook to fire.
737
+ A condition that must be met for the webhook to fire. A condition is EITHER a classic field + operation comparison OR a single jsonata_expression evaluated against the event payload — the two forms are mutually exclusive.
738
738
 
739
739
  ```ts
740
740
  type WebhookCondition = {
741
- field: string
742
- operation: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty" | "length_equals" | "length_not_equals" | "length_greater_than" | "length_less_than" | "length_greater_than_or_equals" | "length_less_than_or_equals"
741
+ field?: string
742
+ operation?: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty" | "length_equals" | "length_not_equals" | "length_greater_than" | "length_less_than" | "length_greater_than_or_equals" | "length_less_than_or_equals"
743
743
  values?: string[]
744
744
  field_type?: "string" | "number" | "boolean" | "date" | "datetime"
745
745
  is_array_field?: boolean
746
746
  repeatable_item_op?: boolean
747
+ jsonata_expression?: string
747
748
  }
748
749
  ```
749
750
 
@@ -754,12 +755,13 @@ A group of conditions with a logical operator. Multiple conditions are AND-ed by
754
755
  ```ts
755
756
  type WebhookConditionGroup = {
756
757
  conditions?: Array<{
757
- field: string
758
- operation: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty" | "length_equals" | "length_not_equals" | "length_greater_than" | "length_less_than" | "length_greater_than_or_equals" | "length_less_than_or_equals"
758
+ field?: string
759
+ operation?: "equals" | "not_equals" | "any_of" | "none_of" | "contains" | "not_contains" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "greater_than_or_equals" | "less_than_or_equals" | "is_empty" | "is_not_empty" | "length_equals" | "length_not_equals" | "length_greater_than" | "length_less_than" | "length_greater_than_or_equals" | "length_less_than_or_equals"
759
760
  values?: string[]
760
761
  field_type?: "string" | "number" | "boolean" | "date" | "datetime"
761
762
  is_array_field?: boolean
762
763
  repeatable_item_op?: boolean
764
+ jsonata_expression?: string
763
765
  }>
764
766
  logical_operator?: "AND" | "OR"
765
767
  }
@@ -905,12 +907,13 @@ type WebhookConfig = {
905
907
  }
906
908
  filterConditions?: {
907
909
  conditions?: Array<{
908
- field: { ... }
909
- operation: { ... }
910
+ field?: { ... }
911
+ operation?: { ... }
910
912
  values?: { ... }
911
913
  field_type?: { ... }
912
914
  is_array_field?: { ... }
913
915
  repeatable_item_op?: { ... }
916
+ jsonata_expression?: { ... }
914
917
  }>
915
918
  logical_operator?: "AND" | "OR"
916
919
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.13.2",
3
+ "version": "2.14.1",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -322,16 +322,6 @@
322
322
  },
323
323
  "./workflow-definition/openapi.json": "./definitions/workflow-definition.json"
324
324
  },
325
- "scripts": {
326
- "generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
327
- "build": "tsup",
328
- "build:watch": "tsup --watch",
329
- "test": "vitest run",
330
- "test:watch": "vitest",
331
- "lint": "biome check src",
332
- "lint:fix": "biome check src --fix",
333
- "prepublishOnly": "npm run build"
334
- },
335
325
  "keywords": [
336
326
  "epilot",
337
327
  "sdk",
@@ -525,5 +515,14 @@
525
515
  "./dist/apis/workflow-definition.d.ts"
526
516
  ]
527
517
  }
518
+ },
519
+ "scripts": {
520
+ "generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
521
+ "build": "tsup",
522
+ "build:watch": "tsup --watch",
523
+ "test": "vitest run",
524
+ "test:watch": "vitest",
525
+ "lint": "biome check src",
526
+ "lint:fix": "biome check src --fix"
528
527
  }
529
- }
528
+ }
@@ -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"]}}