@epilot/sdk 2.14.0 → 2.14.2
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/access-token.json +18 -0
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +119 -0
- package/definitions/targeting-runtime.json +1 -1
- package/definitions/targeting.json +291 -0
- package/definitions/workflow-definition-runtime.json +1 -1
- package/definitions/workflow-definition.json +6 -2
- package/dist/access-token-7Y2MDFZH.cjs +7 -0
- package/dist/access-token-NWN7UBUP.js +7 -0
- package/dist/{access-token.d-CegaQmrK.d.cts → access-token.d-BhRUc8I-.d.cts} +38 -1
- package/dist/{access-token.d-CegaQmrK.d.ts → access-token.d-BhRUc8I-.d.ts} +38 -1
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- 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/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 +8 -8
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +2 -2
- 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 +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +8 -8
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +2 -2
- 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 +8 -8
- package/dist/apis/workflow-definition.js +2 -2
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-2FBNQV76.cjs → chunk-A3ILIWGC.cjs} +7 -7
- package/dist/chunk-ADX7IYB3.cjs +14 -0
- package/dist/{chunk-BFMY2X2J.cjs → chunk-DGLXRPNZ.cjs} +1 -1
- package/dist/{chunk-NUUEJRUH.js → chunk-PK76O2WO.js} +7 -7
- package/dist/chunk-TTU24M3D.js +14 -0
- package/dist/chunk-UH24GU2Z.js +14 -0
- package/dist/chunk-W3SPZ6V5.cjs +14 -0
- package/dist/{chunk-6HJ2Y7DZ.js → chunk-Y5YIU6PG.js} +1 -1
- package/dist/{customer-portal-PTVGKDUH.js → customer-portal-6WYH4LMT.js} +1 -1
- package/dist/{customer-portal-6I3G44I4.cjs → customer-portal-JZMXGNRO.cjs} +1 -1
- package/dist/{customer-portal-runtime-4ACQGDNY.cjs → customer-portal-runtime-H7XSAQ6G.cjs} +2 -2
- package/dist/{customer-portal-runtime-E4RI7NYM.js → customer-portal-runtime-JDDF3NWW.js} +1 -1
- package/dist/{customer-portal.d-Bpc-wk9K.d.cts → customer-portal.d-SlKyKhCa.d.cts} +197 -0
- package/dist/{customer-portal.d-Bpc-wk9K.d.ts → customer-portal.d-SlKyKhCa.d.ts} +197 -0
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/targeting-A2X6X7BF.js +7 -0
- package/dist/targeting-CSGKITGV.cjs +7 -0
- package/dist/{targeting-runtime-X3DQ527N.cjs → targeting-runtime-HWL6PLJF.cjs} +2 -2
- package/dist/{targeting-runtime-QI7322HB.js → targeting-runtime-L5RGDNSH.js} +1 -1
- package/dist/{targeting.d-Bq3onSes.d.cts → targeting.d-DaK3kwZg.d.cts} +286 -1
- package/dist/{targeting.d-Bq3onSes.d.ts → targeting.d-DaK3kwZg.d.ts} +286 -1
- package/dist/workflow-definition-MSO4JDA3.js +7 -0
- package/dist/workflow-definition-XTWO4RMY.cjs +7 -0
- package/dist/{workflow-definition-runtime-2HQS3RPK.cjs → workflow-definition-runtime-DYKGFYQE.cjs} +2 -2
- package/dist/{workflow-definition-runtime-JUPATIKU.js → workflow-definition-runtime-GYDTSAJL.js} +1 -1
- package/docs/access-token.md +21 -1
- package/docs/customer-portal.md +139 -0
- package/docs/targeting.md +192 -0
- package/docs/workflow-definition.md +1 -0
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/access-token-GD6REL4U.js +0 -7
- package/dist/access-token-NQ5BLMOW.cjs +0 -7
- package/dist/chunk-7ILTRJDQ.cjs +0 -14
- package/dist/chunk-H3NMCCSA.js +0 -14
- package/dist/chunk-OSPTVXY4.js +0 -14
- package/dist/chunk-QNSMYDKG.cjs +0 -14
- package/dist/targeting-4YMBBPDW.cjs +0 -7
- package/dist/targeting-VCENULF6.js +0 -7
- package/dist/workflow-definition-5P3PDJKU.cjs +0 -7
- package/dist/workflow-definition-XSSOSEGF.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/sdk",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.2",
|
|
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"]}}
|